Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use textEdit of completionItem unconditionally #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 21, 2022

  1. Use textEdit of completionItem unconditionally

    The server's CompletionItem.textEdit should always be respected,
    because in recent versions of the LSP, it is the server who should
    tell what to replace and what not.
    
    Before this change, a trigger character was always ignored, whether
    the server requested to replace it or not. This could be problematic
    in some cases.
    
    For instance, in PHP, you have a dollar sign beforeevery variable.
    If the server request to replace say `$th` with `$this` using a
    TextEdit interface, the client translates this to replacing `th`
    with `$this`, which results in a wrong `$$this` result.
    machitgarha authored Jul 21, 2022
    Configuration menu
    Copy the full SHA
    aa6fdda View commit details
    Browse the repository at this point in the history