Repository navigation
Conversation
A request no longer calls AnalysisState::catch_up: the update queue's writer and didOpen own the index impact before the request barrier, and a completion that drained unread includes synchronously repeated up to nine reads and write commits on the hot path. The first completion measured 540 ms with the call removed versus 990 ms with it; steady state is 4–6 ms either way. The rendering is still built on demand by view_of_the_rendering_now. last_rendered now records the index's file count, so an include read cannot be hidden by a cache keyed only on text and prefix. The remaining per-request logs on the hot path (superseded requests, client cancellations, writer phases, no-member completions) are debug instead of info; the worklog no longer claims a per-request completion log. Workspace tests: 914 + 1164 + 119 + 525 + 166 + 31 green; clippy -D warnings and fmt clean.
An edit drops the summary while the writer rebuilds it, and a recovered tree can still name only some of the functions. Answering that window with a partial list, an empty list, or ContentModified replaces (or clears) the client's lenses, which is the up/down jump reported while typing. Keep a single last complete list for the document currently being asked about; it is one slot, not a map of every open tab, and it is what the client is already drawing. A complete answer replaces it, a workspace reload clears it, and an incomplete/partial answer returns the previous list unchanged. A source with parse errors is treated as incomplete so a recovered partial summary cannot overwrite the good list. The regression test edits a settled file, requests lenses again, then edits an unfinished brace and asserts the exact previous list is returned before the completed edit replaces it. cpp_ls suite 120, workspace 914 + 1164 + 120 + 525, clippy -D warnings.
This reverts commit 8a77bac.
textDocument/codeLens now returns anchors with data and no command; it no longer calls places_of, so a reference index that is still filling cannot make the list partial or ContentModified. codeLens/resolve looks up the declaration and only then computes the reference count and command. CodeLensOptions advertises resolve_provider=true, and the wire tests resolve each lens before asserting its title (including the editor-command identity test and [code_lens] enable=false fixture). The synchronous complete_lenses_of remains test-only. cpp_ls suite 119, workspace tests green, clippy -D warnings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.