File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
eclipse/jsdt/ts.eclipse.ide.jsdt.ui/src/ts/eclipse/ide/jsdt/internal/ui/editor Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 7676import org .eclipse .wst .jsdt .ui .PreferenceConstants ;
7777
7878import ts .TypeScriptException ;
79+ import ts .TypeScriptNoContentAvailableException ;
7980import ts .client .ICancellationToken ;
8081import ts .client .ITypeScriptAsynchCollector ;
8182import 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
You can’t perform that action at this time.
0 commit comments