Skip to content

Commit 96cad25

Browse files
angelozerrdatho7561
authored andcommitted
Don't throw an error popup when MicroProfile LS cancel the inlay hint
process. Signed-off-by: azerr azerr@redhat.com
1 parent 10ef57e commit 96cad25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/providers/microprofileInlayHintsProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export class MicroprofileInlayHintsProvider 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)