Skip to content

Commit 7518324

Browse files
authored
[CQ] RestartFlutterDaemonAction: fix action description contract (flutter#8512)
The same sentence is legitimately a title and a sentence but we still need annotations to ensure the inspection sees we're respecting the contract. <img width="1516" height="206" alt="image" src="https://github.com/user-attachments/assets/56aebbbb-a403-458e-998c-af429fd9fb7e" /> --- <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](flutter#8098)). </details>
1 parent e619ef4 commit 7518324

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/io/flutter/actions/RestartFlutterDaemonAction.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class RestartFlutterDaemonAction extends AnAction {
2323
* Create a `RestartFlutterDaemonAction` for presentation in the device selector.
2424
*/
2525
public static RestartFlutterDaemonAction forDeviceSelector() {
26-
return new RestartFlutterDaemonAction("Restart Flutter Daemon", FlutterIcons.Flutter);
26+
return new RestartFlutterDaemonAction("Restart Flutter Daemon", "Restart Flutter Daemon", FlutterIcons.Flutter);
2727
}
2828

2929
/**
@@ -38,8 +38,9 @@ public static RestartFlutterDaemonAction forDeviceSelector() {
3838
*/
3939
@SuppressWarnings("ActionPresentationInstantiatedInCtor")
4040
private RestartFlutterDaemonAction(@Nullable @NlsActions.ActionText String text,
41+
@Nullable @NlsActions.ActionDescription String description,
4142
@Nullable Icon icon) {
42-
super(text, text, icon);
43+
super(text, description, icon);
4344
}
4445

4546
@Override

0 commit comments

Comments
 (0)