Skip to content

Commit b3da6b4

Browse files
committed
language-server: faster return from inlay hints request that skips updating the real time problems checker
1 parent 8773198 commit b3da6b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

language-server/src/main/java/com/as3mxml/vscode/ActionScriptServices.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,13 @@ public CompletableFuture<List<InlayHint>> inlayHint(InlayHintParams params) {
913913
}
914914

915915
private List<InlayHint> inlayHint2(InlayHintParams params, CancelChecker cancelToken) {
916+
if ("none".equals(inlayHints_parameterNames_enabled)) {
917+
if (cancelToken != null) {
918+
cancelToken.checkCanceled();
919+
}
920+
return Collections.emptyList();
921+
}
922+
916923
// make sure that the latest changes have been passed to
917924
// workspace.fileChanged() before proceeding
918925
if (realTimeProblemsChecker != null) {

0 commit comments

Comments
 (0)