codelab-fun/codelab

HTML should not be autofolded in Monaco Editor

NothingEverHappens opened this issue · 0 comments

What the issue is about

HTML Got autofolded here:
image

Why does this happen?

We have a directive which autofolds imports in TS files, which makes sense and saves some space.
We should not do this for HTML

Where to start?

Start with reproducing Locally

Folding is done in https://github.com/codelab-fun/codelab/blob/master/libs/code-demos/src/lib/code-demo-editor/directives/code-demo-editor.auto-folding.directive.ts

One potential solution would be to check for the file type before folding

Metadata:

This was filed through the feedback form.
Author: kirjs
Date: Thu, 28 Nov 2019 00:32:07 GMT
Slide: Local,Prod