From b30024b7ab8280428afa85338d0e52bf32569e74 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 20 Jul 2019 19:17:27 -0700 Subject: [PATCH] LSP: ParameterInformation.label --- LSP.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LSP.md b/LSP.md index 83a613e..f3dbb4c 100644 --- a/LSP.md +++ b/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