v5.0.0
- Use
monaco-languageserver-types
. - Update to
yaml-language-server
1.14.0 - Support
monaco-editor
coming from other sources.
Breaking changes
In order to support Monaco editor coming from different sources, it must now be passed to monaco-yaml
. The opportinity of a breaking change was also used to rename the export.
- import { setDiagnosticsOptions } from 'monaco-yaml';
+ import * as monaco from 'monaco-editor'
+ import { configureMonacoYaml } from 'monaco-yaml'
// Configure monaco-yaml first
- setDiagnosticsOptions({
+ const monacoYaml = configureMonacoYaml(monaco, {
// …
})
// Reconfigure monaco-yaml later
- setDiagnosticsOptions({
+ monacoYaml.update({
// …
})