- the error code for
SchemaResolveErroris now 0x10000 plus the error code returned by the request service.
- added
Schema.enumSortTextsandSchema.enumDetailsto control the sort order and presentation of suggestions for enums
newJSONDocumentAPI now also accepts undefined as ASTRoots an optionally comment ranges.
- Fixing bugs in the sort feature
- new API
LanguageService.sortfor sorting all properties in a JSON document - new API
SortOptions
- Added
SchemaConfiguration.folderUrifor folder-specific schema associations
- new type
SchemaDraft, representing the offical JSON schema draft versions - new property
DocumentLanguageSettings.schemaDraftto specify the schema version to use, if the schema does not contain a$schemaproperty
- new API option
FormattingOptions.keepLinesto indicate the formatter should keep the initial line positions
- Update to
vscode-languageserver-types@3.17 - Add more schema support
- Schema 2019-09: unevaluatedProperties, unevaluatedItems, minContains, maxContains, deprecated, dependentRequired, dependentSchemas, $defs, $anchor
- Schema 2020-12: prefixItem
- new API
LanguageService.getLanguageStatus - support for $ref with $id
- Replace minimatch with glob-to-regexp
SchemaConfiguration.fileMatchnow supports glob patterns (e.g. /foo/**/bar.json')
- Update to
vscode-languageserver-types@3.16 - Removed deprecated
findColorSymbols
- new API
FormattingOptions.insertFinalNewline
- new API
findLinksreturn links for local$reflinks. ReplacesfindDefinitionwhich no longer returns results ( kept for API compatibility)
- new API
DocumentLanguageSettings.schemaValidation. The severity of problems from schema validation. If set to 'ignore', schema validation will be skipped. If not set, 'warning' is used. - new API
DocumentLanguageSettings.schemaRequest. The severity of problems that occurred while resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used.
- new API
LanguageService.getMatchingSchemas. Matches a document against its schema and list all AST nodes along with the matching sub schemas.
- New API
JSONSchema.suggestSortTextto set the sort order of completion proposals (VS Code specific JSON schema extension)
- New API
findDefinitionto find a definition of a$reflink
- Support for exclusive file pattern starting with '!'. A file match consists of an array of patterns. A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'.
- Using
vscode-languageserver-textdocumentfor TextDocument
- Added
DocumentSymbolsContextandColorInformationContextwithresultLimitandonResultLimitExceeded.onResultLimitExceededis called when the result was cropped. - Added commit characters for completion proposals (if supported by ClientCapabilities)
- Warn when using draft-03 or draft-08 schemas
- Renamed
schema.allowsTrailingCommas->schema.allowTrailingCommas
- Schemas can configure whether comments and/or trailing commas are permitted.
- New API
LanguageService.getSelectionRangesto get semantic selection ranges. - Manage schema dependencies so that
resetSchemaalso resets schemas that depend on the schema.
- New API
LanguageServiceParams.ClientCapabilitiesto define what LSP capabilities the client supports. - For the best experiences, clients should always use
LanguageServiceParams.ClientCapabilities.LATEST, which has all the latest LSP capabilities enabled. LanguageServiceParams.ClientCapabilitiescan allowMarkupKind.Markdownas valid documentationFormat (used by completions if schemas usemarkdownDescriptionormarkdownEnumDescriptions).- Snippets can now provide the description also in markdown format.
- Bundled draft-07-schema with descriptions.
- Propose
examplesin code completions.
- support for JSON schema draft-07
- New API
LanguageService.findDocumentSymbols2to get document symbols asDocumentSymbol[]
- New API
LanguageService.getFoldingRanges - doValidation can also be used with a given schema
- new APIs:
newJSONDocumentto create a JSON document from a custom AST - new API types: ObjectASTNode, PropertyASTNode, ArrayASTNode, StringASTNode, NumberASTNode, BooleanASTNode, NullASTNode that allow creating a custom AST
- Provide ems modules in lib/esm
- Added document specific validation parameters:
DocumentLanguageSettings - API to define the severity of reported comments and trailing commas (
DocumentLanguageSettings.comments,DocumentLanguageSettings.trailingCommas)
- Changed parameters of API
LanguageService.getColorPresentationsto separate color and range . 2.0.19 / 2017-09-21 =================== - New API
LanguageService.getColorPresentationsreturning presentations for a given color. - New API type
ColorPresentationadded.
- New API
LanguageService.findDocumentColorsreturning the location and value of all colors in a document. - New API types
ColorInformationandColoradded. - Deprecated
LanguageService.findColorSymbols. UseLanguageService.findDocumentColorsinstead.
- error code for CommentsNotAllowed
- Add new API findColorSymbols that returns all color values in a JSON document. To mark a value as a color, specify
"format": "color"in the schema.
- Support for custom schema property 'patternErrorMessage'. The message is used as error message if the object is of type string and has a 'pattern' property that does not match the object to validate.
- Fixes for formatting content with errors
- Updating to language server type 3.0 API