浏览代码

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