Make cancelFlycheck request a notification

This commit is contained in:
Lukas Wirth
2022-12-17 23:29:25 +01:00
parent cdfe98fe94
commit d8ddde27f9
4 changed files with 4 additions and 5 deletions

View File

@@ -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);
};
}

View File

@@ -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;