DS-326 Disable Markdown folding in notebook files

GitOrigin-RevId: cbfb1c0934b6abebee42a4bcededc9a0b068a9fd
This commit is contained in:
Anton Bragin
2020-05-29 02:08:56 +03:00
committed by intellij-monorepo-bot
parent 25e3182229
commit 30709c38eb
@@ -49,6 +49,9 @@ public class MarkdownFoldingBuilder extends CustomFoldingBuilder implements Dumb
@NotNull PsiElement root,
@NotNull Document document,
boolean quick) {
if (root.getLanguage() != root.getContainingFile().getViewProvider().getBaseLanguage()) {
return;
}
root.accept(new MarkdownElementVisitor() {
@Override
public void visitElement(@NotNull PsiElement element) {