Explorar o código

Merge pull request #170 from Razoric480/default-config-debugger-patch

Fix default debug config not using full filepath
Geequlim %!s(int64=5) %!d(string=hai) anos
pai
achega
97587b5b31
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/debugger/debugger_context.ts

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