Skip to content

Add dashTool and dashIdeName params#8969

Merged
helin24 merged 3 commits into
flutter:mainfrom
helin24:devtools-url
May 11, 2026
Merged

Add dashTool and dashIdeName params#8969
helin24 merged 3 commits into
flutter:mainfrom
helin24:devtools-url

Conversation

@helin24
Copy link
Copy Markdown
Member

@helin24 helin24 commented May 8, 2026

Fixes #8968

An example DevTools URL: http://127.0.0.1:9104/?ide=Android-Studio&dashTool=intellij-plugins&dashIdeName=Android+Studio&backgroundColor=191a1c&theme=dark&embedMode=many&hide=home,inspector,deep-links,extensions,debugger&ideFeature=toolWindow

Copy link
Copy Markdown
Contributor

@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 updates the DevToolsUrl class to include dashTool and dashIdeName parameters in the generated URL, utilizing a new getIdeName() helper method to retrieve the IDE version. A corresponding unit test was added to verify the URL construction. The review identified that the ide parameter requires URL encoding to prevent invalid URLs and raised concerns regarding the use of global state in getIdeName(), suggesting that the IDE name should be passed via the builder to improve testability.

Comment thread src/io/flutter/devtools/DevToolsUrl.java Outdated
Comment thread src/io/flutter/devtools/DevToolsUrl.java
@helin24
Copy link
Copy Markdown
Member Author

helin24 commented May 11, 2026

CC @DanTup @kenzieschmoll

@helin24 helin24 requested review from jwren and pq May 11, 2026 18:15
@helin24 helin24 merged commit 0c94262 into flutter:main May 11, 2026
8 checks passed
@helin24 helin24 deleted the devtools-url branch May 11, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change DevTools URL values to match IDE environment variables

2 participants