Файли
openidea/languages/json.toml
T
LU XIANGRUIтаwildcatDownstairs a75c332905 feat(csharp): schema completion and validation for launchSettings.json and global.json (#7732)
Properties/launchSettings.json and global.json opened as plain JSON, with no key completion and no check of values such as commandName or rollForward. Both file names are now associated with their SchemaStore schemas in languages/json.toml, next to package.json and tsconfig.json; a $schema in the file still wins.

Closes #7729

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-03 19:52:36 +08:00

92 рядки
3.2 KiB
TOML
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
id = "json"
name = "JSON"
formatter = { tool = "prettier", parser = "json", range = true }
extensions = ["json", "geojson", "topojson", "webmanifest", "har", "avsc", "jsonl", "ndjson", "json.map", "uproject", "uplugin", "xcstrings"]
filenames = [".prettierrc", ".watchmanconfig", "composer.lock", ".arcconfig"]
indent = { tab-size = 2, insert-spaces = true }
ui-mode = "JSON"
tree-sitter = "json"
[[language-servers]]
name = "vscode-json-language-server"
command = "vscode-json-language-server"
args = ["--stdio"]
initialization-options = { provideFormatter = true }
install-hint = "npm i -g vscode-langservers-extracted"
# Validation is off in vscode-json-language-server unless enabled. Schemas from SchemaStore for
# common configuration files; a `$schema` in the file itself still wins.
[language-servers.settings.json.validate]
enable = true
[[language-servers.settings.json.schemas]]
fileMatch = ["package.json"]
url = "https://json.schemastore.org/package.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["tsconfig.json", "tsconfig.*.json"]
url = "https://json.schemastore.org/tsconfig.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["jsconfig.json", "jsconfig.*.json"]
url = "https://json.schemastore.org/jsconfig.json"
[[language-servers.settings.json.schemas]]
fileMatch = [".eslintrc", ".eslintrc.json"]
url = "https://json.schemastore.org/eslintrc.json"
[[language-servers.settings.json.schemas]]
fileMatch = [".prettierrc", ".prettierrc.json"]
url = "https://json.schemastore.org/prettierrc.json"
[[language-servers.settings.json.schemas]]
fileMatch = [".babelrc", ".babelrc.json", "babel.config.json"]
url = "https://json.schemastore.org/babelrc.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["lerna.json"]
url = "https://json.schemastore.org/lerna.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["turbo.json"]
url = "https://turbo.build/schema.json"
[[language-servers.settings.json.schemas]]
fileMatch = [".swcrc"]
url = "https://swc.rs/schema.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["composer.json"]
url = "https://getcomposer.org/schema.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["global.json"]
url = "https://json.schemastore.org/global.json"
[[language-servers.settings.json.schemas]]
fileMatch = ["launchSettings.json"]
url = "https://json.schemastore.org/launchsettings.json"
# Biome: lint diagnostics, quick fixes and fix-all below a Biome configuration or installation,
# from the project's own biome. Formatting is Reformat Code's (Settings › Biome).
[[language-servers]]
name = "biome"
command = "biome"
args = ["lsp-proxy"]
root-markers = ["biome.json", "biome.jsonc", "node_modules/@biomejs/biome"]
require-root-marker = true
features = ["code-action", "diagnostics"]
install-hint = "npm i -D @biomejs/biome"
# Phoxite, where it is the project's PHP server, on Laravel's translation files
# (`lang/en.json`): Find Usages and Rename of a key, with the `__('…')` calls
# that read it.
[[language-servers]]
name = "phoxite"
command = "phoxite-lsp"
args = []
root-markers = ["composer.json", "artisan", "index.php"]
joins = "php"
files = ["**/lang/**/*.json"]
install-hint = "Install Phoxite in Settings › Languages & Frameworks › Language Servers"