bitwes / gut-extension

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

Activate extension when Godot project is in a sub-directory #6

Closed pcting closed 3 years ago

pcting commented 3 years ago

I'm in the progress of building out go binding for godot here: godot-go. I need support to activate the GUT extension by searching for sub-directories for the gut.gd file.

I already have a PR up in the godot-vscode-plugin here: https://github.com/godotengine/godot-vscode-plugin/issues/239

thus, these settings works with both patches:

    "gut-extension.additionalOptions": "-d --path test/project",
    "godot_tools.project_path": "test/project"

thanks!

bitwes commented 3 years ago

This change doesn't require the change to the godot project right? This is my first and only vscode plugin I've made and wanted to double check before I tried to remember how to test all this stuff again, heh.

pcting commented 3 years ago

the change to the godot-vscode-plugin isn't technically required; committing these changes won't break the gut-extension, however, without the changes committed in godot-vscode-plugin, these changes won't be as useful

this is my first stab at playing with vscode extensions too. my debug process:

  1. run vsce package to build a local vscode package
  2. run code --install-extension my-extension-0.0.1.vsix to install it.
  3. reload code and test.

documentation here: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#packaging-extensions

bitwes commented 3 years ago

Tested and merged. Thanks for the PR.