kibana/packages/kbn-monaco
Jean-Louis Leysens 36f0c75088
[Monaco] Refactor the way XJSON grammar checker gets registered (#75160)
* Refactor the way XJSON grammar checker gets registered

- avoid registering multiple model add listeners
- remove regsiterGrammarChecker from public API!
- fix getWorker handler to register XJSON only for XJSON models

* remove unused import

* updateAnnos -> updateAnnotations
2020-08-18 15:13:15 +02:00
..
scripts
src [Monaco] Refactor the way XJSON grammar checker gets registered (#75160) 2020-08-18 15:13:15 +02:00
package.json
README.md
tsconfig.json
webpack.config.js
yarn.lock

@kbn/monaco

A customized version of monaco that is automatically configured the way we want it to be when imported as @kbn/monaco. Additionally, imports to this package are automatically shared with all plugins using @kbn/ui-shared-deps.

Includes custom xjson language support. The es_ui_shared plugin has an example of how to use it, in the future we will likely expose helpers from this package to make using it everywhere a little more seamless.