Skip to content

Commit

Permalink
fix $ref's (json pointers start with #/)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Nov 29, 2021
1 parent 0d26b20 commit a16cece
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ function getStylingSchemeEntry(description?: string, deprecationMessage?: string
format: 'color-hex'
},
{
$ref: '#definitions/style'
$ref: '#/definitions/style'
}
]
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ const schema: IJSONSchema = {
bracketPair: {
type: 'array',
items: [{
$ref: '#definitions/openBracket'
$ref: '#/definitions/openBracket'
}, {
$ref: '#definitions/closeBracket'
$ref: '#/definitions/closeBracket'
}]
}
},
Expand Down Expand Up @@ -517,15 +517,15 @@ const schema: IJSONSchema = {
description: nls.localize('schema.brackets', 'Defines the bracket symbols that increase or decrease the indentation.'),
type: 'array',
items: {
$ref: '#definitions/bracketPair'
$ref: '#/definitions/bracketPair'
}
},
colorizedBracketPairs: {
default: [['(', ')'], ['[', ']'], ['{', '}']],
description: nls.localize('schema.colorizedBracketPairs', 'Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled.'),
type: 'array',
items: {
$ref: '#definitions/bracketPair'
$ref: '#/definitions/bracketPair'
}
},
autoClosingPairs: {
Expand All @@ -534,15 +534,15 @@ const schema: IJSONSchema = {
type: 'array',
items: {
oneOf: [{
$ref: '#definitions/bracketPair'
$ref: '#/definitions/bracketPair'
}, {
type: 'object',
properties: {
open: {
$ref: '#definitions/openBracket'
$ref: '#/definitions/openBracket'
},
close: {
$ref: '#definitions/closeBracket'
$ref: '#/definitions/closeBracket'
},
notIn: {
type: 'array',
Expand All @@ -566,15 +566,15 @@ const schema: IJSONSchema = {
type: 'array',
items: {
oneOf: [{
$ref: '#definitions/bracketPair'
$ref: '#/definitions/bracketPair'
}, {
type: 'object',
properties: {
open: {
$ref: '#definitions/openBracket'
$ref: '#/definitions/openBracket'
},
close: {
$ref: '#definitions/closeBracket'
$ref: '#/definitions/closeBracket'
}
}
}]
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/tasks/common/jsonSchema_v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const shellCommand: IJSONSchema = {
description: nls.localize('JsonSchema.shell', 'Specifies whether the command is a shell command or an external program. Defaults to false if omitted.')
},
{
$ref: '#definitions/shellConfiguration'
$ref: '#/definitions/shellConfiguration'
}
],
deprecationMessage: nls.localize('JsonSchema.tasks.isShellCommand.deprecated', 'The property isShellCommand is deprecated. Use the type property of the task and the shell property in the options instead. See also the 1.14 release notes.')
Expand Down
8 changes: 4 additions & 4 deletions src/vs/workbench/services/themes/common/colorThemeSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ let textMateScopes = [
];

export const textmateColorsSchemaId = 'vscode://schemas/textmate-colors';
export const textmateColorSettingsSchemaId = `${textmateColorsSchemaId}#definitions/settings`;
export const textmateColorGroupSchemaId = `${textmateColorsSchemaId}#definitions/colorGroup`;
export const textmateColorSettingsSchemaId = `${textmateColorsSchemaId}#/definitions/settings`;
export const textmateColorGroupSchemaId = `${textmateColorsSchemaId}#/definitions/colorGroup`;

const textmateColorSchema: IJSONSchema = {
type: 'array',
Expand All @@ -129,7 +129,7 @@ const textmateColorSchema: IJSONSchema = {
format: 'color-hex'
},
{
$ref: '#definitions/settings'
$ref: '#/definitions/settings'
}
]
},
Expand Down Expand Up @@ -191,7 +191,7 @@ const textmateColorSchema: IJSONSchema = {
]
},
settings: {
$ref: '#definitions/settings'
$ref: '#/definitions/settings'
}
},
required: [
Expand Down

0 comments on commit a16cece

Please sign in to comment.