Skip to content

Index unsaved declarations on document changes - #4254

Open
efegokdemir wants to merge 2 commits into
Shopify:mainfrom
efegokdemir:efe/index-open-document-changes
Open

efegokdemir wants to merge 2 commits into
Shopify:mainfrom
efegokdemir:efe/index-open-document-changes

Conversation

@efegokdemir

Copy link
Copy Markdown

Index declarations from textDocument/didChange when an edit can affect them, so editors that do not send document symbol, document link, code lens or folding requests still see unsaved declarations. The existing combined feature results are computed during the same AST traversal and cached for subsequent requests. Regression coverage checks immediate declaration and ancestor updates, plus reuse of the cached feature response. Tests: test/server_test.rb (65 tests), test/ruby_document_test.rb (45), rake test:indexer (318), RuboCop and srb tc.

@efegokdemir
efegokdemir requested a review from a team as a code owner November 1, 2026 23:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant