diff --git a/src/text_editor/plugin_remedybg.cpp b/src/text_editor/plugin_remedybg.cpp index 031cd95..bb0ed2a 100644 --- a/src/text_editor/plugin_remedybg.cpp +++ b/src/text_editor/plugin_remedybg.cpp @@ -2116,6 +2116,15 @@ bool RDBG_InitConnection(mco_coro *co) { } } + if (file.len == 0) { + Scratch scratch; + for (FileIter it = IterateFiles(scratch, ProjectDirectory); IsValid(it); Advance(&it)) { + if (EndsWith(it.filename, ".rdbg")) { + file = Intern(&GlobalInternTable, it.absolute_path); + } + } + } + if (file.len == 0) { file = QueryUserFile(co); }