Skip to content

Commit

Permalink
Show section parameter default value as inlay hint settings
Browse files Browse the repository at this point in the history
See redhat-developer/quarkus-ls#906

Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr committed Jul 21, 2023
1 parent c7d258b commit 971836c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/qute/TemplateSupport.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 971836c

Please sign in to comment.