LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Tab completion deleting text before it

Open MrHemlock opened this issue 6 months ago • 0 comments

Describe the bug

I'm having an issue with tab completion on certain LSP servers. In this specific case, it's an issue with LSP-Elm. An example is say I have the following code:

canSignalPrisoner : Bool -> Bool -> Bool
canSignalPrisoner archerIsAwake prisonerIsAwake =
    not archerIsAwake && pri

The completion option pops up to show prisonerIsAwake. If I select the completion, what I end up with is:

canSignalPrisoner : Bool -> Bool -> Bool
canSignalPrisoner archerIsAwake prisonerIsAwake =
    not archerIsAwake &prisonerIsAwake

To Reproduce

Have text before the text that gets code completion options

Expected behavior

The code suggestion gets placed properly.

Logs

LSP Log.txt

sublime console.txt

lsp-elm log.txt

Environment (please complete the following information):

  • OS: Windows 11 Pro 24H2
  • Sublime Text version: 4200
  • LSP version: 2.3.0
  • Language servers used: Elm

MrHemlock avatar May 23 '25 21:05 MrHemlock