Skip to content

Commit cb70fd5

Browse files
committed
rename allowTrailingsCommas -> allowTrailingCommas
1 parent ff570b5 commit cb70fd5

15 files changed

Lines changed: 23 additions & 23 deletions

File tree

extensions/json-language-features/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"jsonc-parser": "^2.1.1",
1616
"request-light": "^0.2.4",
17-
"vscode-json-languageservice": "^3.3.3",
17+
"vscode-json-languageservice": "^3.3.4",
1818
"vscode-languageserver": "^5.3.0-next.8",
1919
"vscode-nls": "^4.1.1",
2020
"vscode-uri": "^2.0.3"

extensions/json-language-features/server/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ request-light@^0.2.4:
7373
https-proxy-agent "^2.2.1"
7474
vscode-nls "^4.0.0"
7575

76-
vscode-json-languageservice@^3.3.3:
77-
version "3.3.3"
78-
resolved "https://registry.yarnpkg.com/vscode-json-languageservice/-/vscode-json-languageservice-3.3.3.tgz#f7e512a2cd5e82fecbebf507d6fceaea47661297"
79-
integrity sha512-5vL3OXTUuQpn6+tGd47dopio+7WwbtIZ07zfYMzAUX8eVWPZjfEsLeSWmQk5Xw+vwgu+j5zC4koz5UofLDGGRA==
76+
vscode-json-languageservice@^3.3.4:
77+
version "3.3.4"
78+
resolved "https://registry.yarnpkg.com/vscode-json-languageservice/-/vscode-json-languageservice-3.3.4.tgz#4ff67580491d3a5dc469f4a78643f20adff0278d"
79+
integrity sha512-/nuI4uDBfxyVyeGtBdYwP/tIaXYKOoymUOSozYKLzsmrDmu555gZpzc11LrARa96z92wSaa5hfjTtNMAoM2mxw==
8080
dependencies:
8181
jsonc-parser "^2.1.1"
8282
vscode-languageserver-types "^3.15.0-next.2"

src/vs/base/common/jsonSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface IJSONSchema {
6161
markdownDescription?: string; // VSCode extension
6262
doNotSuggest?: boolean; // VSCode extension
6363
allowComments?: boolean; // VSCode extension
64-
allowsTrailingCommas?: boolean; // VSCode extension
64+
allowTrailingCommas?: boolean; // VSCode extension
6565
}
6666

6767
export interface IJSONSchemaMap {

src/vs/platform/configuration/common/configurationRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class ConfigurationRegistry implements IConfigurationRegistry {
170170
properties: {}
171171
};
172172
this.configurationContributors = [this.defaultOverridesConfigurationNode];
173-
this.editorConfigurationSchema = { properties: {}, patternProperties: {}, additionalProperties: false, errorMessage: 'Unknown editor configuration setting', allowsTrailingCommas: true, allowComments: true };
173+
this.editorConfigurationSchema = { properties: {}, patternProperties: {}, additionalProperties: false, errorMessage: 'Unknown editor configuration setting', allowTrailingCommas: true, allowComments: true };
174174
this.configurationProperties = {};
175175
this.excludedConfigurationProperties = {};
176176
this.computeOverridePropertyPattern();

src/vs/workbench/api/common/configurationExtensionPoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function validateProperties(configuration: IConfigurationNode, extension: IExten
238238
const jsonRegistry = Registry.as<IJSONContributionRegistry>(JSONExtensions.JSONContribution);
239239
jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
240240
allowComments: true,
241-
allowsTrailingCommas: true,
241+
allowTrailingCommas: true,
242242
default: {
243243
folders: [
244244
{

src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class LanguageConfigurationFileHandler {
359359
const schemaId = 'vscode://schemas/language-configuration';
360360
const schema: IJSONSchema = {
361361
allowComments: true,
362-
allowsTrailingCommas: true,
362+
allowTrailingCommas: true,
363363
default: {
364364
comments: {
365365
blockComment: ['/*', '*/'],

src/vs/workbench/contrib/debug/common/debugSchemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const launchSchema: IJSONSchema = {
137137
id: launchSchemaId,
138138
type: 'object',
139139
title: nls.localize('app.launch.json.title', "Launch"),
140-
allowsTrailingCommas: true,
140+
allowTrailingCommas: true,
141141
allowComments: true,
142142
required: [],
143143
default: { version: '0.2.0', configurations: [], compounds: [] },

src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ExtensionsConfigurationSchemaId = 'vscode://schemas/extensions';
1111
export const ExtensionsConfigurationSchema: IJSONSchema = {
1212
id: ExtensionsConfigurationSchemaId,
1313
allowComments: true,
14-
allowsTrailingCommas: true,
14+
allowTrailingCommas: true,
1515
type: 'object',
1616
title: localize('app.extensions.json.title', "Extensions"),
1717
additionalProperties: false,

src/vs/workbench/contrib/localizations/browser/localizations.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function registerLocaleDefinitionSchema(languages: string[]): void {
232232
jsonRegistry.registerSchema(localeDefinitionFileSchemaId, {
233233
id: localeDefinitionFileSchemaId,
234234
allowComments: true,
235-
allowsTrailingCommas: true,
235+
allowTrailingCommas: true,
236236
description: 'Locale Definition file',
237237
type: 'object',
238238
default: {

src/vs/workbench/contrib/snippets/browser/snippets.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const languageScopeSchemaId = 'vscode://schemas/snippets';
2828
const languageScopeSchema: IJSONSchema = {
2929
id: languageScopeSchemaId,
3030
allowComments: true,
31-
allowsTrailingCommas: true,
31+
allowTrailingCommas: true,
3232
defaultSnippets: [{
3333
label: nls.localize('snippetSchema.json.default', "Empty snippet"),
3434
body: { '${1:snippetName}': { 'prefix': '${2:prefix}', 'body': '${3:snippet}', 'description': '${4:description}' } }
@@ -64,7 +64,7 @@ const globalSchemaId = 'vscode://schemas/global-snippets';
6464
const globalSchema: IJSONSchema = {
6565
id: globalSchemaId,
6666
allowComments: true,
67-
allowsTrailingCommas: true,
67+
allowTrailingCommas: true,
6868
defaultSnippets: [{
6969
label: nls.localize('snippetSchema.json.default', "Empty snippet"),
7070
body: { '${1:snippetName}': { 'scope': '${2:scope}', 'prefix': '${3:prefix}', 'body': '${4:snippet}', 'description': '${5:description}' } }

0 commit comments

Comments
 (0)