From 3717288b0a2dbee3e65ba4a8effbcf7629043d08 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Tue, 10 Sep 2019 13:56:42 +0100 Subject: [PATCH] Unhide the hot reload button for Flutter web Flutter is now registering a `reloadSources` and supports hot reload (even though behaviour is currently same as hot restart). https://github.com/flutter/flutter/pull/39950 --- src/extension/commands/debug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/commands/debug.ts b/src/extension/commands/debug.ts index 6ac26df43..4fc0221d2 100644 --- a/src/extension/commands/debug.ts +++ b/src/extension/commands/debug.ts @@ -244,7 +244,7 @@ export class DebugCommands { // Temporary hack to allow controlling the Hot Reload button on the debug toolbar based on // whether it's a web device. - if (s.configuration.debuggerType === DebuggerType.Flutter && s.configuration.deviceId !== "chrome") + if (s.configuration.debuggerType === DebuggerType.Flutter) vs.commands.executeCommand("setContext", isInDebugSessionThatProbablySupportsHotReloadContext, true); // Process any queued events that came in before the session start