Skip to content

Commit 4c59f2f

Browse files
authored
rename full restart to hot restart (#2225)
1 parent 15eb215 commit 4c59f2f

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

gen/icons/FlutterIcons.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private static Icon load(String path) {
2929
public static final Icon OpenTimeline = load("/icons/timeline.png");
3030

3131
public static final Icon HotReload = load("/icons/hot-reload.png");
32-
public static final Icon FullRestart = AllIcons.Actions.Restart;
32+
public static final Icon HotRestart = AllIcons.Actions.Restart;
3333

3434
public static final Icon HotReloadRun = load("/icons/reload_run.png");
3535
public static final Icon HotReloadDebug = load("/icons/reload_debug.png");

resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
<reference ref="Flutter.Toolbar.ReloadAction"/>
204204
<action id="Flutter.Toolbar.RestartAction" class="io.flutter.actions.RestartFlutterAppRetarget"
205205
description="Restart"
206-
icon="FlutterIcons.FullRestart">
206+
icon="FlutterIcons.HotRestart">
207207
<keyboard-shortcut keymap="$default" first-keystroke="ctrl shift BACK_SLASH"/>
208208
<keyboard-shortcut keymap="$default" first-keystroke="ctrl shift S"/>
209209
</action>

resources/META-INF/plugin_template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<reference ref="Flutter.Toolbar.ReloadAction"/>
133133
<action id="Flutter.Toolbar.RestartAction" class="io.flutter.actions.RestartFlutterAppRetarget"
134134
description="Restart"
135-
icon="FlutterIcons.FullRestart">
135+
icon="FlutterIcons.HotRestart">
136136
<keyboard-shortcut keymap="$default" first-keystroke="ctrl shift BACK_SLASH"/>
137137
<keyboard-shortcut keymap="$default" first-keystroke="ctrl shift S"/>
138138
</action>

src/io/flutter/FlutterBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
app.reload.action.text=Flutter Hot Reload
66
app.reload.action.description=Hot reload changes into the running Flutter app
7-
app.restart.action.text=Flutter Full Restart
7+
app.restart.action.text=Flutter Hot Restart
88
app.restart.action.description=Restart the Flutter app
99

1010
app.profile.action.text=Run in Flutter profile mode

src/io/flutter/actions/RestartFlutterApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class RestartFlutterApp extends FlutterAppAction {
2323
public static final String DESCRIPTION = FlutterBundle.message("app.restart.action.description");
2424

2525
public RestartFlutterApp(@NotNull FlutterApp app, @NotNull Computable<Boolean> isApplicable) {
26-
super(app, TEXT, DESCRIPTION, FlutterIcons.FullRestart, isApplicable, ID);
26+
super(app, TEXT, DESCRIPTION, FlutterIcons.HotRestart, isApplicable, ID);
2727
// Shortcut is associated with toolbar action.
2828
copyShortcutFrom(ActionManager.getInstance().getAction("Flutter.Toolbar.RestartAction"));
2929
}

src/io/flutter/perf/PerfService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void start() {
116116
* Returns a StreamSubscription providing the current Flutter isolate.
117117
* <p>
118118
* The current value of the subscription can be null occasionally during initial application startup and for a brief time when doing a
119-
* full restart.
119+
* hot restart.
120120
*/
121121
public StreamSubscription<IsolateRef> getCurrentFlutterIsolate(Consumer<IsolateRef> onValue, boolean onUIThread) {
122122
return flutterIsolateRefStream.listen(onValue, onUIThread);

src/io/flutter/run/FlutterReloadManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public void saveAllAndRestart(@NotNull FlutterApp app) {
252252
FileDocumentManager.getInstance().saveAllDocuments();
253253
app.performRestartApp().thenAccept(result -> {
254254
if (!result.ok()) {
255-
showRunNotification(app, "Full Restart", result.getMessage(), true);
255+
showRunNotification(app, "Hot Restart", result.getMessage(), true);
256256
}
257257
});
258258

src/io/flutter/run/LaunchState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ protected final RunContentDescriptor doExecute(@NotNull RunProfileState state, @
366366
}
367367
final FlutterLaunchMode launchMode = FlutterLaunchMode.fromEnv(env);
368368
if (launchMode.supportsReload() && app.isStarted()) {
369-
// Map a re-run action to a flutter full restart.
369+
// Map a re-run action to a flutter hot restart.
370370
FileDocumentManager.getInstance().saveAllDocuments();
371371
app.performRestartApp();
372372
}

src/io/flutter/run/daemon/FlutterApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void setBaseUri(@NotNull String uri) {
290290
}
291291

292292
/**
293-
* Perform a full restart of the the app.
293+
* Perform a hot restart of the the app.
294294
*/
295295
public CompletableFuture<DaemonApi.RestartResult> performRestartApp() {
296296
if (myAppId == null) {
@@ -304,7 +304,7 @@ public CompletableFuture<DaemonApi.RestartResult> performRestartApp() {
304304
restartCount++;
305305
userReloadCount = 0;
306306

307-
LocalHistory.getInstance().putSystemLabel(getProject(), "Flutter full restart");
307+
LocalHistory.getInstance().putSystemLabel(getProject(), "Flutter hot restart");
308308

309309
final long reloadTimestamp = System.currentTimeMillis();
310310
changeState(State.RESTARTING);

0 commit comments

Comments
 (0)