From 87e033e6ba10b598221e4c5e635e8b0338f25149 Mon Sep 17 00:00:00 2001 From: testledjones <89788766+testledjones@users.noreply.github.com> Date: Mon, 21 Apr 2025 00:12:07 +0700 Subject: [PATCH] Change debug_current_file error message (#836) * Change debug_current_file error message Currently, the error message in debug_current_file doesn't tell the user that the scene file and script file must share the same name. This fixes that * Change message text --------- Co-authored-by: David Kincaid --- src/debugger/debugger.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/debugger/debugger.ts b/src/debugger/debugger.ts index 85f1f07..28d962a 100644 --- a/src/debugger/debugger.ts +++ b/src/debugger/debugger.ts @@ -165,8 +165,9 @@ export class GodotDebugger implements DebugAdapterDescriptorFactory, DebugConfig if (path.endsWith(".gd")) { const scenePath = path.replace(".gd", ".tscn"); if (!fs.existsSync(scenePath)) { - log.warn(`Can't find associated scene for '${path}', aborting debug`); - window.showWarningMessage(`Can't find associated scene file for '${path}'`); + const message = `Can't launch debug session: no associated scene for '${path}'. (Script and scene file must have the same name.)`; + log.warn(message); + window.showWarningMessage(message); return; } path = scenePath;