From 016a803dca8685ba9343b349241f609e98b61ae7 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Tue, 12 Dec 2023 14:36:00 +0000 Subject: [PATCH] Note that InlayHints with the same position are shown in-order (#1681) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Note that InlayHints with the same position are shown in-order Fixes https://github.com/microsoft/language-server-protocol/issues/1680. * Update metaModel --------- Co-authored-by: Dirk Bäumer --- _specifications/lsp/3.17/language/inlayHint.md | 3 +++ _specifications/lsp/3.17/metaModel/metaModel.json | 2 +- _specifications/lsp/3.18/language/inlayHint.md | 3 +++ _specifications/lsp/3.18/metaModel/metaModel.json | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/_specifications/lsp/3.17/language/inlayHint.md b/_specifications/lsp/3.17/language/inlayHint.md index 162330e..8a1ad02 100644 --- a/_specifications/lsp/3.17/language/inlayHint.md +++ b/_specifications/lsp/3.17/language/inlayHint.md @@ -113,6 +113,9 @@ export interface InlayHint { /** * The position of this hint. + * + * If multiple hints have the same position, they will be shown in the order + * they appear in the response. */ position: Position; diff --git a/_specifications/lsp/3.17/metaModel/metaModel.json b/_specifications/lsp/3.17/metaModel/metaModel.json index 3c9f237..1259670 100644 --- a/_specifications/lsp/3.17/metaModel/metaModel.json +++ b/_specifications/lsp/3.17/metaModel/metaModel.json @@ -3735,7 +3735,7 @@ "kind": "reference", "name": "Position" }, - "documentation": "The position of this hint." + "documentation": "The position of this hint.\n\nIf multiple hints have the same position, they will be shown in the order\nthey appear in the response." }, { "name": "label", diff --git a/_specifications/lsp/3.18/language/inlayHint.md b/_specifications/lsp/3.18/language/inlayHint.md index d1e7c96..085f197 100644 --- a/_specifications/lsp/3.18/language/inlayHint.md +++ b/_specifications/lsp/3.18/language/inlayHint.md @@ -113,6 +113,9 @@ export interface InlayHint { /** * The position of this hint. + * + * If multiple hints have the same position, they will be shown in the order + * they appear in the response. */ position: Position; diff --git a/_specifications/lsp/3.18/metaModel/metaModel.json b/_specifications/lsp/3.18/metaModel/metaModel.json index 8f05a8d..88d0da5 100644 --- a/_specifications/lsp/3.18/metaModel/metaModel.json +++ b/_specifications/lsp/3.18/metaModel/metaModel.json @@ -3735,7 +3735,7 @@ "kind": "reference", "name": "Position" }, - "documentation": "The position of this hint." + "documentation": "The position of this hint.\n\nIf multiple hints have the same position, they will be shown in the order\nthey appear in the response." }, { "name": "label",