aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/codeeditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/codeeditor.js')
-rw-r--r--web_src/js/features/codeeditor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js
index f533ea9d8f..d4fd303fbf 100644
--- a/web_src/js/features/codeeditor.js
+++ b/web_src/js/features/codeeditor.js
@@ -45,7 +45,7 @@ function getLanguage(filename) {
function updateEditor(monaco, editor, filename, lineWrapExts) {
editor.updateOptions(getFileBasedOptions(filename, lineWrapExts));
const model = editor.getModel();
- const language = model.getModeId();
+ const language = model.getLanguageId();
const newLanguage = getLanguage(filename);
if (language !== newLanguage) monaco.editor.setModelLanguage(model, newLanguage);
}