Skip to content

SnippetTextEdit doesn't have an option for preserving whitespace #2290

Description

@DanTup

VS Code's SnippetTextEdit has a keepWhitespace: boolean, which is not present in LSP.

After migrating some server code to use SnippetTextEdits, we found that VS Code is messing up the whitespace (trying to compensate for the lines indentation, even though the server had already done it correctly, resulting in duplicated indentation).

Dirk Bäumer (@dbaeumer) should keepWhitespace be an option here, or should the VS Code LSP client just always set it to true?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions