mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Adopt latest editor in samples
This commit is contained in:
parent
6328b62e22
commit
6ce435ec23
17 changed files with 2859 additions and 2643 deletions
|
|
@ -164,10 +164,5 @@ function loadDiffSample() {
|
|||
|
||||
function changeTheme(theme) {
|
||||
var newTheme = (theme === 1 ? 'vs-dark' : ( theme === 0 ? 'vs' : 'hc-black' ));
|
||||
if (editor) {
|
||||
editor.updateOptions({ 'theme' : newTheme });
|
||||
}
|
||||
if (diffEditor) {
|
||||
diffEditor.updateOptions({ 'theme': newTheme });
|
||||
}
|
||||
monaco.editor.setTheme(newTheme);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue