Skip to content

Support using flutter-dev - #5653

Merged
DanTup merged 2 commits into
masterfrom
support-flutter-dev
Aug 13, 2025
Merged

DanTup merged 2 commits into
masterfrom
support-flutter-dev

Conversation

@DanTup

@DanTup DanTup commented Aug 13, 2025

Copy link
Copy Markdown
Member

Fixes #5651

@DanTup DanTup added this to the v3.118.0 milestone Aug 13, 2025
@DanTup DanTup added is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. in flutter Relates to running Flutter apps labels Aug 13, 2025
@DanTup
DanTup requested a review from Copilot August 13, 2025 16:08
@DanTup

DanTup commented Aug 13, 2025

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for using the flutter-dev script instead of the standard flutter tool. This is a useful feature for developers working on the Flutter tool itself. The implementation introduces a new setting dart.useFlutterDev and uses it to select the correct executable.

The changes are straightforward and look good. I have one suggestion in src/shared/constants.ts to improve code clarity by reordering the declaration of flutterPath and its modifier function setFlutterDev.

Overall, this is a solid contribution.

Comment thread src/shared/constants.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for using flutter-dev instead of the standard flutter command, addressing issue #5651. The flutter-dev script is intended for developers of the Flutter tool itself to run from source code.

  • Adds a new configuration option dart.useFlutterDev to toggle between flutter and flutter-dev executables
  • Implements a dynamic path switching mechanism that modifies the Flutter path at runtime
  • Configures the Flutter development mode during extension activation

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/shared/constants.ts Adds flutterDev executable definitions and dynamic path switching logic
src/extension/extension.ts Imports and calls the Flutter dev configuration during activation
src/extension/config.ts Adds the useFlutterDev configuration property
package.json Defines the new dart.useFlutterDev VS Code setting

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread src/shared/constants.ts
Comment thread src/shared/constants.ts
@DanTup
DanTup merged commit 10441db into master Aug 13, 2025
@DanTup
DanTup deleted the support-flutter-dev branch August 13, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in flutter Relates to running Flutter apps is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support using flutter-dev as the Flutter entrypoint script

2 participants