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
  • Loading branch information
silverwind committed May 8, 2024
1 parent f1b0729 commit d9b37d0
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 @@ -102,10 +102,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 d9b37d0

Please sign in to comment.