-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Describe the bug
Split off from flutter/devtools#8912 (see flutter/devtools#8912 (comment))
If you open devtools in the browser while debugging in Dart in VS Code in WSL, the "Dart: Dev Tools Browser" setting does not seem to take effect. Whether it is set to "chrome" or "default", it always opens in "default", which is Edge on my system. Note that this only is an issue for me in WSL, and the setting works appropriately in Windows natively.
To Reproduce
- Set default browser on your system to Edge (or something else non-Chrome)
- Open VS Code in WSL2 Ubuntu
- Set the "Dart: Dev Tools Browser" setting to "chrome"
- debug a Dart program
- At a breakpoint, open devtools in browser
- Observe that it opens in non-Chrome instead of Chrome
Expected behavior
Setting works, opens in chrome if specified as such.
Screenshots
Please complete the following information:
Workspace Environment
Dart Code extension: 3.106.0
App: Visual Studio Code
App Host: desktop
Remote: wsl
Host Kind: wsl
Version: linux 1.97.2
Workspace type: Dart (LSP)
Workspace name: rohd-hcl [WSL: Ubuntu]
Dart (3.7.0): /usr/lib/dart
Flutter (undefined): undefined (No device)
Output from 'dart info'
/usr/lib/dart/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
- Dart 3.7.0 (stable) (None) on "linux_x64"
- on linux / Linux 5.15.167.4-microsoft-standard-WSL2 Code already includes yaml support, doesn't need providing #1 SMP Tue Nov 5 00:21:55 UTC 2024
- locale is C.UTF-8
Project info
- sdk constraint: '>=3.0.0 <4.0.0'
- dependencies: collection, meta, rohd, rohd_vf
- dev_dependencies: logging, test
Process info
| Memory | CPU | Elapsed time | Command line |
|---|---|---|---|
| 84 MB | 0.3% | 06:16 | dart devtools --machine --allow-embedding --dtd-uri ws:/qYCG49aSQsE= |
| 382 MB | 0.0% | 03:49:38 | dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.104.0 |
| 431 MB | 0.3% | 02:14:39 | dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.106.0 |
| 362 MB | 0.2% | 01:37:33 | dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.106.0 |
| 332 MB | 3.6% | 07:00 | dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.106.0 |
| 78 MB | 0.0% | 03:49:38 | dart tooling-daemon --machine |
| 79 MB | 0.0% | 01:37:33 | dart tooling-daemon --machine |
| 108 MB | 0.5% | 07:00 | dart tooling-daemon --machine |
