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.
This commit is contained in:
Raul Santos
2021-07-23 22:42:16 +02:00
parent 312c258adb
commit 22c743717a
7 changed files with 71 additions and 17 deletions

View File

@@ -39,6 +39,7 @@
"chokidar": "^3.4.0",
"fs-extra": "^10.0.0",
"jsonc-parser": "^3.0.0",
"lookpath": "^1.2.1",
"promise-socket": "^6.0.3",
"vscode-debugprotocol": "^1.40.0"
},
@@ -71,6 +72,16 @@
}
],
"contributes": {
"configuration": {
"title": "Godot Mono",
"properties": {
"godot.csharp.executablePath": {
"type": "string",
"default": null,
"description": "Path to the Godot engine executable."
}
}
},
"commands": [
{
"command": "godot.csharp.generateAssets",