diff --git a/build/monaco/CHANGELOG.md b/build/monaco/CHANGELOG.md index 038552915e8..734e5734672 100644 --- a/build/monaco/CHANGELOG.md +++ b/build/monaco/CHANGELOG.md @@ -2,6 +2,10 @@ ## [0.5.0] +### 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 of `monaco.editor.createWebWorker` +- The right-pointing mouse pointer is oversized in high DPI - [issue](https://github.com/Microsoft/monaco-editor/issues/5) + ### Breaking changes -- `createWebWorker` now loads the AMD module and calls `create` and passes in as first argument a context of type `monaco.worker.IWorkerContext` and as second argument the `initData`. This breaking change was needed to allow handling the case of misconfigured web workers (running of a file protocol or a cross-domain case) +- `monaco.editor.createWebWorker` now loads the AMD module and calls `create` and passes in as first argument a context of type `monaco.worker.IWorkerContext` and as second argument the `initData`. 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 a `CodeActionContext` that contains the markers at the relevant range. \ No newline at end of file diff --git a/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css b/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css index 098fbded214..2227a10e7a3 100644 --- a/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css +++ b/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css @@ -6,18 +6,21 @@ .monaco-editor .margin-view-overlays .line-numbers { position: absolute; text-align: right; + display: inline-block; + vertical-align: middle; + box-sizing: border-box; + cursor: default; +} + +.monaco-workbench .monaco-editor .margin-view-overlays .line-numbers { /* Specific fix for blurry cursor on hdpi screens in Chrome and Chromium (Windows and other) */ cursor: -webkit-image-set( url('./flipped-cursor.svg') 1x, url('./flipped-cursor-2x.svg') 2x ) 30 0, default; - - display: inline-block; - vertical-align: middle; - box-sizing: border-box; } -.monaco-editor.mac .margin-view-overlays .line-numbers { +.monaco-workbench .monaco-editor.mac .margin-view-overlays .line-numbers { /* Specific fix for blurry cursor on hdpi screens in Chrome and Chromium (Mac) */ cursor: -webkit-image-set( url('./flipped-cursor-mac.svg') 1x,