about summary refs log tree commit diff
path: root/editors/code/src/run.ts
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-10-29 00:44:37 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-10-29 00:44:37 +0200
commit2071d00fd25cee25fe881255d78e478f72749c7d (patch)
treebc55804230e4407cbe40f0b39e814a72bc6b4007 /editors/code/src/run.ts
parent274df5488530e7445553a680b1d56dd8573b99e8 (diff)
downloadrust-2071d00fd25cee25fe881255d78e478f72749c7d.tar.gz
rust-2071d00fd25cee25fe881255d78e478f72749c7d.zip
Always set up VSCode commands
Diffstat (limited to 'editors/code/src/run.ts')
-rw-r--r--editors/code/src/run.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index dadaa41b1d1..35627e2fc6b 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -3,7 +3,7 @@ import * as lc from "vscode-languageclient";
 import * as ra from "./lsp_ext";
 import * as tasks from "./tasks";
 
-import { Ctx } from "./ctx";
+import { CtxInit } from "./ctx";
 import { makeDebugConfig } from "./debug";
 import { Config, RunnableEnvCfg } from "./config";
 
@@ -12,7 +12,7 @@ const quickPickButtons = [
 ];
 
 export async function selectRunnable(
-    ctx: Ctx,
+    ctx: CtxInit,
     prevRunnable?: RunnableQuickPick,
     debuggeeOnly = false,
     showButtons: boolean = true
@@ -20,7 +20,7 @@ export async function selectRunnable(
     const editor = ctx.activeRustEditor;
     if (!editor) return;
 
-    const client = await ctx.getClient();
+    const client = ctx.client;
     const textDocument: lc.TextDocumentIdentifier = {
         uri: editor.document.uri.toString(),
     };