aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-05 20:29:50 +0000
committerGitHub <[email protected]>2020-02-05 20:29:50 +0000
commit2471b6bc3a318d7303d0556c85940090b6cf6d7a (patch)
tree07df61a25b0735d96f78bbd754bc7c16b9361926 /editors/code/src/commands
parent8d0f7da2f5f2ae1dc5711005f08fde0007da165b (diff)
parent49a681404860e98855d8698e94dc1208e07daff4 (diff)
Merge #3015
3015: vscode: yet another refactor commit r=matklad a=Veetaha It compiles, it runs in dev extension host, It bundles, it runs when bundled and installed. Removed 5 lines of code as you like less code, especially TypeScript code) Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/on_enter.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts
index c636234da..25eaebcbe 100644
--- a/editors/code/src/commands/on_enter.ts
+++ b/editors/code/src/commands/on_enter.ts
@@ -7,7 +7,7 @@ import { Cmd, Ctx } from '../ctx';
7async function handleKeypress(ctx: Ctx) { 7async function handleKeypress(ctx: Ctx) {
8 const editor = ctx.activeRustEditor; 8 const editor = ctx.activeRustEditor;
9 const client = ctx.client; 9 const client = ctx.client;
10 if (!editor) return false; 10
11 if (!editor || !client) return false; 11 if (!editor || !client) return false;
12 12
13 const request: lc.TextDocumentPositionParams = { 13 const request: lc.TextDocumentPositionParams = {