Skip to content

feat: add type alias support to LSP#1

Merged
klaidliadon merged 2 commits into
masterfrom
feat/type-alias
Mar 30, 2026
Merged

feat: add type alias support to LSP#1
klaidliadon merged 2 commits into
masterfrom
feat/type-alias

Conversation

@klaidliadon
Copy link
Copy Markdown
Collaborator

Summary

  • Add TypeAliasNode type alias for upstream parser node
  • Iterate root.TypeAliases() in buildPartialSchema() so alias types are visible to hover, completion, and go-to-definition
  • Update webrpc dependency to include upstream alias parser support

Release order

Depends on webrpc v0.37.0 (webrpc/webrpc#439). Must update go.mod to pin to the release tag before merging.

  1. webrpc v0.37.0 ← merge and tag first
  2. gen-golang v0.28.0
  3. gen-typescript v0.26.0
  4. ridl-lsp v1.1.0 ← this PR
  5. ridl-vscode v0.0.2

Test plan

  • Update go.mod to webrpc@v0.37.0 after upstream tag
  • go test ./... passes
  • Open a .ridl file with type Foo: string — no error diagnostics, hover works

Iterate root.TypeAliases() in buildPartialSchema() so alias types
are visible to hover, completion, and go-to-definition. Update
webrpc dependency to include upstream alias parser support.
@klaidliadon klaidliadon merged commit 4e6774d into master 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