Skip to content

Commit

Permalink
Creating an instance when pushing the disposable
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Feb 19, 2024
1 parent 207d57b commit 05f5988
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ export function activate(context: vscode.ExtensionContext) {

watcherUtils.setupLastRunningWatcher(context);

generatePrototypeCommandInstance = new generatePrototypeCommand(context);
generateFunctionalSpecCommandInstance = new generateFunctionalSpecCommand();
generateAtlasCommandInstance = new generateAtlasCommand();

pushDisposable(context, "extension.checkVersion", () => checkVersionCommand.checkVersionCommand())
pushDisposable(context, "extension.generateFunctionalSpec", () => generateFunctionalSpecCommandInstance.GenerateFunctionalSpecCommand())
pushDisposable(context, "extension.generateAtlas", () => generateAtlasCommandInstance.GenerateAtlasCommand())
pushDisposable(context, "extension.generatePrototype", () => generatePrototypeCommandInstance.GeneratePrototypeCommand())
pushDisposable(context, "extension.generateFunctionalSpec", () => new generateFunctionalSpecCommand().GenerateFunctionalSpecCommand())
pushDisposable(context, "extension.generateAtlas", () => new generateAtlasCommand().GenerateAtlasCommand())
pushDisposable(context, "extension.generatePrototype", () => new generatePrototypeCommand(context).GeneratePrototypeCommand())

generateWorkingFolders();
createAndFillGitIgnore();
Expand Down

0 comments on commit 05f5988

Please sign in to comment.