suren-atoyan / monaco-loader

The utility to easy setup monaco-editor into your browser
MIT License
177 stars 37 forks source link

Bump monaco-editor version to 0.35.0 #29

Closed MaxMusing closed 2 months ago

MaxMusing commented 1 year ago

Bumps the version of monaco-editor used from 0.34.0 to 0.35.0.

Adds support for a few new editor functions, including addKeybindingRules.

monaco-editor 0.35.0 on npm

For reference for anyone else who needs a newer version of monaco-editor before this gets merged, you can force the use of a specific version like this:

import loader from '@monaco-editor/loader';
// Or, if using @monaco-editor/react, use the following import:
import { loader } from '@monaco-editor/react';

loader.config({
    paths: { vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.35.0/min/vs' },
});
dima-hx commented 2 months ago

@MaxMusing , thank you for suggesting how to force a specific version! It is really helpful cause hardcoded Monaco version is pretty old in monaco loader.