You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`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)
7
+
- the `CodeActionProvider.provideCodeActions` now gets passed in a `CodeActionContext` that contains the markers at the relevant range.
8
+
- the `hoverMessage` of a decoration is now a `MarkedString | MarkedString[]`
9
+
- the `contents` of a `Hover` returned by a `HoverProvider` is now a `MarkedString | MarkedString[]`
- 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`
14
+
- The right-pointing mouse pointer is oversized in high DPI - [issue](https://github.com/Microsoft/monaco-editor/issues/5)
15
+
- The editor functions now correctly when hosted inside a `position:fixed` element.
16
+
- Cross origin configuration is now picked up (as advertised in documentation from MonacoEnvironment)
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,10 @@ The Monaco Editor is the code editor that powers [VS Code](https://github.com/Mi
9
9
Please mention the version of the editor when creating issues and the browser you're having trouble in.
10
10
11
11
This repository contains only the scripts to glue things together, please create issues against the actual repositories where the source code lives:
12
-
* monaco-editor-core: [Issues](https://github.com/Microsoft/vscode) -- [npm module](https://www.npmjs.com/package/monaco-editor-core) (Issues with the editor itself)
13
-
* monaco-typescript: [Issues](https://github.com/Microsoft/monaco-typescript) -- [npm module](https://www.npmjs.com/package/monaco-typescript) (Issues with JavaScript or TypeScript language support)
14
-
* monaco-languages: [Issues](https://github.com/Microsoft/monaco-languages) -- [npm module](https://www.npmjs.com/package/monaco-languages) (Issues with bat, coffee script, cpp, csharp, fsharp, go, ini, jade, lua, objective-c, powershell, python, r, ruby, sql, swift, vb or xml)
12
+
*[monaco-editor-core](https://github.com/Microsoft/vscode) -- (the editor itself)
13
+
*[monaco-typescript](https://github.com/Microsoft/monaco-typescript) -- (JavaScript or TypeScript language support)
14
+
*[monaco-css](https://github.com/Microsoft/monaco-css) -- (CSS, LESS or SCSS advanced language support)
15
+
*[monaco-languages](https://github.com/Microsoft/monaco-languages) -- (bat, coffee script, cpp, csharp, fsharp, go, ini, jade, lua, objective-c, powershell, python, r, ruby, sql, swift, vb or xml colorizers)
15
16
16
17
## Known issues
17
18
In IE, the editor must be completely surrounded in the body element, otherwise the hit testing we do for mouse operations does not work. You can inspect this using F12 and clicking on the body element and confirm that visually it surrounds the editor.
@@ -152,16 +153,14 @@ Create a Monarch tokenizer [here](https://microsoft.github.io/monaco-editor/mona
152
153
* clone https://github.com/Microsoft/vscode in `$/src/vscode/` (next to this repo)
153
154
* run `$/src/vscode> gulp watch`
154
155
* run `$/src/monaco-editor> npm run simpleserver`
155
-
* edit `$/src/monaco-editor/test/index.html` and set `var RUN_EDITOR_FROM_SOURCE = true;`
156
-
* open http://localhost:8080/monaco-editor/test/
156
+
* open http://localhost:8080/monaco-editor/test/?editor=dev
157
157
158
158
### Running a plugin (e.g. monaco-typescript) from source
159
159
160
160
* clone https://github.com/Microsoft/monaco-typescript in `$/src/monaco-typescript` (next to this repo)
161
161
* run `$/src/monaco-typescript> npm run watch`
162
162
* run `$/src/monaco-editor> npm run simpleserver`
163
-
* edit `$/src/monaco-editor/test/index.html` and set `RUN_PLUGINS_FROM_SOURCE['monaco-typescript'] = true;`
164
-
* open http://localhost:8080/monaco-editor/test/
163
+
* open http://localhost:8080/monaco-editor/test/?editor=dev&monaco-typescript=dev
165
164
166
165
---
167
166
@@ -177,11 +176,13 @@ Create a Monarch tokenizer [here](https://microsoft.github.io/monaco-editor/mona
177
176
#### Adopt new `monaco-editor-core` in plugins (if necessary)
0 commit comments