monaco-editor: registerFoldingProvider missing
monaco-editor-core version: 0.11.3 Browser: chrome OS: windows
I want to write a custom (non-indent based) folding provider.
I can see that the method is commented out from standaloneLanguages.ts
/**
* Register a folding provider
*/
/*export function registerFoldingProvider(languageId: string, provider: modes.FoldingProvider): IDisposable {
return modes.FoldingProviderRegistry.register(languageId, provider);
}*/
Is this a regression?
How would I go about defining a language in which a blank line is considered a separator between folding regions?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 19 (16 by maintainers)
Will be available in the April release.
If anyone wants to try out the new folding API, you can use this snippet of JavaScript in the Monaco Playground to test things out.
Fair enough 😅I’ll try again when the next monaco version lands. Thanks for this master piece of an editor!