mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Fix default debug config not using full filepath
As a result, it couldn't find project.godot even when one was there. Fixes #167
This commit is contained in:
@@ -176,7 +176,7 @@ class GodotConfigurationProvider implements DebugConfigurationProvider {
|
||||
): ProviderResult<DebugConfiguration> {
|
||||
if (!config.type && !config.request && !config.name) {
|
||||
const editor = window.activeTextEditor;
|
||||
if (editor && fs.existsSync(`${folder}/project.godot`)) {
|
||||
if (editor && fs.existsSync(`${folder.uri.fsPath}/project.godot`)) {
|
||||
config.type = "godot";
|
||||
config.name = "Debug Godot";
|
||||
config.request = "launch";
|
||||
|
||||
Reference in New Issue
Block a user