Step 131: stub-based library indexing

This commit is contained in:
Bill
2026-02-09 17:00:55 -07:00
parent 42ee684087
commit ae95aeb303
7 changed files with 336 additions and 2 deletions

View File

@@ -802,6 +802,7 @@ struct EditorState {
return;
}
if (!lsp || !lspTransport || !lspTransport->isOpen()) {
applyStubFallback(libraryIndex, dependencyPanel.deps, workspaceRoot);
rebuildExternalModulesFromIndex();
outputLog += "[deps] Library index uses cached symbols (LSP offline).\n";
return;
@@ -822,6 +823,7 @@ struct EditorState {
}
libraryIndexRequests.push_back(req);
}
applyStubFallback(libraryIndex, dependencyPanel.deps, workspaceRoot);
rebuildExternalModulesFromIndex();
outputLog += "[deps] Library index requests queued: " +
std::to_string(libraryIndexRequests.size()) + "\n";
@@ -856,6 +858,7 @@ struct EditorState {
}
}
if (updated) {
applyStubFallback(libraryIndex, dependencyPanel.deps, workspaceRoot);
rebuildExternalModulesFromIndex();
outputLog += "[deps] Library index updated.\n";
}