Clean up json! literal for vtsls configuration (#13518)

This PR cleans up the formatting of the `json!` literal used to provided
`vtsls` configuration.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-06-25 13:04:31 -04:00 committed by GitHub
parent b2a0a7fa3c
commit e0c192d831
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,41 +162,37 @@ impl LspAdapter for VtslsLspAdapter {
_: &Arc<dyn LspAdapterDelegate>, _: &Arc<dyn LspAdapterDelegate>,
) -> Result<Option<serde_json::Value>> { ) -> Result<Option<serde_json::Value>> {
Ok(Some(json!({ Ok(Some(json!({
"typescript": "typescript": {
{
"tsdk": "node_modules/typescript/lib", "tsdk": "node_modules/typescript/lib",
"format": { "format": {
"enable": true "enable": true
}, },
"inlayHints":{ "inlayHints": {
"parameterNames": "parameterNames": {
{
"enabled": "all", "enabled": "all",
"suppressWhenArgumentMatchesName": false, "suppressWhenArgumentMatchesName": false,
}, },
"parameterTypes": {
"parameterTypes":
{
"enabled": true "enabled": true
}, },
"variableTypes": { "variableTypes": {
"enabled": true, "enabled": true,
"suppressWhenTypeMatchesName": false, "suppressWhenTypeMatchesName": false,
}, },
"propertyDeclarationTypes":{ "propertyDeclarationTypes": {
"enabled": true, "enabled": true,
}, },
"functionLikeReturnTypes": { "functionLikeReturnTypes": {
"enabled": true, "enabled": true,
}, },
"enumMemberValues":{ "enumMemberValues": {
"enabled": true, "enabled": true,
} }
} }
}, },
"vtsls": "vtsls": {
{"experimental": { "experimental": {
"completion": { "completion": {
"enableServerSideFuzzyMatch": true, "enableServerSideFuzzyMatch": true,
"entriesLimit": 5000, "entriesLimit": 5000,
@ -220,35 +216,31 @@ impl LspAdapter for VtslsLspAdapter {
"format": { "format": {
"enable": true "enable": true
}, },
"inlayHints":{ "inlayHints": {
"parameterNames": "parameterNames": {
{
"enabled": "all", "enabled": "all",
"suppressWhenArgumentMatchesName": false, "suppressWhenArgumentMatchesName": false,
}, },
"parameterTypes": {
"parameterTypes":
{
"enabled": true "enabled": true
}, },
"variableTypes": { "variableTypes": {
"enabled": true, "enabled": true,
"suppressWhenTypeMatchesName": false, "suppressWhenTypeMatchesName": false,
}, },
"propertyDeclarationTypes":{ "propertyDeclarationTypes": {
"enabled": true, "enabled": true,
}, },
"functionLikeReturnTypes": { "functionLikeReturnTypes": {
"enabled": true, "enabled": true,
}, },
"enumMemberValues":{ "enumMemberValues": {
"enabled": true, "enabled": true,
} }
} }
}, },
"vtsls": "vtsls": {
{"experimental": { "experimental": {
"completion": { "completion": {
"enableServerSideFuzzyMatch": true, "enableServerSideFuzzyMatch": true,
"entriesLimit": 5000, "entriesLimit": 5000,