Skip to content

Conversation

@DanTup
Copy link
Member

@DanTup DanTup commented Aug 13, 2025

Fixes #5651

@DanTup DanTup added this to the v3.118.0 milestone Aug 13, 2025
@DanTup DanTup added is enhancement in flutter Relates to running Flutter apps labels Aug 13, 2025
@DanTup DanTup requested a review from Copilot August 13, 2025 16:08
@DanTup
Copy link
Member Author

DanTup commented Aug 13, 2025

/gemini review

Copy link

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

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.

Copy link

Copilot AI left a comment

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.

@DanTup DanTup merged commit 10441db into master Aug 13, 2025
20 of 21 checks passed
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support using flutter-dev as the Flutter entrypoint script

2 participants