Remove obsolete monaco workaround (#30893)

This workaround is not neccessary any more since monaco 0.35.0.

Ref: https://github.com/microsoft/monaco-editor/issues/2962
Ref: https://github.com/microsoft/vscode/pull/173688
(cherry picked from commit d9b37d085acb7e93409061e541b6a3aa53261bb0)
This commit is contained in:
silverwind 2024-05-08 04:42:33 +02:00 committed by Earl Warren
parent 7028fe0b4d
commit 12b6bcaf05
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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',