Skip to content

Commit 4137285

Browse files
angelozerrdatho7561
authored andcommitted
Don't throw an error popup when Qute LS cancel the inlay hint process.
Signed-off-by: azerr <[email protected]>
1 parent cb29e3c commit 4137285

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qute/languageServer/inlayHintsProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export class QuteInlayHintsProvider implements InlayHintsProvider {
2525
}
2626
return asInlayHints(values, this.client);
2727
} catch (error) {
28+
if (token.isCancellationRequested) {
29+
return [];
30+
}
2831
return this.client.handleFailedRequest(InlayHintRequest.type, token, error);
2932
}
3033
}

0 commit comments

Comments
 (0)