vscode-json-language-server doesn't support executing code action "Sort JSON" #8847
Unanswered
mattias-arrelid
asked this question in
Troubleshooting
Replies: 3 comments 10 replies
-
I can investigate that a bit |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here's a screenshot of a simple JSON document, and me invoking the code actions popup (space + a). Document in question: {
"test": {
"a_key": 1,
"last_key": [
"hey",
"you"
],
"another_key": 2
}
} If I select everything and pipe to {
"test": {
"a_key": 1,
"another_key": 2,
"last_key": [
"hey",
"you"
]
}
} |
Beta Was this translation helpful? Give feedback.
9 replies
-
@TornaxO7 Please see the attached example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Installing the default language server for JSON as outlined in the official documentation, you get a "Sort JSON" code action in JSON documents. Invoking this results in the following error message:
Language server does not support executing commands
I'm not sure why this action would be available by default if it doesn't work?
Output from
hx --health json
below:Reproduction Steps
I tried this:
hx
by invokingbrew install helix
vscode-langservers-extracted
usingnpm
, as indicated is the default language server for JSONhx test.json
Space
followed bya
(for "Perform code action")I expected this to happen:
JSON document would be sorted (by its keys).
Instead, this happened:
You get an error -
Language server does not support executing commands
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
wezterm 20231107-082518-f0e3eecb
Installation Method
homebrew
Helix Version
helix 23.10 (f6021dd)
Beta Was this translation helpful? Give feedback.
All reactions