Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[productivity] (vscode) add server test launch configurations #60070

Open
3 tasks done
pq opened this issue Feb 6, 2025 · 1 comment
Open
3 tasks done

[productivity] (vscode) add server test launch configurations #60070

pq opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-task A well-defined stand-alone task

Comments

@pq
Copy link
Member

pq commented Feb 6, 2025

Spending a bit of time on devtools yesterday, I found myself really appreciating the pre-populated run configurations. It would be great (especially for casual contributors) to do the same for server/analyzer/linter.


Launches

  • server test: all
  • linter test: all

Tasks

  • server generate files
@pq pq added analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-task A well-defined stand-alone task labels Feb 6, 2025
@pq pq self-assigned this Feb 6, 2025
@pq pq changed the title [productivity] (vscode) add server test run configurations [productivity] (vscode) add server test launch configurations Feb 6, 2025
copybara-service bot pushed a commit that referenced this issue Feb 6, 2025
Bug: #60070
Change-Id: Ia7dea87b6b2ac3c74745bb81807fe7347f1a552a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408340
Reviewed-by: Keerti Parthasarathy <[email protected]>
Commit-Queue: Phil Quitslund <[email protected]>
@FMorschel
Copy link
Contributor

I was debugging just now with the latest commit and my vscode launch got automatically changed to one of the inner launch-configs (I think this is the default behaviour since that one is more specific). I got a bit confused because I had just a few tests (running pkg\analysis_server\test\src\services\correction\assist\flutter_wrap_builder_test.dart) and now it was running many tests I didn't even know about.

I was talking to @DanTup, and he suggested these launch files could have a "single file" launch too and have that first. WDYT?

Something like:

{
  "name": "Current file",
  "request": "launch",
  "type": "dart",
  "program": "${file}",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-task A well-defined stand-alone task
Projects
None yet
Development

No branches or pull requests

2 participants