Fix default debug config not using full filepath

As a result, it couldn't find project.godot even when one was there.
Fixes #167
This commit is contained in:
Francois Belair
2020-05-04 14:31:09 -04:00
parent ccad4acfac
commit 1c2b3ffadc

View File

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