You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am contributing to the Micro Language Server Protocol (mlsp) and have encountered an issue with the ExecuteTextEvent() method when handling TextEventReplace events. Currently, when deltas are created, it assumes that there are no newline characters within the text.
Is this an edge case that has not been considered, a bug, or an intended feature?
Please refer to line 130, where the same Y value is used for both Start and End:
We need to send the same changes to the LSP that Micro does. A possible solution on our side (similar to what needs to be done in Micro) could be the following:
The LineArray functions remove and insert appear to handle newlines (likely for deleting multiline selections), but the upstream ExecuteTextEvent does not.
The text was updated successfully, but these errors were encountered:
usfbih8u
changed the title
[Feature Request]: Allow multiline TextEventReplace events
[Feature Request]: Allow multiline text in TextEventReplaceJan 23, 2025
I am contributing to the Micro Language Server Protocol (mlsp) and have encountered an issue with the
ExecuteTextEvent()
method when handlingTextEventReplace
events. Currently, when deltas are created, it assumes that there are no newline characters within the text.Is this an edge case that has not been considered, a bug, or an intended feature?
Please refer to line 130, where the same
Y
value is used for bothStart
andEnd
:micro/internal/buffer/eventhandler.go
Lines 125 to 135 in f5debdf
You can find more details about the issue in these messages:
textDocument/rename
Andriamanitra/mlsp#23 (comment)textDocument/rename
Andriamanitra/mlsp#23 (comment)We need to send the same changes to the LSP that Micro does. A possible solution on our side (similar to what needs to be done in Micro) could be the following:
The
LineArray
functionsremove
andinsert
appear to handle newlines (likely for deleting multiline selections), but the upstreamExecuteTextEvent
does not.The text was updated successfully, but these errors were encountered: