Commit Graph

7 Commits

Author SHA1 Message Date
Raul Santos
b94f1e912a Add debug configuration to launch a specified scene
A new **Launch** debug configuration that shows a selector to the user
to choose among any of the `*.tscn` files in the workspace to use as the
entrypoint instead of using the project's
main scene.
2021-11-15 02:58:19 +01:00
Raul Santos
22c743717a Try to find the Godot executable
Tries to find the Godot executable to set it in the generated
`tasks.json` and `launch.json` files automatically for the user.

The user can specify a custom path in the configuration to use
as the Godot executable path, since it's unlikely we'll find it
otherwise.
2021-11-13 23:34:49 +01:00
Raul Santos
312c258adb Configuration class to easily read values and watch for changes
A new Configuration class that can be used to accessed strongly
typed variables and watches for changes to the configuration.
2021-11-13 23:34:49 +01:00
Raul Santos
253cbf9522 Refactor extension and create asset generator
Separates the extension.ts code in multiple files and adds an asset
generator code to provide the `tasks.json` and `launch.json` files (can
be triggered manually with a command).

- The build task generated uses the Godot CLI to build the solution (as
described in #18), I think this is the cleanest solution since we let
Godot handle the building of the project, but the user must configure
the path to the Godot executable.
- The Launch debug configuration is now created with the build
`preLaunchTask` automatically so users won't have to set it up manually
(fixes #18).
- Adds snippets to `tasks.json` to add debug configuration easily
after the file has been created.
- Adds a command to generate the `tasks.json` and `launch.json` manually
for convenience (asks the user if they want to override their current
configuration first).
2021-11-13 23:34:49 +01:00
Oles
f5465bb1ff Detect project.godot files automatically and let users select which to use 2021-09-23 16:09:39 -04:00
Ignacio Etcheverry
7b0b5ab6b4 Fixed messaging with the Godot editor not working on Windows 2020-05-26 02:14:45 +02:00
Ignacio Etcheverry
94e3f57d7a Initial commit 2020-05-09 16:24:06 +02:00