提交 0d9aa129 编写于 作者: M Martin Aeschlimann

More jsonc adoptions

上级 a24a9a05
......@@ -32,8 +32,7 @@
".jscsrc",
".eslintrc",
".babelrc",
".webmanifest",
".code-workspace"
".webmanifest"
],
"filenames": [
".watchmanconfig",
......@@ -51,7 +50,10 @@
"JSON with comments"
],
"extensions": [
".code-workspace"
".code-workspace",
"language-configuration.json",
"icon-theme.json",
"color-theme.json"
],
"filenames": [
"settings.json",
......
......@@ -448,6 +448,7 @@ const schemaId = 'vscode://schemas/locale';
const schema: IJSONSchema =
{
id: schemaId,
allowComments: true,
description: 'Locale Definition file',
type: 'object',
default: {
......
......@@ -344,6 +344,7 @@ export class LanguageConfigurationFileHandler {
const schemaId = 'vscode://schemas/language-configuration';
const schema: IJSONSchema = {
allowComments: true,
default: {
comments: {
blockComment: ['/*', '*/'],
......
......@@ -10,6 +10,7 @@ import { EXTENSION_IDENTIFIER_PATTERN } from 'vs/platform/extensionManagement/co
export const ExtensionsConfigurationSchemaId = 'vscode://schemas/extensions';
export const ExtensionsConfigurationSchema: IJSONSchema = {
id: ExtensionsConfigurationSchemaId,
allowComments: true,
type: 'object',
title: localize('app.extensions.json.title', "Extensions"),
properties: {
......
......@@ -149,6 +149,7 @@ function validateProperties(configuration: IConfigurationNode, extension: IExten
const jsonRegistry = Registry.as<IJSONContributionRegistry>(JSONExtensions.JSONContribution);
jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
allowComments: true,
default: {
folders: [
{
......
......@@ -184,6 +184,7 @@ export function tokenColorsSchema(description: string): IJSONSchema {
const schemaId = 'vscode://schemas/color-theme';
const schema: IJSONSchema = {
type: 'object',
allowComments: true,
properties: {
colors: colorsSchema,
tokenColors: {
......
......@@ -11,6 +11,7 @@ import { IJSONSchema } from 'vs/base/common/jsonSchema';
const schemaId = 'vscode://schemas/icon-theme';
const schema: IJSONSchema = {
type: 'object',
allowComments: true,
definitions: {
folderExpanded: {
type: 'string',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册