diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-10-17 15:05:20 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-10-17 15:05:20 +0200 |
| commit | d68616a140b35dd9bc4e2982e0993257ab0942e0 (patch) | |
| tree | 3e5b22940e813be4ca26ad61c66191a5db500554 /editors/code/src/run.ts | |
| parent | 8aaafddee8ad709438a663084e6eec8f458bfd50 (diff) | |
| download | rust-d68616a140b35dd9bc4e2982e0993257ab0942e0.tar.gz rust-d68616a140b35dd9bc4e2982e0993257ab0942e0.zip | |
Make more things private
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(), }; |
