-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not create two editor with different theme #1713
Comments
You can try.. |
I can report the same thing, @yunliang-ding your solution didn't seem to work. In my case I am actually calling exports.create_ = function (monaco, nodeId, languageId, themeName) {
console.log(nodeId);
console.log(languageId);
console.log(themeName);
const editor = monaco.editor.create(nodeId, {
value: [
'Close'
].join('\n'),
language: languageId,
theme: themeName,
});
return editor;
} Note here that import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
global.monaco = monaco; This is a real issue for me now 😢 |
Also note that all other things that depend on |
Ah, I discovered that so this issue then is a feature request to move |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've been changing the theme every time I switch, not ideal though and it only works for me since I never have 2 editors on screen at the same time |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
the same problem, how to solve? |
Is it planned to be fixed? |
Have you guys found any workarounds? |
how to solve? |
I am also here to look for solutions. Didn't work for me at v0.36.1. Do we get a fix now? |
This is related. |
/duplicate #338 |
monaco-editor version: 0.14.2 & 0.18.1
Browser: chrome 69
OS: macOS Mojave 10.14
Playground code that reproduces the issue:
I set dark theme and light theme, but all show dark theme
The text was updated successfully, but these errors were encountered: