We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd661f commit 875dc6dCopy full SHA for 875dc6d
editors/code/src/commands/on_enter.ts
@@ -8,7 +8,7 @@ async function handleKeypress(ctx: Ctx) {
8
const editor = ctx.activeRustEditor;
9
const client = ctx.client;
10
if (!editor) return false;
11
- if (!client) return false;
+ if (!editor || !client) return false;
12
13
const request: lc.TextDocumentPositionParams = {
14
textDocument: { uri: editor.document.uri.toString() },
0 commit comments