about summary refs log tree commit diff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-19 06:58:52 +0000
committerbors <bors@rust-lang.org>2022-08-19 06:58:52 +0000
commit04c487dd516e30f3145bb792c3cbf2265e8e55b3 (patch)
tree5c8e63d7611468d98a1965da9483e8f7289f3903 /editors/code/src/main.ts
parent917bd68b37de4e60e7203061a0a9c23b74d2b5c2 (diff)
parent45b7b6a60a7404d093f4afe81a0da10824cef7b8 (diff)
downloadrust-04c487dd516e30f3145bb792c3cbf2265e8e55b3.tar.gz
rust-04c487dd516e30f3145bb792c3cbf2265e8e55b3.zip
Auto merge of #13063 - Veykril:stop-flycheck, r=Veykril
Implement lsp extension for cancelling running flychecks

Fixes https://github.com/rust-lang/rust-analyzer/issues/4828
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index d78b711a47a..a9847dd2a65 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -163,6 +163,7 @@ async function initCommonContext(context: vscode.ExtensionContext, ctx: Ctx) {
     ctx.registerCommand("peekTests", commands.peekTests);
     ctx.registerCommand("moveItemUp", commands.moveItemUp);
     ctx.registerCommand("moveItemDown", commands.moveItemDown);
+    ctx.registerCommand("cancelFlycheck", commands.cancelFlycheck);
 
     defaultOnEnter.dispose();
     ctx.registerCommand("onEnter", commands.onEnter);