xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
229 stars 54 forks source link

Allow "xmake.customDebugConfig" to be configured by project rather than globally #140

Open Altyrost opened 1 year ago

Altyrost commented 1 year ago

Is your feature request related to a problem? Please describe.

Right now, it is possible to configure the debugger with the "xmake.customDebugConfig" in the settings.json. This is very usefull to, for example, pass some arguments to the program we're debugging. Right now, this feature seems available only through settings.json

Describe the solution you'd like

Make that configuration editable by project rather than through a global option. For example, generating a .vscode/launch.json and using it could be a great solution.

Describe alternatives you've considered

Right now, it is doable by creating a .vscode/settings.json file and customizing it.

Additional context

No response

waruqi commented 1 year ago

I don't know how to read .vscode/launch.json, maybe need improve here. https://github.com/xmake-io/xmake-vscode/blob/d9cfd83236ac434ebdea105bd65d3e1d4c09c6c0/src/config.ts#L13

A2va commented 1 year ago

VScode can already have a per project settings. For that you need a create .vscode/settings.json and override xmake.customDebugConfig