Skip to content

Add dashTool and dashIdeName query params for DevTools, and change Source=VSCode to Source={dashIdeName} for surveys#6044

Merged
DanTup merged 4 commits into
masterfrom
use-ide-name-for-devtools-and-survey
May 12, 2026
Merged

Add dashTool and dashIdeName query params for DevTools, and change Source=VSCode to Source={dashIdeName} for surveys#6044
DanTup merged 4 commits into
masterfrom
use-ide-name-for-devtools-and-survey

Conversation

@DanTup

@DanTup DanTup commented Apr 29, 2026

Copy link
Copy Markdown
Member

Blocked: pending resolutions to the things in DevTools that switch on the IDE name (see #5970 (comment), flutter/devtools#9811)

Fixes #5970

devin-ai-integration[bot]

This comment was marked as resolved.

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

Updates survey/DevTools attribution to use the host IDE’s actual name (from vs.env.appName) instead of a hard-coded "VSCode", and ensures values are safely URL-encoded when sent via query strings.

Changes:

  • Flutter survey URL Source query parameter now uses vs.env.appName and encodes query parameters.
  • DevTools ide query parameter now uses vs.env.appName instead of "VSCode".
  • Adds a regression test ensuring survey query parameters are URL-encoded.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/shared/vscode/user_prompts.ts Switches survey Source to vs.env.appName and URL-encodes query params.
src/test/dart/user_prompts.test.ts Adds test coverage for query parameter URL-encoding.
src/extension/sdk/dev_tools/manager.ts Switches DevTools ide query param to vs.env.appName.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

gemini-code-assist[bot]

This comment was marked as resolved.

@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.52%. Comparing base (e96761f) to head (f8d3292).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6044      +/-   ##
==========================================
+ Coverage   70.49%   70.52%   +0.02%     
==========================================
  Files         171      171              
  Lines       12958    12971      +13     
  Branches     2590     2589       -1     
==========================================
+ Hits         9135     9148      +13     
  Misses       3336     3336              
  Partials      487      487              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

DanTup added a commit that referenced this pull request Apr 29, 2026
This is no longer used by Pub - see #6044 (comment)
@DanTup DanTup force-pushed the use-ide-name-for-devtools-and-survey branch from dfbca35 to 1a6d0c4 Compare May 5, 2026 16:05
@DanTup DanTup force-pushed the use-ide-name-for-devtools-and-survey branch from 1a6d0c4 to 9bb4909 Compare May 5, 2026 16:07
devin-ai-integration[bot]

This comment was marked as resolved.

@DanTup DanTup changed the title Send IDE name instead of "VSCode" to Flutter Surveys + DevTools Add dashTool and dashIdeName query params for DevTools, and change Source=VSCode to Source={dashIdeName} for surveys May 6, 2026
@DanTup

DanTup commented May 6, 2026

Copy link
Copy Markdown
Member Author

@kenzieschmoll this PR:

  • adds dashTool and dashIdeName to the DevTools querystrings (now looks like &ide=VSCode&dashTool=vscode-plugins&dashIdeName=Visual+Studio+Code for me)
  • changes "Source=VSCode" in Flutter surveys to "Source={dashIdeName}" (eg. "Source=Visual+Studio+Code")

Note: It doesn't change DevTools surveys, because we don't seem to add anything there (these are driven by unified analytics, and I'm not sure if it's tracking the IDEs at all besides the filter?)

I think it's safe to land this now if we plan to go ahead as described in flutter/devtools#9811 (comment)

(and if so, we'll need to ensure the same is done for IntelliJ - cc @helin24)

@DanTup DanTup merged commit ca31853 into master May 12, 2026
26 checks passed
DanTup added a commit that referenced this pull request May 12, 2026
This is no longer used by Pub - see #6044 (comment)
@DanTup DanTup deleted the use-ide-name-for-devtools-and-survey branch May 12, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch DevTools/survey querystring values from "VSCode" to DASH__IDE_NAME

4 participants