Open danvk opened 5 years ago
Just FYI the most current, maintained version of monaco-yaml is at https://github.com/remcohaszing/monaco-yaml
Would also like to see this feature added
I imagine there hasn't been any work done on this but just checking in. Seems like low hanging fruit since there is a working POC.
is there has any official support validate YAML in monaco editor?
No sorry, we don't have rich YAML support in Monaco.
What’s wrong with using monaco-yaml
?
It seems quite hard to integrate monaco-yaml in React applications (based on my team's experience and issues in the repository). We are stuck with create-react-app and don't want to eject. Without doing so it seems not possible to integrate with monaco-yaml unfortunately.
It seems quite hard to integrate monaco-yaml in React applications (based on my team's experience and issues in the repository). We are stuck with create-react-app and don't want to eject. Without doing so it seems not possible to integrate with monaco-yaml unfortunately.
I was able to implement monaco-yaml with a create-react-app by following the steps in their official doc without ejecting. Where exactly are you stuck? Maybe I can help
monaco-editor version: 0.17.0 Browser: Chrome OS: macOS
Steps or JS usage snippet reproducing the issue:
There was some discussion of this over at https://github.com/microsoft/monaco-editor/issues/131#issuecomment-491175238 and there is an (unmaintained) monaco-yaml project here: https://github.com/pengx17/monaco-yaml. vscode has this feature via a RedHat YAML plugin.
Code for playground: