diff --git a/src/extension/commands/analyzer.ts b/src/extension/commands/analyzer.ts index 8bd179145..91e370f8e 100644 --- a/src/extension/commands/analyzer.ts +++ b/src/extension/commands/analyzer.ts @@ -7,7 +7,7 @@ export class AnalyzerCommands { constructor(context: vs.ExtensionContext, analyzer: Analyzer) { context.subscriptions.push(vs.commands.registerCommand("dart.openAnalyzerDiagnostics", async () => { const res = await analyzer.diagnosticGetServerPort(); - openInBrowser(`http://localhost:${res.port}/`); + openInBrowser(`http://127.0.0.1:${res.port}/`); })); } } diff --git a/src/extension/sdk/dev_tools.ts b/src/extension/sdk/dev_tools.ts index 1ce1ab86a..0f600284a 100644 --- a/src/extension/sdk/dev_tools.ts +++ b/src/extension/sdk/dev_tools.ts @@ -39,7 +39,7 @@ export class DevToolsManager implements vs.Disposable { } /// Spawns DevTools and returns the full URL to open for that session - /// eg. http://localhost:8123/?port=8543 + /// eg. http://127.0.0.1:8123/?port=8543 public async spawnForSession(session: DartDebugSessionInformation): Promise<{ url: string, dispose: () => void } | undefined> { this.analytics.logDebuggerOpenDevTools(); diff --git a/src/test/flutter_web_only/debug/flutter_web.test.ts b/src/test/flutter_web_only/debug/flutter_web.test.ts index e97814dde..cfad82344 100644 --- a/src/test/flutter_web_only/debug/flutter_web.test.ts +++ b/src/test/flutter_web_only/debug/flutter_web.test.ts @@ -37,7 +37,7 @@ describe("flutter for web debugger", () => { it("runs a Flutter web application and remains active until told to quit", async () => { const config = await startDebugger(flutterWebHelloWorldMainFile); await Promise.all([ - dc.assertOutputContains("stdout", "Serving `web` on http://localhost:"), + dc.assertOutputContains("stdout", "Serving `web` on http://127.0.0.1:"), dc.configurationSequence(), dc.launch(config), ]);