Skip to content

Commit

Permalink
Remove obsolete monaco workaround (#30893)
Browse files Browse the repository at this point in the history
This workaround is not neccessary any more since monaco 0.35.0.

Ref: microsoft/monaco-editor#2962
Ref: microsoft/vscode#173688
(cherry picked from commit d9b37d085acb7e93409061e541b6a3aa53261bb0)
  • Loading branch information
silverwind authored and earl-warren committed May 12, 2024
1 parent 7028fe0 commit 12b6bca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web_src/js/features/codeeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ export async function createMonaco(textarea, filename, editorOpts) {
},
});

// Quick fix: https://github.com/microsoft/monaco-editor/issues/2962
monaco.languages.register({id: 'vs.editor.nullLanguage'});
monaco.languages.setLanguageConfiguration('vs.editor.nullLanguage', {});

const editor = monaco.editor.create(container, {
value: textarea.value,
theme: 'gitea',
Expand Down

0 comments on commit 12b6bca

Please sign in to comment.