microsoft / design-to-code

A system of development tools, and utilities used à la carte or as a suite to build enterprise-grade websites and applications.
MIT License
24 stars 6 forks source link

Fixed an issue where indenting whitespace was interpreted as a text node #143

Closed janechu closed 2 years ago

janechu commented 2 years ago

Pull Request

📖 Description

This fixes an issue where, when typing inside an instance of the Monaco Editor, the whitespaces at the beginning of the values which are only used as indenting, were being interpreted as text nodes.

👩‍💻 Reviewer Notes

Try typing in the Monaco Editor, this should no longer show as multiple elements and empty text nodes.

✅ Checklist

General