diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-12-17 23:29:25 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-12-17 23:29:31 +0100 |
| commit | d8ddde27f9c37ba23b4eaab24759e2c1459e8ad4 (patch) | |
| tree | 392df5e4caf9878a59019bbedd534f389e4081d1 /editors/code/src | |
| parent | cdfe98fe94d1dab0a6626cc24ebfbaf45f321a83 (diff) | |
| download | rust-d8ddde27f9c37ba23b4eaab24759e2c1459e8ad4.tar.gz rust-d8ddde27f9c37ba23b4eaab24759e2c1459e8ad4.zip | |
Make cancelFlycheck request a notification
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands.ts | 2 | ||||
| -rw-r--r-- | editors/code/src/lsp_ext.ts | 2 |
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; |
