From 45971641c9926365a78644dad7f3491d53f96a30 Mon Sep 17 00:00:00 2001 From: Marie Katrine Ekeberg Date: Sat, 21 Oct 2023 11:39:09 +0200 Subject: [PATCH 1/3] Add new inlay hints properties for use with the language server --- package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package.json b/package.json index dfc3921..f69d228 100644 --- a/package.json +++ b/package.json @@ -318,6 +318,21 @@ "default": true, "description": "[DEPRECATED] Specifies whether code completion should provide snippets (true) or plain-text items (false).", "deprecationMessage": "Use 'kotlin.completion.snippets.enabled'" + }, + "kotlin.inlayHints.typeHints": { + "type": "boolean", + "default": true, + "description": "Whether to give type hints as inlay hints on declaration sites or not." + }, + "kotlin.inlayHints.parameterHints": { + "type": "boolean", + "default": true, + "description": "Whether to give parameter hints as inlay hints on call sites or not." + }, + "kotlin.inlayHints.chainedHints": { + "type": "boolean", + "default": true, + "description": "Whether to give inlay hints on chained function calls or not." } } } From c7f0ef3189d7c14ee723483fa27cd6246286cada Mon Sep 17 00:00:00 2001 From: fwcd Date: Sun, 14 Jan 2024 23:26:46 +0000 Subject: [PATCH 2/3] Fix defaults for inlay hint config options --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f69d228..839230f 100644 --- a/package.json +++ b/package.json @@ -321,17 +321,17 @@ }, "kotlin.inlayHints.typeHints": { "type": "boolean", - "default": true, + "default": false, "description": "Whether to give type hints as inlay hints on declaration sites or not." }, "kotlin.inlayHints.parameterHints": { "type": "boolean", - "default": true, + "default": false, "description": "Whether to give parameter hints as inlay hints on call sites or not." }, "kotlin.inlayHints.chainedHints": { "type": "boolean", - "default": true, + "default": false, "description": "Whether to give inlay hints on chained function calls or not." } } From 358e8ea8a395f6cf047a152a098988952d4f0f9b Mon Sep 17 00:00:00 2001 From: fwcd Date: Sun, 14 Jan 2024 23:27:29 +0000 Subject: [PATCH 3/3] Slightly improve wording --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 839230f..638e9de 100644 --- a/package.json +++ b/package.json @@ -322,17 +322,17 @@ "kotlin.inlayHints.typeHints": { "type": "boolean", "default": false, - "description": "Whether to give type hints as inlay hints on declaration sites or not." + "description": "Whether to provide inlay hints for types on declaration sites or not." }, "kotlin.inlayHints.parameterHints": { "type": "boolean", "default": false, - "description": "Whether to give parameter hints as inlay hints on call sites or not." + "description": "Whether to provide inlay hints for parameters on call sites or not." }, "kotlin.inlayHints.chainedHints": { "type": "boolean", "default": false, - "description": "Whether to give inlay hints on chained function calls or not." + "description": "Whether to provide inlay hints on chained function calls or not." } } }