Skip to content

feat(lsp): type alias navigation and references#4

Merged
klaidliadon merged 1 commit into
feat/selective-importsfrom
feat/alias-references
Mar 30, 2026
Merged

feat(lsp): type alias navigation and references#4
klaidliadon merged 1 commit into
feat/selective-importsfrom
feat/alias-references

Conversation

@klaidliadon
Copy link
Copy Markdown
Collaborator

Summary

  • Add go-to-definition support for type aliases (cmd-click on alias types in struct fields, service args, etc.)
  • Add Find All References support for alias declarations and usages
  • Add hover info for alias declarations and their underlying type expressions
  • Include aliases in locallyDefinedNames, unresolvedSymbols, and referencedNames so import quick-fixes account for alias types

Test plan

  • make test passes
  • Open a .ridl file with type aliases, verify cmd-click navigates to alias definition
  • Verify Find All References on an alias name shows all usage sites
  • Verify hover on alias name shows type info

Type aliases were parsed into the schema but excluded from all LSP
navigation handlers. Add alias support to findTypeDefinitionToken,
definitionAt, hoverAt, referenceTargetAt, referenceLocations,
locallyDefinedNames, unresolvedSymbols, and referencedNames.
@klaidliadon klaidliadon merged commit 8cef828 into feat/selective-imports Mar 30, 2026
1 check passed
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