cucumber / monaco

Configure Monaco editor to use cucumber-language-service
MIT License
16 stars 4 forks source link

Add React editor #6

Closed aslakhellesoy closed 3 years ago

aslakhellesoy commented 3 years ago

This adds a <MonacoEditor> React component to simplify the use of Monaco with React. The component does not depend on the configureEditor function (apart from its type signature), and is a 100% generic React component for Monaco.

It could be argued that it doesn't belong in this library because:

However, it seems like a pragmatic solution for now. If anybody is unhappy with the React dependency, we can factor it out later.