Skip to content

Commit

Permalink
Prepare for 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Feb 10, 2020
1 parent 551115f commit fce1d2e
Show file tree
Hide file tree
Showing 6 changed files with 1,243 additions and 653 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Monaco Editor Changelog

## [0.20.0] (11.02.2020)

### New & Noteworthy
* There is new API to read the editor's content width and height.
* New editor options:
* `renderValidationDecorations` - render validation decorations even in read only editors
* `wrappingStrategy` - delegate wrapping points computation to the browser
* `comments.insertSpace` - insert a space around comments when running commenting commands
* `foldingHighlight` - highlight folded regions
* `peekWidgetDefaultFocus` - focus the inline editor or the tree when opening peek view

### Breaking changes
* Renamed `onCompositionStart`, `onCompositionEnd` to `onDidCompositionStart`, `onDidCompositionEnd`
* Changed the argument passed in to `onDidPaste`
* `WorkspaceEdit.edits` has now changed its shape such that edits must no longer be grouped by resource.

### Thank you

Contributions to `monaco-editor`:

* [Josh Goldberg (@JoshuaKGoldberg)](https://github.com/JoshuaKGoldberg): Added section in Monarch docs for Inspect Tokens development helper [PR #1807](https://github.com/microsoft/monaco-editor/pull/1807)

Contributions to `monaco-typescript`:

* [Elizabeth Craig (@ecraig12345)](https://github.com/ecraig12345): Add types for TypeScriptWorker and missing LanguageServiceDefaults methods [PR #54](https://github.com/microsoft/monaco-typescript/pull/54)

Contributions to `monaco-languages`:

* [alan.invents (@ALANVF)](https://github.com/ALANVF): Highlight function definitions better [PR #79](https://github.com/microsoft/monaco-languages/pull/79)
* [@nrayburn-tech](https://github.com/nrayburn-tech): Add support for multiline comments in Swift [PR #80](https://github.com/microsoft/monaco-languages/pull/80)

## [0.19.3] (14.01.2020)

* brings back a way to get resolved editor options - [#1734](https://github.com/microsoft/monaco-editor/issues/1734)
Expand Down
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,13 @@ function toExternalDTS(contents) {
if (line.indexOf('declare namespace monaco.') === 0) {
lines[i] = line.replace('declare namespace monaco.', 'export namespace ');
}

if (line.indexOf('declare let MonacoEnvironment') === 0) {
lines[i] = `declare global {\n let MonacoEnvironment: Environment | undefined;\n}`;
// lines[i] = line.replace('declare namespace monaco.', 'export namespace ');
}
}
return lines.join('\n');
return lines.join('\n').replace(/\n\n\n+/g, '\n\n');
}

/**
Expand Down
Loading

0 comments on commit fce1d2e

Please # to comment.