Преглед изворни кода

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 година
родитељ
комит
1c2b3ffadc
1 измењених фајлова са 1 додато и 1 уклоњено
  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> {
 	): ProviderResult<DebugConfiguration> {
 		if (!config.type && !config.request && !config.name) {
 		if (!config.type && !config.request && !config.name) {
 			const editor = window.activeTextEditor;
 			const editor = window.activeTextEditor;
-			if (editor && fs.existsSync(`${folder}/project.godot`)) {
+			if (editor && fs.existsSync(`${folder.uri.fsPath}/project.godot`)) {
 				config.type = "godot";
 				config.type = "godot";
 				config.name = "Debug Godot";
 				config.name = "Debug Godot";
 				config.request = "launch";
 				config.request = "launch";