aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-02-04 15:42:29 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-02-04 15:42:29 +0000
commit88702a758f031f33452e9acac621841552ec9f8a (patch)
treefc1450350a842925120a7d0485f96eb973f54b08 /editors/code/src
parent13a2bdb0a89260e978ba8e55abd7a51a003e62a7 (diff)
parent0f7a714c6306e545157f3ef94fe8db5957007efa (diff)
Merge #738
738: Implement lens for impls and support resolving lenses. r=matklad a=kjeremy Closes #620 Co-authored-by: Jeremy Kolb <[email protected]> Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/extension.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts
index 0b2a6095b..a0be70202 100644
--- a/editors/code/src/extension.ts
+++ b/editors/code/src/extension.ts
@@ -70,6 +70,18 @@ export function activate(context: vscode.ExtensionContext) {
70 'rust-analyzer.applySourceChange', 70 'rust-analyzer.applySourceChange',
71 commands.applySourceChange.handle 71 commands.applySourceChange.handle
72 ); 72 );
73 registerCommand(
74 'rust-analyzer.showReferences',
75 (uri: string, position: lc.Position, locations: lc.Location[]) => {
76 vscode.commands.executeCommand(
77 'editor.action.showReferences',
78 vscode.Uri.parse(uri),
79 Server.client.protocol2CodeConverter.asPosition(position),
80 locations.map(Server.client.protocol2CodeConverter.asLocation)
81 );
82 }
83 );
84
73 overrideCommand('type', commands.onEnter.handle); 85 overrideCommand('type', commands.onEnter.handle);
74 86
75 // Notifications are events triggered by the language server 87 // Notifications are events triggered by the language server