Skip to content

Conversation

@lionel-
Copy link
Collaborator

@lionel- lionel- commented Dec 2, 2025

This PR prepares Ark taking a dependency on functionality (currently) provided by Air.

  • Move from_proto:: and to_proto:: conversion utils to a new aether_lsp_utils crate. "aether" is our tentative name for the set of products having to do with language analysis.

  • Some reorganisation of exported parser tools. Was mostly meant to support exporting a version of the parser that takes a TS tree instead of text source, but we decided not to introduce TS in the public API, at least for now. The long term plan is to remove any TS-based functionality and we'll try to respect that along the way.

  • New from_proto::apply_text_changes() helper extracted from Document::update(). Takes a Vec<lsp_types::TextDocumentContentChangeEvent> and updates a source.

  • New apply_text_edits() which takes a Vec<lsp_types::TextEdit> and updates a source. Handles change ordering a little differently as apply_text_changes(), see comments inline.

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.

2 participants