diff options
author | silverwind <me@silverwind.io> | 2021-11-11 02:52:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 09:52:16 +0800 |
commit | 433e81aecf0325163292c3d0a732a5d80d25dc84 (patch) | |
tree | e4e5f0c1cb2a550f97dc8ac1cc738999115444ab /web_src/js/features/codeeditor.js | |
parent | 0e189eecaaedc4e2c6ee13882c7b76645af50ccd (diff) | |
download | gitea-433e81aecf0325163292c3d0a732a5d80d25dc84.tar.gz gitea-433e81aecf0325163292c3d0a732a5d80d25dc84.zip |
Update JS dependencies (#17611)
- Update monaco, adapting to breaking changes
- Update dropzone, adapting to breaking changes
- Update linters, fix new issues, disable opinionated stylelint rules
- Rebuild SVGs and images
- Tested Dropzone and Monaco
Replaces: https://github.com/go-gitea/gitea/pull/17574
Diffstat (limited to 'web_src/js/features/codeeditor.js')
-rw-r--r-- | web_src/js/features/codeeditor.js | 2 |
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); } |