Skip to content

Support textDocument/documentHighlight for usages of values#5452

Draft
gavinmorrow wants to merge 3 commits intogleam-lang:mainfrom
gavinmorrow:gavinmorrow/document-highlight-values
Draft

Support textDocument/documentHighlight for usages of values#5452
gavinmorrow wants to merge 3 commits intogleam-lang:mainfrom
gavinmorrow:gavinmorrow/document-highlight-values

Conversation

@gavinmorrow
Copy link
Contributor

@gavinmorrow gavinmorrow commented Mar 11, 2026

Closes #5441.

  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

@gavinmorrow gavinmorrow changed the title Gavinmorrow/document highlight values Support textDocument/documentHighlight for usages of values Mar 11, 2026
@gavinmorrow gavinmorrow force-pushed the gavinmorrow/document-highlight-values branch from 000343b to eca9199 Compare March 11, 2026 12:07
@gavinmorrow gavinmorrow force-pushed the gavinmorrow/document-highlight-values branch from eca9199 to 43f0a6f Compare March 11, 2026 14:07
@gavinmorrow
Copy link
Contributor Author

This feature uses the code for find references under the hood, because it is essentially a "find references in this file/module". I'm not really sure what to do about testing. Should the references.rs file be copied and renamed to document_highlights.rs and the tests very slightly changed? (For the most part a s/references/highlights.) Or should the tests be bundled in with the ones for references? Or something else entirely?

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.

Support textDocument/documentHighlight message for usages of values

1 participant