From 0f902fb55f266f474d1346c1649f3414324b5c57 Mon Sep 17 00:00:00 2001 From: Alessandro Scandone Date: Tue, 25 Jun 2024 04:03:12 +0200 Subject: [PATCH 1/4] add option --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index a948c11..2d16db0 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,11 @@ "default": null, "description": "A path to the gleam executable. By default, the extension looks for gleam in the PATH, but if set, will use the path specified instead.", "scope": "machine" + }, + "gleam.inlayHints.pipelines": { + "type": "boolean", + "default": true, + "description": "Whether to show inlay type hints for multiline pipe expressions" } } } From c9f3b0fe1cbace675b96e4cc888573c3f113768b Mon Sep 17 00:00:00 2001 From: Alessandro Scandone Date: Tue, 25 Jun 2024 23:57:11 +0200 Subject: [PATCH 2/4] changed default value --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2d16db0..9af5c4d 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ }, "gleam.inlayHints.pipelines": { "type": "boolean", - "default": true, + "default": false, "description": "Whether to show inlay type hints for multiline pipe expressions" } } From 712b833b99a62a3fcc8cefb2976ccc6b9c07592e Mon Sep 17 00:00:00 2001 From: ascandone Date: Sun, 8 Sep 2024 13:55:20 +0200 Subject: [PATCH 3/4] fixed casing --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9af5c4d..a8b77a9 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "description": "A path to the gleam executable. By default, the extension looks for gleam in the PATH, but if set, will use the path specified instead.", "scope": "machine" }, - "gleam.inlayHints.pipelines": { + "gleam.inlay_hints.pipelines": { "type": "boolean", "default": false, "description": "Whether to show inlay type hints for multiline pipe expressions" From 0ba13120bea375b737a0a6d04cef9708c5379eee Mon Sep 17 00:00:00 2001 From: ascandone Date: Sat, 8 Mar 2025 13:33:30 +0100 Subject: [PATCH 4/4] updated options --- package.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8b77a9..d4448e5 100644 --- a/package.json +++ b/package.json @@ -79,10 +79,20 @@ "description": "A path to the gleam executable. By default, the extension looks for gleam in the PATH, but if set, will use the path specified instead.", "scope": "machine" }, - "gleam.inlay_hints.pipelines": { + "gleam.inlayHints.parameterTypes": { + "type": "boolean", + "markdownDescription": "Whether to show inlay hints for return types on function signatures:\n ```gleam\nfn f(\n x//: Int\n) {\n x + 1\n}\n```\n", + "default": false + }, + "gleam.inlayHints.returnTypes": { + "type": "boolean", + "markdownDescription": "Whether to show inlay hints for return types on function signatures:\n ```gleam\nfn f() // -> Int\n {\n 42\n}\n```\n", + "default": false + }, + "gleam.inlayHints.pipelines": { "type": "boolean", "default": false, - "description": "Whether to show inlay type hints for multiline pipe expressions" + "markdownDescription": "Whether to show inlay type hints for multiline pipe expressions:\n ```gleam\nf() //Int\n|> g() //List(String)\n|> k() //Bool \n```\n" } } }