Эх сурвалжийг харах

Fix default debug config not using full filepath

As a result, it couldn't find project.godot even when one was there.
Fixes #167
Francois Belair 5 жил өмнө
parent
commit
1c2b3ffadc

+ 1 - 1
src/debugger/debugger_context.ts

@@ -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";