mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 15:55:15 +01:00
fix $ref's (json pointers start with #/)
This commit is contained in:
@@ -576,7 +576,7 @@ function getStylingSchemeEntry(description?: string, deprecationMessage?: string
|
||||
format: 'color-hex'
|
||||
},
|
||||
{
|
||||
$ref: '#definitions/style'
|
||||
$ref: '#/definitions/style'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
+10
-10
@@ -480,9 +480,9 @@ const schema: IJSONSchema = {
|
||||
bracketPair: {
|
||||
type: 'array',
|
||||
items: [{
|
||||
$ref: '#definitions/openBracket'
|
||||
$ref: '#/definitions/openBracket'
|
||||
}, {
|
||||
$ref: '#definitions/closeBracket'
|
||||
$ref: '#/definitions/closeBracket'
|
||||
}]
|
||||
}
|
||||
},
|
||||
@@ -517,7 +517,7 @@ 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: {
|
||||
@@ -525,7 +525,7 @@ const schema: IJSONSchema = {
|
||||
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: {
|
||||
@@ -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',
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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',
|
||||
@@ -129,7 +129,7 @@ const textmateColorSchema: IJSONSchema = {
|
||||
format: 'color-hex'
|
||||
},
|
||||
{
|
||||
$ref: '#definitions/settings'
|
||||
$ref: '#/definitions/settings'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -191,7 +191,7 @@ const textmateColorSchema: IJSONSchema = {
|
||||
]
|
||||
},
|
||||
settings: {
|
||||
$ref: '#definitions/settings'
|
||||
$ref: '#/definitions/settings'
|
||||
}
|
||||
},
|
||||
required: [
|
||||
|
||||
Reference in New Issue
Block a user