changelogs.md


microsoft/vscode-html-languageservice

Repository  -  API  -  Source

4.1.0

September 27, 2021
  • New settings CompletionConfiguration.attributeDefaultValue. Defines how attribute values are completed: With single or double quotes, or no quotes.

4.0.0

December 14, 2020
  • Update to vscode-languageserver-types@3.16

3.2.0

November 30, 2020
  • New parameter HoverSettings for LanguageService.doHover: Defines whether the hover contains element documentation and/or a reference to MDN.
    • Deprecated LanguageService.findOnTypeRenameRanges, replaced by New API LanguageService.findLinkedEditingRanges.

3.1.0

July 29, 2020
  • Use TextDocument from vscode-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 and LanguageService.setDataProviders to update the data providers.
    • New API getDefaultHTMLDataProvider to get the default HTML data provider and newHTMLDataProvider to create a new provider from data.
    • New API LanguageServiceOptions.fileSystemProvider with FileSystemProvider to query the file system (currently used for path completion)
    • New API LanguageService.doComplete2 which is synchronous and also returns path completion proposals when LanguageServiceOptions.fileSystemProvider is provided.

3.0.3

July 25, 2019
  • DocumentContext.resolveReference can also return undefined (if the ref is invalid)

3.0.0

June 12, 2019
  • Added API htmlLanguageService.getSelectionRanges returning selection ranges for a set of positions
    • New API newHTMLDataProvider

2.1.3

April 16, 2018
  • Added API htmlLanguageService.getFoldingRanges returning folding ranges for the given document

2.1.0

March 8, 2018
  • Added API htmlLanguageService.setCompletionParticipants that allows participation in code completion
    • provide ES modules in lib/esm

2.0.6

August 25, 2017
  • 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.

2.0.3

March 21, 2017
  • Fix indentation issues when formatting a range

2.0.1

February 21, 2017
  • 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 a DocumentContext.
    • Added htmlLanguageService.findDocumentSymbols: Returns a symbol for each tag in the document. Symbol name is in the form tag(#id)?(.class)+.

2.0.0

February 17, 2017