about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorZac Pullar-Strecker <zacmps@gmail.com>2020-09-03 19:55:24 +1200
committerZac Pullar-Strecker <zacmps@gmail.com>2020-10-08 15:04:21 +1300
commitc648884397bfdb779c447fa31964dc1fce94bd95 (patch)
tree276467ffe91360d31f285ce04bf16c0753c61a10 /editors/code
parent62b76e7004bc215a375e41bd204b2eab5acdf9c2 (diff)
downloadrust-c648884397bfdb779c447fa31964dc1fce94bd95.tar.gz
rust-c648884397bfdb779c447fa31964dc1fce94bd95.zip
Differentiate method/tymethod by determining 'defaultness'
Currently a method only has defaultness if it is a provided trait
method, but this will change when specialisation is available and may
need to become a concept known to hir.

I opted to go for a 'fewest changes' approach given specialisation is
still under development.
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/commands.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 24c2e196dbf..1445e41d3cb 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -425,7 +425,7 @@ export function openDocs(ctx: Ctx): Cmd {
         const client = ctx.client;
         const editor = vscode.window.activeTextEditor;
         if (!editor || !client) {
-            return
+            return;
         };
 
         const position = editor.selection.active;