-
Notifications
You must be signed in to change notification settings - Fork 647
Simplify generated launch.json #2120
Comments
@ramya-rao-a Are there any plans to address this? Thanks a lot |
Can you elaborate on this? Is this just an addition to the activation events?
In Go, debugging current file and current package is the same thing. All files under a folder belong to the same package. That leaves the "connect to server" scenario, which requires user to provide the host, port and remote path etc. And users are aware that they have to create a configuration in the launch.json file for this.
This was intentional for discoverablilty purposes :)
There isnt much during the setup time as far as I know. I resolve many of the defaults in the Debugging tests using codelens has the problem of not being able to pass args or set env, but other than that, I cannot think of any issues at setup time. |
@ramya-rao-a thanks for your response.
Leaving fields for discoverability purposes makes good sense if a field is changed often by the user. So it would be great if you could go through them and decide for each if they really should be there. Also what is Great that you are already resolving defaults in the I am just trying to give some suggestions on how to improve this, in the end you know much better what would lead to a better go debugging experience. So let me know if there is something on the vscode side which we could do to improve this. |
Yes, I went through this exercise and cleared quite a few a couple of months ago
|
Awesome that you already cleared some fields. |
Just a ping reminder regarding this. |
Yes, we can automatically infer |
Maybe not directly related with the json generation, but I think one of the main problems during debug configuration is the inconsistency between the debug test codelens and the debug viewlet launcher. Centralizing the configuration between GoRunTestCodeLensProvider and GoDebugConfigurationProvider should be the starting point towards this, but I don't know the current feasibility of this change |
Closing this issue in favor of golang/vscode-go#131 due to the repo move |
This milestone I am looking into simplifing generated
launch.json
for various extensions microsoft/vscode#62851The
launch.json
that GO generates is attached at the end. This is cool and simple. However we can still do the followingonDebugInitialConfigurations
quickPick
inDebugConfigurationProvider
to ask the user if he would like to launch file, launch package, connect to server, launch test package, launch test function and based on that create a launch configuration.env
,args
. Both from the configurationSnippets and from the intial configurationsThe text was updated successfully, but these errors were encountered: