mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Merge pull request #24622 from Supatier/fix-vscode-w-uncommon-exec-name
Fix: Cannot find code editor: VSCode; although installed on linux
This commit is contained in:
@@ -251,6 +251,14 @@ Error GodotSharpEditor::open_in_external_editor(const Ref<Script> &p_script, int
|
|||||||
// Try to search it again if it wasn't found last time or if it was removed from its location
|
// Try to search it again if it wasn't found last time or if it was removed from its location
|
||||||
vscode_path = path_which("code");
|
vscode_path = path_which("code");
|
||||||
}
|
}
|
||||||
|
if (vscode_path.empty() || !FileAccess::exists(vscode_path)) {
|
||||||
|
// On some Linux distro the executable has the name vscode
|
||||||
|
vscode_path = path_which("vscode");
|
||||||
|
}
|
||||||
|
if (vscode_path.empty() || !FileAccess::exists(vscode_path)) {
|
||||||
|
// Executable name when installing VSCode directly from MS on Linux
|
||||||
|
vscode_path = path_which("visual-studio-code");
|
||||||
|
}
|
||||||
|
|
||||||
List<String> args;
|
List<String> args;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user