diff options
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index b8e3396a6..7ad5e6934 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -20,6 +20,8 @@ export async function activate(context: vscode.ExtensionContext) { | |||
20 | ctx.registerCommand('parentModule', commands.parentModule); | 20 | ctx.registerCommand('parentModule', commands.parentModule); |
21 | ctx.registerCommand('syntaxTree', commands.syntaxTree); | 21 | ctx.registerCommand('syntaxTree', commands.syntaxTree); |
22 | ctx.registerCommand('expandMacro', commands.expandMacro); | 22 | ctx.registerCommand('expandMacro', commands.expandMacro); |
23 | ctx.registerCommand('run', commands.run); | ||
24 | ctx.registerCommand('runSingle', commands.runSingle); // Internal action for lenses | ||
23 | 25 | ||
24 | function disposeOnDeactivation(disposable: vscode.Disposable) { | 26 | function disposeOnDeactivation(disposable: vscode.Disposable) { |
25 | context.subscriptions.push(disposable); | 27 | context.subscriptions.push(disposable); |
@@ -29,10 +31,6 @@ export async function activate(context: vscode.ExtensionContext) { | |||
29 | disposeOnDeactivation(vscode.commands.registerCommand(name, f)); | 31 | disposeOnDeactivation(vscode.commands.registerCommand(name, f)); |
30 | } | 32 | } |
31 | 33 | ||
32 | // Commands are requests from vscode to the language server | ||
33 | registerCommand('rust-analyzer.run', commands.runnables.handle); | ||
34 | // Unlike the above this does not send requests to the language server | ||
35 | registerCommand('rust-analyzer.runSingle', commands.runnables.handleSingle); | ||
36 | registerCommand( | 34 | registerCommand( |
37 | 'rust-analyzer.showReferences', | 35 | 'rust-analyzer.showReferences', |
38 | (uri: string, position: lc.Position, locations: lc.Location[]) => { | 36 | (uri: string, position: lc.Position, locations: lc.Location[]) => { |