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 [ES UI Shared] Monaco XJSON (#67485) 2020-06-04 13:43:21 +02:00
src [Monaco] Refactor the way XJSON grammar checker gets registered (#75160) 2020-08-18 15:13:15 +02:00
package.json Bump TypeScript to v3.9 (#67666) 2020-06-11 10:04:09 +02:00
README.md [ES UI Shared] Monaco XJSON (#67485) 2020-06-04 13:43:21 +02:00
tsconfig.json [ES UI Shared] Monaco XJSON (#67485) 2020-06-04 13:43:21 +02:00
webpack.config.js [ES UI Shared] Monaco XJSON (#67485) 2020-06-04 13:43:21 +02:00
yarn.lock [ES UI Shared] Monaco XJSON (#67485) 2020-06-04 13:43:21 +02:00

@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.