-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[json] Allow extensions to enable the builtin json-language-features
extension on their own personal json languageId
#198025
Comments
For html we support something called language participants: If that's useful, I'm happy to take a PR for JSON. But maybe first. may I ask what kind of language that is? |
Syntax highlighter for VSCodes json TextMate files also the new but.... |
Ok I see. No, your proposals would be merged with the proposals from the lJSON anguage server. But you might get conflicting proposals unless you can tune the schema the way you want it. An alternative is to not define a new language but keep it as JSON. |
yeah, I'll make the schem handle the basics and let my language server handle the rest switching to solely using semantic highlighting instead of textmate isn't an option for me I'll look into making a PR soon |
json-language-features
extension on their own personal json languageId
json-language-features
extension on their own personal json languageId
@aeschli Do you have some minimal steps to verify this? |
place this in an extensions "main": "",
"extensionDependencies": [
"vscode.json-language-features"
],
"contributes": {
"jsonLanguageParticipants": [
{
"languageId": "foobar"
}
]
}
|
Currently the builtin
json
extension supports the language idsjson
andjsonc
It would be nice if other extensions could add their own
languageId
to the listfrom my testing, simply allowing the possibility to add languages to the
documentSelector
will workvscode/extensions/json-language-features/client/src/jsonClient.ts
Line 150 in 55c1e84
and also modifying the
"activationEvents"
vscode/extensions/json-language-features/package.json
Lines 14 to 17 in bdc113f
also very closely related @jeff-hykin
the language
Code Snippets
does not have thejson language server
enabledThe text was updated successfully, but these errors were encountered: