-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Is your feature request related to a problem? Please describe.
The DTD process listens on a random port when it starts. VS Code automatically forwards this port and lists it in the Ports section of the IDE. Each time VS Code is closed and reopened, a new DTD process starts, and a new port is forwarded. Over time, this leads to an accumulation of previously forwarded ports, making it difficult to identify the ports of interest.
Describe the solution you'd like
It is possible to specify the port that DTD listens to. The solution would be to allow the Dart VS Code extension to configure this port in settings.json. This way, DTD will always listen on the same port, preventing clutter in the Ports section.
Describe alternatives you've considered
I searched the existing options exposed by this VS Code extension for "DTD," "daemon," and "port" but couldn't find an option that allows passing additional parameters to the command that starts DTD.
Dart-Code/src/shared/services/tooling_daemon.ts
Lines 287 to 290 in a81b54a
| const daemonArgs = [ | |
| "tooling-daemon", | |
| "--machine", | |
| ]; |
Additional context
None