- new optional API
fileSystemProvider.getContent
- new API
LanguageService.prepareRename
, returningRange
- new API
LanguageService.findDocumentSymbols2
, returningDocumentSymbol[]
- Update to
[email protected]
- new formatter settings:
braceStyle
,preserveNewLines
,maxPreserveNewLines
,wrapLineLength
,indentEmptyLines
- renamed
CSSFormatConfiguration.selectorSeparatorNewline
toCSSFormatConfiguration.newlineBetweenSelectors
- new API
LanguageService.format
, based on the the css formatter from JS Beautifier (https://github.com/beautify-web/js-beautify) - new API
CSSFormatConfiguration
- new API
LanguageSettings.hover
- New parameter
CompletionSettings
forLanguageService.doComplete
andLanguageService.doComplete2
- Update to
[email protected]
- Removed deprecated
findColorSymbols
- New parameter
HoverSettings
forLanguageService.doHover
: Defines whether the hover contains element documentation and/or a reference to MDN.
- module resolving in urls (
~foo/hello.html
) when usingLanguageService.findDocumentLinks2
and iffileSystemProvider
is provided. - new API
LanguageService.doComplete2
. Support path completion iffileSystemProvider.readDirectory
is provided. DocumentContext.resolveReference
can also return undefined (if the ref is invalid)
- new API
LanguageServiceOptions.useDefaultDataProvider
to control whether the default data provider is used. Defaults to true - new API
LanguageService.setDataProviders
to update the data providers.
- markdown descriptions in completions and hover
- new API
LanguageServiceOptions.clientCapabilities
withClientCapabilities
for completion documentationFormat and hover content - extended format of CustomData (version 1.1) with MarkupContent contents and reference links
- new API
- dynamically resolved links for scss include statements
- new API
LanguageService.findDocumentLinks2
: Also returns dynamically resolved links iffileSystemProvider
is provided - new API
LanguageServiceOptions.fileSystemProvider
withFileSystemProvider
to query the file system (currently used to resolve the location of included files)
- new API
- new API
CompletionSettings.completePropertyWithSemicolon
- new API
ICompletionParticipant.onCssMixinReference
- Switch to
TextDocument
fromvscode-languageserver-textdocument
(reexported from the main module)
LanguageServiceOptions.customDataProviders
allows you to use custom datasets for properties, at-properties, pseudo-classes and pseudo-elements.- New API
LanguageService.getSelectionRanges
- Selector hover shows specificity
- New linter setting
validProperties
: a comma separated list of all properties not to be included in validation checking.
- New API
ICompletionParticipant.onCssImportPath
to participate on @import statement. - New API
LanguageService.doCodeActions2
returning code actions asCodeAction[]
.
- Use MDN data for to enhance CSS properties definition. See #91.
- New API
LanguageService.getFoldingRanges
returning folding ranges in the given document.
- Provide ems modules in lib/esm
- Changed API
LanguageService.getColorPresentations
: separate parametersrange
andcolor
(to match LS API)
- New API
LanguageService.getColorPresentations
returning presentations for a given color. - New API type
ColorPresentation
added.
- New API
LanguageService.findDocumentColors
returning the location and value of all colors in a document. - New API types
ColorInformation
andColor
added. - Deprecated
LanguageService.findColorSymbols
. UseLanguageService.findDocumentColors
instead.
- New argument
documentSettings
toLanguageService.doValidation
to support resource specific settings. If present, document settings are used instead of the options passed in configure.
- Updating to language server type 3.0 API.