mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Always set up VSCode commands
This commit is contained in:
parent
274df54885
commit
2071d00fd2
4 changed files with 139 additions and 128 deletions
|
@ -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(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue