diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-10-29 00:44:37 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-10-29 00:44:37 +0200 |
| commit | 2071d00fd25cee25fe881255d78e478f72749c7d (patch) | |
| tree | bc55804230e4407cbe40f0b39e814a72bc6b4007 /editors/code/src/run.ts | |
| parent | 274df5488530e7445553a680b1d56dd8573b99e8 (diff) | |
| download | rust-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.ts | 6 |
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(), }; |
