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?
VS Code's
SnippetTextEdithas akeepWhitespace: 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
keepWhitespacebe an option here, or should the VS Code LSP client just always set it totrue?