🐛 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
+4 -6
View File
@@ -348,12 +348,10 @@ namespace lsp::manager
auto stem = entry.path().stem().string();
if (!HasMatchingTopLevelSymbol(*table, stem))
{
spdlog::warn("Skipping system file {}: top-level symbol does not match file name (stem='{}', top-level={})",
entry.path().string(),
stem,
DescribeTopLevelSymbols(*table));
++failed;
continue;
spdlog::debug("Indexing system file {} with unmatched top-level symbol (stem='{}', top-level={})",
entry.path().string(),
stem,
DescribeTopLevelSymbols(*table));
}
StoredSymbolEntry stored;