Support inlay-hints for svelteserver. (#7622)
This commit is contained in:
parent
bc4f08febf
commit
2cb00bcbc4
3 changed files with 38 additions and 2 deletions
|
@ -141,7 +141,7 @@
|
|||
| sql | ✓ | | | |
|
||||
| sshclientconfig | ✓ | | | |
|
||||
| starlark | ✓ | ✓ | | |
|
||||
| svelte | ✓ | | | `svelteserver` |
|
||||
| svelte | ✓ | | ✓ | `svelteserver` |
|
||||
| sway | ✓ | ✓ | ✓ | `forc` |
|
||||
| swift | ✓ | | | `sourcekit-lsp` |
|
||||
| t32 | ✓ | | | |
|
||||
|
|
|
@ -62,7 +62,6 @@ slint-lsp = { command = "slint-lsp", args = [] }
|
|||
solargraph = { command = "solargraph", args = ["stdio"] }
|
||||
solc = { command = "solc", args = ["--lsp"] }
|
||||
sourcekit-lsp = { command = "sourcekit-lsp" }
|
||||
svelteserver = { command = "svelteserver", args = ["--stdio"] }
|
||||
svlangserver = { command = "svlangserver", args = [] }
|
||||
swipl = { command = "swipl", args = [ "-g", "use_module(library(lsp_server))", "-g", "lsp_server:main", "-t", "halt", "--", "stdio" ] }
|
||||
taplo = { command = "taplo", args = ["lsp", "stdio"] }
|
||||
|
@ -140,6 +139,25 @@ includeInlayParameterNameHintsWhenArgumentMatchesName = true
|
|||
includeInlayPropertyDeclarationTypeHints = true
|
||||
includeInlayVariableTypeHints = true
|
||||
|
||||
[language-server.svelteserver]
|
||||
command = "svelteserver"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language-server.svelteserver.config.configuration.typescript]
|
||||
inlayHints.parameterTypes.enabled = true
|
||||
inlayHints.variableTypes.enabled = true
|
||||
inlayHints.propertyDeclarationTypes.enabled = true
|
||||
inlayHints.functionLikeReturnTypes.enabled = true
|
||||
inlayHints.enumMemberValues.enabled = true
|
||||
inlayHints.parameterNames.enabled = "all"
|
||||
|
||||
[language-server.svelteserver.config.configuration.javascript]
|
||||
inlayHints.parameterTypes.enabled = true
|
||||
inlayHints.variableTypes.enabled = true
|
||||
inlayHints.propertyDeclarationTypes.enabled = true
|
||||
inlayHints.functionLikeReturnTypes.enabled = true
|
||||
inlayHints.enumMemberValues.enabled = true
|
||||
inlayHints.parameterNames.enabled = "all"
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
|
|
18
runtime/queries/svelte/indents.scm
Normal file
18
runtime/queries/svelte/indents.scm
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
(element)
|
||||
(if_statement)
|
||||
(each_statement)
|
||||
(await_statement)
|
||||
(script_element)
|
||||
(style_element)
|
||||
] @indent
|
||||
|
||||
[
|
||||
(end_tag)
|
||||
(else_statement)
|
||||
(if_end_expr)
|
||||
(each_end_expr)
|
||||
(await_end_expr)
|
||||
">"
|
||||
"/>"
|
||||
] @outdent
|
Loading…
Reference in a new issue