about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-12-17 23:29:25 +0100
committerLukas Wirth <lukastw97@gmail.com>2022-12-17 23:29:31 +0100
commitd8ddde27f9c37ba23b4eaab24759e2c1459e8ad4 (patch)
tree392df5e4caf9878a59019bbedd534f389e4081d1 /editors/code/src
parentcdfe98fe94d1dab0a6626cc24ebfbaf45f321a83 (diff)
downloadrust-d8ddde27f9c37ba23b4eaab24759e2c1459e8ad4.tar.gz
rust-d8ddde27f9c37ba23b4eaab24759e2c1459e8ad4.zip
Make cancelFlycheck request a notification
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/commands.ts2
-rw-r--r--editors/code/src/lsp_ext.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index e0b4bb63c31..283771f270f 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -788,7 +788,7 @@ export function openDocs(ctx: CtxInit): Cmd {
 
 export function cancelFlycheck(ctx: CtxInit): Cmd {
     return async () => {
-        await ctx.client.sendRequest(ra.cancelFlycheck);
+        await ctx.client.sendNotification(ra.cancelFlycheck);
     };
 }
 
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts
index 78da4e959c6..6f63084108a 100644
--- a/editors/code/src/lsp_ext.ts
+++ b/editors/code/src/lsp_ext.ts
@@ -79,7 +79,7 @@ export const relatedTests = new lc.RequestType<lc.TextDocumentPositionParams, Te
     "rust-analyzer/relatedTests"
 );
 
-export const cancelFlycheck = new lc.RequestType0<void, void>("rust-analyzer/cancelFlycheck");
+export const cancelFlycheck = new lc.NotificationType0("rust-analyzer/cancelFlycheck");
 
 export const runFlycheck = new lc.NotificationType<{
     textDocument: lc.TextDocumentIdentifier | null;