- Added
LanguageService.findDocumentSymbols2
. Returns the symbols found in a document asDocumentSymbol[]
.
- Update to
[email protected]
- Added new API
htmlLanguageService.doQuoteComplete
. Called after anattribute=
, it will compute either""
or''
depending onCompletionConfiguration.attributeDefaultValue
or null, if no quote completion should be performed.
- New settings
CompletionConfiguration.attributeDefaultValue
. Defines how attribute values are completed: With single or double quotes, or no quotes.
- Update to
[email protected]
- New parameter
HoverSettings
forLanguageService.doHover
: Defines whether the hover contains element documentation and/or a reference to MDN. - Deprecated
LanguageService.findOnTypeRenameRanges
, replaced by New APILanguageService.findLinkedEditingRanges
.
- Use
TextDocument
fromvscode-languageserver-textdocument
- Fix formatting for
<p>
tags with optional closing - New API
LanguageService.findOnTypeRenameRanges
. For a given position, find the matching close tag so they can be renamed synchronously. - New API
LanguageServiceOptions.customDataProviders
to add the knowledge of custom tags, attributes and attribute-values andLanguageService.setDataProviders
to update the data providers. - New API
getDefaultHTMLDataProvider
to get the default HTML data provider andnewHTMLDataProvider
to create a new provider from data. - New API
LanguageServiceOptions.fileSystemProvider
withFileSystemProvider
to query the file system (currently used for path completion) - New API
LanguageService.doComplete2
which is synchronous and also returns path completion proposals whenLanguageServiceOptions.fileSystemProvider
is provided.
DocumentContext.resolveReference
can also return undefined (if the ref is invalid)
- Added API
htmlLanguageService.getSelectionRanges
returning selection ranges for a set of positions - New API
newHTMLDataProvider
- Added API
htmlLanguageService.getFoldingRanges
returning folding ranges for the given document
- Added API
htmlLanguageService.setCompletionParticipants
that allows participation in code completion - provide ES modules in lib/esm
- Added new API
htmlLanguageService.doTagComplete
. Called behind a>
or\
,doTagComplete
will compute a closing tag. The result is a snippet string that can be inserted behind the position, or null, if no tag completion should be performed. - New settings
CompletionConfiguration.hideAutoCompleteProposals
. If set,doComplete
will not propose a closing tag proposals on>
. - These APIs are experimental and might be improved.
- Fix indentation issues when formatting a range
- Support for base URLs.
DocumentContext.resolveReference
now gets the base URI to take into account when resolving a reference. Refer to links.test.ts for guidance on how to implement aDocumentContext
. - Added
htmlLanguageService.findDocumentSymbols
: Returns a symbol for each tag in the document. Symbol name is in the formtag(#id)?(.class)+
.
- Updating to language server type 3.0 API