diff --git a/docs/qute/TemplateSupport.md b/docs/qute/TemplateSupport.md index b36457c9..2f18cad9 100644 --- a/docs/qute/TemplateSupport.md +++ b/docs/qute/TemplateSupport.md @@ -112,12 +112,24 @@ CodeLens are clickable to jump to the proper Java type, method or field. ## Inlay Hint for Qute +All inlay hints can be turned off by disabling `qute.inlayHints.enabled` in settings. + +### Show Section parameter type + Qute support displays the Java type of the parameter names as an inlay hint. -![Inlay Hints for Qute](images/QuteTemplateInlayHint.gif) +![Show Section parameter type](images/QuteTemplateInlayHint_ShowSectionParameterType.gif) + +To remove inlay hints on section parameter types only, disable `qute.inlayHints.showSectionParameterType` in settings. + +### Show Section parameter default value + +Qute support displays the default value of the parameter names as an inlay hint when user tag defines a default value (ex: `{#let name?="main.css"}`) -All inlay hints can be turned off by disabling `qute.inlayHints.enabled` in settings. To remove inlay hints on section parameter types only, disable `qute.inlayHints.showSectionParameterType` in settings. +![Show Section parameter default value](images/QuteTemplateInlayHint_ShowSectionParameterDefaultValue.gif) +To remove inlay hints on section parameter default value only, disable `qute.inlayHints.showSectionParameterDefaultValue` in settings. + ## Surround with Commands (Wrap) This command provides the ability to select Qute content and surround it some content. To execute this command you can use the command palette (`Ctrl+Shift+P`) and type `Surround`. diff --git a/docs/qute/images/QuteTemplateInlayHint_ShowSectionParameterDefaultValue.gif b/docs/qute/images/QuteTemplateInlayHint_ShowSectionParameterDefaultValue.gif new file mode 100644 index 00000000..e645c65a Binary files /dev/null and b/docs/qute/images/QuteTemplateInlayHint_ShowSectionParameterDefaultValue.gif differ diff --git a/docs/qute/images/QuteTemplateInlayHint.gif b/docs/qute/images/QuteTemplateInlayHint_ShowSectionParameterType.gif similarity index 100% rename from docs/qute/images/QuteTemplateInlayHint.gif rename to docs/qute/images/QuteTemplateInlayHint_ShowSectionParameterType.gif diff --git a/package.json b/package.json index 1270f0a9..a56f5746 100644 --- a/package.json +++ b/package.json @@ -277,6 +277,11 @@ "default": true, "markdownDescription": "Show section parameter type. Default is `true`." }, + "qute.inlayHint.showSectionParameterDefaultValue": { + "type": "boolean", + "default": true, + "markdownDescription": "Show section parameter default value. Default is `true`." + }, "qute.native.enabled": { "type": "boolean", "default": false,