dap: include sbarinfo in script types (no debug support for anything but zscript yet, this is just for returning source info)

This commit is contained in:
nikitalita 2025-03-11 22:26:43 -07:00
parent c608873002
commit 7e2e0cec8c

View file

@ -118,7 +118,8 @@ static inline bool isScriptPath(const std::string &path)
}
std::string scriptName = ToLowerCopy(path.substr(normalizePath(path).find_last_of('/') + 1));
auto ext = scriptName.substr(scriptName.find_last_of('.') + 1);
if (!(ext == "zs" || ext == "zsc" || ext == "zc" || ext == "acs" || ext == "dec" || (scriptName == "DECORATE") || (scriptName == "ACS")))
if (!(ext == "zs" || ext == "zsc" || ext == "zc" || ext == "acs" || ext == "dec" || (scriptName == "decorate") || (scriptName == "acs")
|| (scriptName == "sbarinfo")))
{
return false;
}