Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import com.google.dart.server.utilities.logging.Logging;
import com.google.gson.JsonObject;
import com.intellij.codeInsight.CodeInsightSettings;
import com.intellij.coverage.CoverageLoadErrorReporter;
import com.intellij.coverage.DummyCoverageLoadErrorReporter;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationInfo;
import com.intellij.openapi.application.ApplicationManager;
Expand Down Expand Up @@ -1954,15 +1952,10 @@ private void analysis_setSubscriptions() {
}

public @Nullable String execution_createContext(@NotNull String filePath) {
return execution_createContext(filePath, new DummyCoverageLoadErrorReporter());
}

public @Nullable String execution_createContext(@NotNull String filePath, @NotNull CoverageLoadErrorReporter reporter) {
final AnalysisServer server = myServer;
if (server == null) {
String message = "Dart Analysis Server is not available.";
LOG.warn(message);
reporter.reportWarning(message, null);
return null;
}

Expand All @@ -1980,7 +1973,6 @@ public void computedExecutionContext(final String contextId) {
public void onError(final RequestError error) {
logError("execution_createContext()", fileUri, error);
String message = getShortErrorMessage("execution_createContext()", fileUri, error);
reporter.reportError("Execution context creation failed: " + message);
latch.countDown();
}
});
Expand All @@ -1989,8 +1981,6 @@ public void onError(final RequestError error) {

if (latch.getCount() > 0) {
logTookTooLongMessage("execution_createContext", EXECUTION_CREATE_CONTEXT_TIMEOUT, fileUri);
String message = "Execution context creation timed out.";
reporter.reportWarning(message, null);
}
return resultRef.get();
}
Expand Down