mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
1.3 KiB
1.3 KiB
Monaco Editor Change log
[0.5.0]
Breaking changes
monaco.editor.createWebWorkernow loads the AMD module and callscreateand passes in as first argument a context of typemonaco.worker.IWorkerContextand as second argument theinitData. This breaking change was needed to allow handling the case of misconfigured web workers (running on a file protocol or the cross-domain case)- the
CodeActionProvider.provideCodeActionsnow gets passed in aCodeActionContextthat contains the markers at the relevant range. - the
hoverMessageof a decoration is now aMarkedString | MarkedString[] - the
contentsof aHoverreturned by aHoverProvideris now aMarkedString | MarkedString[] - removed deprecated
IEditor.onDidChangeModelRawContent,IModel.onDidChangeRawContent
Notable fixes
- Broken configurations (loading from
file://or misconfigured cross-domain loading) now load the web worker code in the UI thread. This caused a breaking change in the behaviour ofmonaco.editor.createWebWorker - The right-pointing mouse pointer is oversized in high DPI - issue
- The editor functions now correctly when hosted inside a
position:fixedelement. - Cross origin configuration is now picked up (as advertised in documentation from MonacoEnvironment)