diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2022-10-26 17:40:41 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2022-10-26 17:40:41 +0300 |
| commit | 8807fc4cc358fa2152b303df0caa2f5fc9efaa9d (patch) | |
| tree | da701483c74d2d402617c2482626b70aa2fff536 /editors/code/src/run.ts | |
| parent | 26a413e015b7fef4c0edb51bda0d39ab499f4950 (diff) | |
| download | rust-8807fc4cc358fa2152b303df0caa2f5fc9efaa9d.tar.gz rust-8807fc4cc358fa2152b303df0caa2f5fc9efaa9d.zip | |
:arrow_up: rust-analyzer
Diffstat (limited to 'editors/code/src/run.ts')
| -rw-r--r-- | editors/code/src/run.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts index 22e5eda6827..dadaa41b1d1 100644 --- a/editors/code/src/run.ts +++ b/editors/code/src/run.ts @@ -18,9 +18,9 @@ export async function selectRunnable( showButtons: boolean = true ): Promise<RunnableQuickPick | undefined> { const editor = ctx.activeRustEditor; - const client = ctx.client; - if (!editor || !client) return; + if (!editor) return; + const client = await ctx.getClient(); const textDocument: lc.TextDocumentIdentifier = { uri: editor.document.uri.toString(), }; |
