Adopt latest editor in samples

This commit is contained in:
Alex Dima 2017-07-03 14:15:09 +02:00
parent 6328b62e22
commit 6ce435ec23
17 changed files with 2859 additions and 2643 deletions

View file

@ -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);
}