Skip to content

Commit

Permalink
Merge pull request #1091 from fuyu0425/json-fomatting
Browse files Browse the repository at this point in the history
send formatting in capabilities and setup vscode-json-language-server
  • Loading branch information
manateelazycat authored Oct 24, 2024
2 parents ae72b62 + 34160c0 commit ea8e1a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion core/lspserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,16 @@ def get_capabilities(self):
"plaintext"
],
"dynamicRegistration": True
}
},
"formatting": {
"dynamicRegistration": True
},
"rangeFormatting": {
"dynamicRegistration": True
},
"onTypeFormatting": {
"dynamicRegistration": True
},
},
"window": {
"workDoneProgress": True
Expand Down
5 changes: 4 additions & 1 deletion langserver/vscode-json-language-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"vscode-json-language-server",
"--stdio"
],
"settings": {}
"settings": {},
"initializationOptions": {
"provideFormatter": true
}
}

0 comments on commit ea8e1a5

Please sign in to comment.