ソースを参照

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

Fix default debug config not using full filepath
Geequlim 5 年 前
コミット
97587b5b31
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> {
 		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";