diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-17 20:24:13 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-17 20:24:13 +0000 |
commit | 326556b09078a398e641dd221ab870ee0fe47f68 (patch) | |
tree | c57aa6800df7d6ba702c3256921b714a222a37d1 /editors/code/src/commands | |
parent | 9053003e3b298b38f6029b860efc5baed1996385 (diff) | |
parent | 73799640481c269a5aad408c99a22592d914fb1b (diff) |
Merge #3203
3203: vscode: press ; to respect semicolons r=matklad a=Veetaha
Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r-- | editors/code/src/commands/index.ts | 2 | ||||
-rw-r--r-- | editors/code/src/commands/ssr.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/commands/index.ts b/editors/code/src/commands/index.ts index d05f40d67..bebd99ca9 100644 --- a/editors/code/src/commands/index.ts +++ b/editors/code/src/commands/index.ts | |||
@@ -16,7 +16,7 @@ export * from './ssr'; | |||
16 | 16 | ||
17 | export function collectGarbage(ctx: Ctx): Cmd { | 17 | export function collectGarbage(ctx: Ctx): Cmd { |
18 | return async () => { | 18 | return async () => { |
19 | ctx.client?.sendRequest<null>('rust-analyzer/collectGarbage', null); | 19 | await ctx.client?.sendRequest<null>('rust-analyzer/collectGarbage', null); |
20 | }; | 20 | }; |
21 | } | 21 | } |
22 | 22 | ||
diff --git a/editors/code/src/commands/ssr.ts b/editors/code/src/commands/ssr.ts index 6287bf47b..9b814612a 100644 --- a/editors/code/src/commands/ssr.ts +++ b/editors/code/src/commands/ssr.ts | |||
@@ -14,9 +14,9 @@ export function ssr(ctx: Ctx): Cmd { | |||
14 | if (x.includes('==>>')) { | 14 | if (x.includes('==>>')) { |
15 | return null; | 15 | return null; |
16 | } | 16 | } |
17 | return "Enter request: pattern ==>> template" | 17 | return "Enter request: pattern ==>> template"; |
18 | } | 18 | } |
19 | } | 19 | }; |
20 | const request = await vscode.window.showInputBox(options); | 20 | const request = await vscode.window.showInputBox(options); |
21 | 21 | ||
22 | if (!request) return; | 22 | if (!request) return; |