Skip to content

Commit

Permalink
moved context subscription to for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Feb 27, 2024
1 parent 63fd813 commit 9d12980
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ export function activate(context: vscode.ExtensionContext) {
watcherUtils.setupLastRunningWatcher(context);

commands.push(
() => new generatePrototypeCommand(context).RunCommand(),
() => new generateAtlasCommand().RunCommand(),
() => new generateFunctionalSpecCommand().RunCommand(),
() => new checkVersionCommand().RunCommand()
new generatePrototypeCommand(context),
new generateAtlasCommand(),
new generateFunctionalSpecCommand(),
new checkVersionCommand()
);

for (let index = 0; index < commands.length; index++) {
const command = commands[index];
pushDisposable(context, command.commandName, command);
context.subscriptions.push(vscode.commands.registerCommand(command.commandName, () => command.RunCommand()));

//pushDisposable(context, command.commandName, command);
}

generateWorkingFolders();
Expand Down

0 comments on commit 9d12980

Please sign in to comment.