Skip to content

fix: switch to gen-lsp-types - #2494

Open
ribru17 wants to merge 1 commit into
Myriad-Dreamin:mainfrom
ribru17:gen-lsp-types
Open

fix: switch to gen-lsp-types#2494
ribru17 wants to merge 1 commit into
Myriad-Dreamin:mainfrom
ribru17:gen-lsp-types

Conversation

@ribru17

@ribru17 ribru17 commented Apr 29, 2026

Copy link
Copy Markdown

@ribru17

ribru17 commented Apr 29, 2026

Copy link
Copy Markdown
Author

See rust-lang/rust-analyzer#22115 and wgsl-analyzer/wgsl-analyzer#1090 for other migration considerations

@Myriad-Dreamin Myriad-Dreamin left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the awesome gen-lsp-types crate. I really appreciate you providing a replacement for the unmaintained lsp-types. I've left two comments, but they shouldn't block merging.

Comment thread crates/sync-lsp/src/server/lsp_srv.rs
Comment thread crates/sync-lsp/src/server/dap_srv.rs Outdated
@ribru17
ribru17 marked this pull request as draft May 23, 2026 06:43
@ribru17

ribru17 commented May 23, 2026

Copy link
Copy Markdown
Author

I'm drafting another release of the library which contains a metamodel update (supporting new markdown diagnostic messages) and allows for request/notification enums to be created without ownership, meaning no unnecessary allocations. Will mark this PR as ready once the release is cut and everything seems to be working 👍

@ribru17
ribru17 marked this pull request as ready for review May 23, 2026 06:45
@ribru17
ribru17 marked this pull request as draft May 23, 2026 06:45
@ribru17
ribru17 marked this pull request as ready for review May 30, 2026 05:33
@ribru17

ribru17 commented May 30, 2026

Copy link
Copy Markdown
Author

I've pushed a new version of the library, which should remove the need for the allocations as mentioned above. Also, the request/notification method newtype is now Copy as well! PTAL and let me know your thoughts :)

[gen-lsp-types](https://github.com/ribru17/gen-lsp-types) is an
alternative to the lsp-types crate, with types generated via codegen
from the official LSP Metamodel for correctness and completeness.

lsp-types issues fixed in gen-lsp-types:

- gluon-lang/lsp-types#310
- gluon-lang/lsp-types#308
- gluon-lang/lsp-types#284
- gluon-lang/lsp-types#278
- gluon-lang/lsp-types#277
- gluon-lang/lsp-types#260
- gluon-lang/lsp-types#245
- gluon-lang/lsp-types#93

Closes Myriad-Dreamin#1542 (as an alternative solution)
@ribru17

ribru17 commented Jun 16, 2026

Copy link
Copy Markdown
Author

@Myriad-Dreamin I've resolved the conflicts for this change and bumped to the latest library version (in case you're still interested in this change)

@Myriad-Dreamin

Copy link
Copy Markdown
Owner

@ribru17 I didn't forget this PR. we are just processing bump the main upstream typst from v0.14 to v0.15. This just happens once a year, :).

@ribru17

ribru17 commented Jun 16, 2026

Copy link
Copy Markdown
Author

No worries or rush- that's exciting!

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.

Consider switching from lsp-types to lspt

2 participants