дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
fix(editor): match WebStorm's JS/TS inlay hint defaults and cut long hints (#7338)
JS/TS inlay hints default as in WebStorm: inferred types for variables and fields, enum values, and parameter names for literal and anonymous-function arguments. The Editor toggle now reaches the typescript-language-server fallback too. Long hints are cut with the full label in the tooltip, which also refreshes when the server changes it. Closes #7326 Co-authored-by: wildcatDownstairs <[email protected]>
Цей коміт міститься в:
1 джерело
f853ccf544
коміт
2f799aede9
21 files changed
+513
-53
No files matched your search
@@ -35,15 +35,16 @@ enabled = "never"
|
||||
[language-servers.initialization-options.javascript.updateImportsOnFileMove]
|
||||
enabled = "never"
|
||||
|
||||
# Inlay hints (off in vtsls by default): parameter names at literal arguments, inferred
|
||||
# variable types and enum member values. Editor › Inlay Hints decides which are shown.
|
||||
# Inlay hints (off in vtsls by default), as in WebStorm: parameter names at literal and function
|
||||
# arguments (the server sends all of them; the IDE keeps those), inferred variable and field types
|
||||
# (Editor › Inlay Hints › JavaScript and TypeScript types) and enum member values.
|
||||
[language-servers.initialization-options.typescript.inlayHints]
|
||||
parameterNames = { enabled = "literals", suppressWhenArgumentMatchesName = true }
|
||||
parameterNames = { enabled = "all", suppressWhenArgumentMatchesName = true }
|
||||
variableTypes = { enabled = true, suppressWhenTypeMatchesName = true }
|
||||
enumMemberValues = { enabled = true }
|
||||
|
||||
[language-servers.initialization-options.javascript.inlayHints]
|
||||
parameterNames = { enabled = "literals", suppressWhenArgumentMatchesName = true }
|
||||
parameterNames = { enabled = "all", suppressWhenArgumentMatchesName = true }
|
||||
variableTypes = { enabled = true, suppressWhenTypeMatchesName = true }
|
||||
enumMemberValues = { enabled = true }
|
||||
|
||||
@@ -61,18 +62,17 @@ install-hint = "npm i -g typescript@6 typescript-language-server"
|
||||
[language-servers.initialization-options.preferences]
|
||||
providePrefixAndSuffixTextForRename = false
|
||||
|
||||
# Inlay hints, as for vtsls above.
|
||||
# Inlay hints, as for vtsls above. Variable and field types come from the Editor switch, which
|
||||
# the settings here would override.
|
||||
[language-servers.settings.typescript.inlayHints]
|
||||
includeInlayParameterNameHints = "literals"
|
||||
includeInlayParameterNameHints = "all"
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false
|
||||
includeInlayVariableTypeHints = true
|
||||
includeInlayVariableTypeHintsWhenTypeMatchesName = false
|
||||
includeInlayEnumMemberValueHints = true
|
||||
|
||||
[language-servers.settings.javascript.inlayHints]
|
||||
includeInlayParameterNameHints = "literals"
|
||||
includeInlayParameterNameHints = "all"
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false
|
||||
includeInlayVariableTypeHints = true
|
||||
includeInlayVariableTypeHintsWhenTypeMatchesName = false
|
||||
includeInlayEnumMemberValueHints = true
|
||||
|
||||
|
||||
Reference in new issue
Заблокувати користувача