Closed johnsoncodehk closed 4 months ago
Affected services: css, html, json, markdown, prettyhtml, pug-beautify, pug, sass-formatter, typescript, yaml
Most services now expose documentSelector / *DocumentSelector option.
documentSelector
*DocumentSelector
Services with formatting capabilities now expose the isFormattingEnabled option.
isFormattingEnabled
css: now obtains LanguageService instances on demand.
LanguageService
css: no longer has built-in support for postcss language. If necessary, you can configure scssDocumentSelector: ['scss', 'postcss'] option.
postcss
scssDocumentSelector: ['scss', 'postcss']
html: if you need to update custom data, now you should implement the onDidChangeCustomData option instead of inject 'html/updateCustomData' key.
onDidChangeCustomData
'html/updateCustomData'
Refactoring of the prettier service plugin will be done in a separate PR.
Affected services: css, html, json, markdown, prettyhtml, pug-beautify, pug, sass-formatter, typescript, yaml
Most services now expose
documentSelector
/*DocumentSelector
option.Services with formatting capabilities now expose the
isFormattingEnabled
option.css: now obtains
LanguageService
instances on demand.css: no longer has built-in support for
postcss
language. If necessary, you can configurescssDocumentSelector: ['scss', 'postcss']
option.html: if you need to update custom data, now you should implement the
onDidChangeCustomData
option instead of inject'html/updateCustomData'
key.Refactoring of the prettier service plugin will be done in a separate PR.