Skip to content

Commit

Permalink
Unhide the hot reload button for Flutter web
Browse files Browse the repository at this point in the history
Flutter is now registering a `reloadSources` and supports hot reload (even though behaviour is currently same as hot restart). flutter/flutter#39950
  • Loading branch information
DanTup committed Oct 1, 2019
1 parent 984b728 commit 3717288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/commands/debug.ts
Expand Up @@ -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
Expand Down

0 comments on commit 3717288

Please sign in to comment.