Skip to content

Commit

Permalink
Pass --no-serve-devtools when spawning analyzer with VM Service enabled
Browse files Browse the repository at this point in the history
Otherwise it prints "DevTools is listening at..." which breaks the LSP protocol.
  • Loading branch information
DanTup committed Nov 29, 2021
1 parent 399ecc2 commit 3fcafdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extension/analysis/analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function buildAnalyzerArgs(analyzerPath: string, dartCapabilities: DartCapabilit
// stop the client from working, so it needs to be hidden.
analyzerArgs.push(`-DSILENT_OBSERVATORY=true`);
analyzerArgs.push(`--disable-service-auth-codes`);
if (dartCapabilities.supportsNoServeDevTools)
analyzerArgs.push("--no-serve-devtools");
vs.window.showInformationMessage("The Dart Analysis server is running with the debugger accessible. Please disable (unset the `dart.analyzerVmServicePort` setting) when no longer required.");
}

Expand Down

0 comments on commit 3fcafdc

Please sign in to comment.