You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Folding Provider API
To enable extensions to provide language aware folding ranges, a new provider API is proposed:
exportnamespacelanguages{/** * Register a folding provider. * * Multiple folding can be registered for a language. In that case providers are sorted * by their [score](#languages.match) and the best-matching provider is used. Failure * of the selected provider will cause a failure of the whole operation. * * @param selector A selector that defines the documents this provider is applicable to. * @param provider A folding provider. * @return A [disposable](#Disposable) that unregisters this provider when being disposed. */exportfunctionregisterFoldingProvider(selector: DocumentSelector,provider: FoldingProvider): Disposable;}
See the full APIs here.
The equivalent APIs are proposed here as protocol extensions to the language server protocol. Feedback is welcome!
The text was updated successfully, but these errors were encountered:
from the VS Code release notes
The text was updated successfully, but these errors were encountered: