Skip to content

Commit 7eb34c8

Browse files
committed
Ignore TypeScriptNoContentAvailableException for occurrences.
1 parent 1e5b45f commit 7eb34c8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

eclipse/jsdt/ts.eclipse.ide.jsdt.ui/src/ts/eclipse/ide/jsdt/internal/ui/editor/TypeScriptEditor.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
import org.eclipse.wst.jsdt.ui.PreferenceConstants;
7777

7878
import ts.TypeScriptException;
79+
import ts.TypeScriptNoContentAvailableException;
7980
import ts.client.ICancellationToken;
8081
import ts.client.ITypeScriptAsynchCollector;
8182
import ts.client.Location;
@@ -705,12 +706,12 @@ public boolean isCancellationRequested() {
705706

706707
@Override
707708
public void onError(TypeScriptException e) {
708-
// if (e instanceof TypeScriptNoContentAvailableException) {
709-
// // tsserver throws this error when the tsserver returns nothing
710-
// // Ignore this error
711-
// } else {
712-
Trace.trace(Trace.SEVERE, "Error while getting TypeScript occurrences.", e);
713-
// }
709+
if (e instanceof TypeScriptNoContentAvailableException) {
710+
// tsserver throws this error when the tsserver returns nothing
711+
// Ignore this error
712+
} else {
713+
Trace.trace(Trace.SEVERE, "Error while getting TypeScript occurrences.", e);
714+
}
714715
}
715716
}
716717

0 commit comments

Comments
 (0)