about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-29 07:42:35 +0000
committerbors <bors@rust-lang.org>2022-11-29 07:42:35 +0000
commit3769cc35fa3fc28f6d6d5ecb40ba72bb16f63e0c (patch)
tree3a9c85d4e39d6665b3e59f114a7f691b2847749f /editors/code/src
parent6d61be8e65ac0fd45eaf178e1f7a1ec6b582de1f (diff)
parent9914d30450ffbd64c2acbfa44d22add033df2a5a (diff)
downloadrust-3769cc35fa3fc28f6d6d5ecb40ba72bb16f63e0c.tar.gz
rust-3769cc35fa3fc28f6d6d5ecb40ba72bb16f63e0c.zip
Auto merge of #13686 - MariaSolOs:test-lenses, r=Veykril
Don't show runnable code lenses in libraries outside of the workspace

Addresses #13664. For now I'm just disabling runnable code lenses since the ones that display the number of references and implementations do work correctly with external code.

Also made a tiny TypeScript change to use the typed `sendNotification` overload.
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index 25f1e83d109..01a1a2db7fd 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -79,7 +79,7 @@ async function activateServer(ctx: Ctx): Promise<RustAnalyzerExtensionApi> {
     );
     vscode.workspace.onDidChangeConfiguration(
         async (_) => {
-            await ctx.client?.sendNotification("workspace/didChangeConfiguration", {
+            await ctx.client?.sendNotification(lc.DidChangeConfigurationNotification.type, {
                 settings: "",
             });
         },