represent LS documents more sophisticated #17
Labels
No labels
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Blocks
#18 Glue LS should do INCREMENTAL document sync
code2rocq/imp2rocq
Reference
code2rocq/imp2rocq#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now we represent the contents of the source file (.imp) as just a big string. We should probably use something more sophisticated in the future, both for better performance and easier lookup. A simple thing could be an array of lines but there must exist even better data structures implemented in a rust crate. Like easy to look up with lsp position (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position), line and character number. Will make it easier to do incremental document sync, create and forward diagnostics, hover and so on.