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
textDocument/linkedEditingRange mode is not triggered when typing on empty lines lines
Current Behavior
Duplicated characters are inserted into the buffer on the line below and on the current line.
Possible Solution
I wonder whether is an off-by-one error when mapping the current cursor position in the code to determine whether to enable linkedEditingRange. Have not investigated further.
Steps to Reproduce (for bugs)
Reproducible with both Zed and VSCode.
Zed Steps:
Install the Zed Elm extension (cmd-shift-x, search for Elm, click install.
brew install elm
mkdir /tmp/elm
cd $_
elm init
echo '-- Welcome to hell
viewError : View Msg
viewError = {}
' > src/Main.elm
zed . src/Main.elm:2
Then type something (abc) on line 2.
Use undo (cmd-z) if you want to trigger it multiple times.
Context
End-users trying to edit files can duplicated text inserted a line below after the first character.
Your Environment
Version used: "@elm-tooling/elm-language-server": "2.8.0" (installed via npm)
Editor used: Zed Nightly 0.167.0
Environment name and version node-v18.15.0-darwin-arm64
Expected Behavior
textDocument/linkedEditingRange
mode is not triggered when typing on empty lines linesCurrent Behavior
Duplicated characters are inserted into the buffer on the line below and on the current line.
Possible Solution
I wonder whether is an off-by-one error when mapping the current cursor position in the code to determine whether to enable linkedEditingRange. Have not investigated further.
Steps to Reproduce (for bugs)
Reproducible with both Zed and VSCode.
Zed Steps:
Install the Zed
Elm
extension (cmd-shift-x, search for Elm, click install.Then type something (abc) on line 2.
Use undo (cmd-z) if you want to trigger it multiple times.
Context
End-users trying to edit files can duplicated text inserted a line below after the first character.
Your Environment
"@elm-tooling/elm-language-server": "2.8.0"
(installed via npm)Extra info
See also:
zed video
Screen.Recording.2024-12-15.at.21.43.53.mov
vscode video
Screen.Recording.2024-12-16.at.14.13.04.mov
elm-language-server LSP logs: rpc messages
Thanks!
The text was updated successfully, but these errors were encountered: