智能化下的产物,无人棋牌室
Monaco Editor 0.5 发布了,Monaco Editor 是微软开源的基于 VS Code 的代码编辑器。
主要更新如下:
重大更新
monaco.editor.createWebWorker
now loads the AMD module and callscreate
and passes in as first argument a context of typemonaco.worker.IWorkerContext
and 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.provideCodeActions
now gets passed in aCodeActionContext
that contains the markers at the relevant range. - the
hoverMessage
of a decoration is now aMarkedString | MarkedString[]
- the
contents
of aHover
returned by aHoverProvider
is now aMarkedString | MarkedString[]
- removed deprecated
IEditor.onDidChangeModelRawContent
,IModel.onDidChangeRawContent
值得注意的修复
- 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:fixed
element. - Cross origin configuration is now picked up (as advertised in documentation from MonacoEnvironment)