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).

@dbaeumer should keepWhitespace be an option here, or should the VS Code LSP client just always set it to true?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions