mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Fixes #3494: [snippets] [debt] don't allow snippet syntax in default values
This commit is contained in:
@@ -5,42 +5,43 @@
|
||||
'use strict';
|
||||
|
||||
export interface IJSONSchema {
|
||||
id?:string;
|
||||
id?: string;
|
||||
$schema?: string;
|
||||
type?:any;
|
||||
title?:string;
|
||||
default?:any;
|
||||
definitions?:IJSONSchemaMap;
|
||||
description?:string;
|
||||
type?: string | string[];
|
||||
title?: string;
|
||||
default?: any;
|
||||
definitions?: IJSONSchemaMap;
|
||||
description?: string;
|
||||
properties?: IJSONSchemaMap;
|
||||
patternProperties?:IJSONSchemaMap;
|
||||
additionalProperties?:any;
|
||||
minProperties?:number;
|
||||
maxProperties?:number;
|
||||
dependencies?:any;
|
||||
items?:any;
|
||||
minItems?:number;
|
||||
maxItems?:number;
|
||||
uniqueItems?:boolean;
|
||||
additionalItems?:boolean;
|
||||
pattern?:string;
|
||||
minLength?:number;
|
||||
maxLength?:number;
|
||||
minimum?:number;
|
||||
maximum?:number;
|
||||
exclusiveMinimum?:boolean;
|
||||
exclusiveMaximum?:boolean;
|
||||
multipleOf?:number;
|
||||
required?:string[];
|
||||
$ref?:string;
|
||||
anyOf?:IJSONSchema[];
|
||||
allOf?:IJSONSchema[];
|
||||
oneOf?:IJSONSchema[];
|
||||
not?:IJSONSchema;
|
||||
enum?:any[];
|
||||
patternProperties?: IJSONSchemaMap;
|
||||
additionalProperties?: boolean | IJSONSchema;
|
||||
minProperties?: number;
|
||||
maxProperties?: number;
|
||||
dependencies?: IJSONSchemaMap | string[];
|
||||
items?: IJSONSchema | IJSONSchema[];
|
||||
minItems?: number;
|
||||
maxItems?: number;
|
||||
uniqueItems?: boolean;
|
||||
additionalItems?: boolean;
|
||||
pattern?: string;
|
||||
minLength?: number;
|
||||
maxLength?: number;
|
||||
minimum?: number;
|
||||
maximum?: number;
|
||||
exclusiveMinimum?: boolean;
|
||||
exclusiveMaximum?: boolean;
|
||||
multipleOf?: number;
|
||||
required?: string[];
|
||||
$ref?: string;
|
||||
anyOf?: IJSONSchema[];
|
||||
allOf?: IJSONSchema[];
|
||||
oneOf?: IJSONSchema[];
|
||||
not?: IJSONSchema;
|
||||
enum?: any[];
|
||||
format?: string;
|
||||
|
||||
errorMessage?:string; // VS code internal
|
||||
|
||||
defaultSnippets?: { label?: string; description?: string; body: any; }[]; // VSCode extension
|
||||
errorMessage?: string; // VSCode extension
|
||||
}
|
||||
|
||||
export interface IJSONSchemaMap {
|
||||
|
||||
Reference in New Issue
Block a user