Skip to content

Commit

Permalink
Fixes #37: Get "command 'nim.run.file' not found" when trying to run …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
kosz78 committed Feb 20, 2017
1 parent 72290d2 commit 4c2618a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nimMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var fileWatcher: vscode.FileSystemWatcher;
var terminal: vscode.Terminal;

export function activate(ctx: vscode.ExtensionContext): void {
vscode.commands.registerCommand('nim.run.file', runFile);

initNimSuggest(ctx);
ctx.subscriptions.push(vscode.languages.registerCompletionItemProvider(NIM_MODE, new NimCompletionItemProvider(), '.', ' '));
ctx.subscriptions.push(vscode.languages.registerDefinitionProvider(NIM_MODE, new NimDefinitionProvider()));
Expand Down Expand Up @@ -69,7 +71,6 @@ export function activate(ctx: vscode.ExtensionContext): void {

vscode.window.onDidChangeActiveTextEditor(showHideStatus, null, ctx.subscriptions);

vscode.commands.registerCommand('nim.run.file', runFile);
vscode.window.onDidCloseTerminal((e: vscode.Terminal) => {
if (terminal && e.processId === terminal.processId) {
terminal = null;
Expand Down

0 comments on commit 4c2618a

Please sign in to comment.