🐛 fix(symbol): index all system tsf files

Do not drop system-library .tsf units when the file stem differs from top-level symbols.

Add test_provider support for --interpreter=... and an interpreter integration test that validates full indexing plus completion+resolve snippet.
This commit is contained in:
csh
2025-12-24 12:02:30 +08:00
parent 02864dda89
commit adec86a3aa
5 changed files with 244 additions and 7 deletions
@@ -22,6 +22,22 @@ export namespace lsp::test::provider
return ExecutablePathStorage();
}
inline std::string& InterpreterPathStorage()
{
static std::string value;
return value;
}
inline void SetInterpreterPath(std::string value)
{
InterpreterPathStorage() = std::move(value);
}
inline const std::string& InterpreterPath()
{
return InterpreterPathStorage();
}
inline std::filesystem::path FixturesRoot()
{
return std::filesystem::path(__FILE__).parent_path() / "fixtures";