1212import com .google .dart .server .utilities .logging .Logging ;
1313import com .google .gson .JsonObject ;
1414import com .intellij .codeInsight .CodeInsightSettings ;
15- import com .intellij .coverage .CoverageLoadErrorReporter ;
16- import com .intellij .coverage .DummyCoverageLoadErrorReporter ;
1715import com .intellij .openapi .Disposable ;
1816import com .intellij .openapi .application .ApplicationInfo ;
1917import com .intellij .openapi .application .ApplicationManager ;
@@ -1954,15 +1952,10 @@ private void analysis_setSubscriptions() {
19541952 }
19551953
19561954 public @ Nullable String execution_createContext (@ NotNull String filePath ) {
1957- return execution_createContext (filePath , new DummyCoverageLoadErrorReporter ());
1958- }
1959-
1960- public @ Nullable String execution_createContext (@ NotNull String filePath , @ NotNull CoverageLoadErrorReporter reporter ) {
19611955 final AnalysisServer server = myServer ;
19621956 if (server == null ) {
19631957 String message = "Dart Analysis Server is not available." ;
19641958 LOG .warn (message );
1965- reporter .reportWarning (message , null );
19661959 return null ;
19671960 }
19681961
@@ -1980,7 +1973,6 @@ public void computedExecutionContext(final String contextId) {
19801973 public void onError (final RequestError error ) {
19811974 logError ("execution_createContext()" , fileUri , error );
19821975 String message = getShortErrorMessage ("execution_createContext()" , fileUri , error );
1983- reporter .reportError ("Execution context creation failed: " + message );
19841976 latch .countDown ();
19851977 }
19861978 });
@@ -1989,8 +1981,6 @@ public void onError(final RequestError error) {
19891981
19901982 if (latch .getCount () > 0 ) {
19911983 logTookTooLongMessage ("execution_createContext" , EXECUTION_CREATE_CONTEXT_TIMEOUT , fileUri );
1992- String message = "Execution context creation timed out." ;
1993- reporter .reportWarning (message , null );
19941984 }
19951985 return resultRef .get ();
19961986 }
0 commit comments