LSP: ParameterInformation.label

Fangrui Song 2019-07-20 19:17:27 -07:00
parent 9caff063f2
commit b30024b7ab

2
LSP.md

@ -5,6 +5,8 @@ MaskRay's random complaints about Language Server Protocol
* VSCode sorts `sortText` case insensitively.
* VSCode only allows length-one strings in `CompletionRegistrationOptions.triggerCharacters` https://github.com/Microsoft/language-server-protocol/issues/138 (closed) Server developers have to work around that. `CompletionTriggerKind::TriggerCharacter` should extend as well.
* The order of `textEdit` `additionTextEdits` is not specified.
* Initially `ParameterInformation.label` was a `string` (this made it difficult to highlight the label),
then changed to `string | [number, number]` (https://github.com/microsoft/language-server-protocol/issues/640). Specifying `[start,end)` (`[number, number]`) allows to highlight the label, but then it will not be able to supply a detailed string.
### Formatting