Ingest the generic outline into the symbol index
Each open document's text outline is published as its own context (outline:<uri>, provenance document-outline) on content change and removed on close, so it never replaces compiler facts. workspace/symbol no longer requires the occurrence observer, and documentSymbol skips the outline's index copies. The generic stdio session now resolves a workspace symbol with no compiler-specific artifact.
This commit is contained in:
1 parent
103b38a291
commit
0b33a0cd99
3 files changed
+60
-1
No files matched your search
+1
-1
@@ -772,7 +772,7 @@ DispatchResult Server::handle(std::string_view body) {
|
||||
return reply(id, "result", std::move(navigation.result));
|
||||
}
|
||||
if (*method == "workspace/symbol") {
|
||||
if (!diagnostics_ || !diagnostics_->supports_occurrences())
|
||||
if (!diagnostics_)
|
||||
return error(id, -32601, "Method not found");
|
||||
const auto *query = as_string(member(params, "query"));
|
||||
if (!query || query->size() > 256)
|
||||
|
||||
Reference in new issue
Block a user