bitwes / gut-extension

VSCode extension to run GUT from the editor.
MIT License
29 stars 6 forks source link

Use project's launch config for port and address #37

Open ali-wallick opened 6 months ago

ali-wallick commented 6 months ago

Using the commands for running tests with the debugger was broken with our project. Looking into it, I think the issue is currently the VSCode extension uses the LSP port.

With this PR, I'm instead pulling the port from the workspace's launch config. To be honest I am not familiar with TypeScript or developing extensions so this change was made with the help of AI. So I'm not super confident on this specific implementation, but it seems to resolve the issue in our project.

Thanks so much for the addon and extension, super excited to use it with our project!

bitwes commented 5 months ago

Thanks for the PR. I'm having some trouble determining the root cause of the issue, which I'd like to understand before merging in this code. Can you provide the following?

The port should be getting pulled from the value configured in the Godot VSCode extension. I'm not 100% sure how launch.json works and would like to get the value from the Godot extension as this seems like a good source of truth.