suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins

Home Page:https://monaco-react.surenatoyan.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monaco loader unable auto prompt in 0.45.0.

lifegit opened this issue · comments

Describe the bug
monaco unable auto prompt.

To Reproduce
codesandbox code snippet perfect work.

Expected behavior
monaco loader in version 0.25.2 working normally. write 'import x' auto prompt 'from'.
bug in version 0.45.0 (latest version) it can't work well.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: MacOs 13.2.1 (22D68)
  • Browser Chrome
  • Version 119.0.6045.199

You can use loader to load whatever version of monaco-editor you want. You can do something like this:

loader.config({ paths: { vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.25.2/min/vs' } });

Also, you should open this issue on the original repository, this is the React wrapper.