Monaco Editor v0.9.0 Release Notes

  • ๐Ÿ†• New & Noteworthy

    • Minimap (on by default, use editor.minimap to disable it).
    • Drag and Drop (on by default, use editor.dragAndDrop to disable it).
    • Copy text with formatting.

    Accessibility

    • There is a new guide for making the editor accessible to all.
    • There is a new Alt+F1 (Ctrl+F1 in IE) accessibility help panel.
    • There is a new F8/Shift+F8 diff review panel in the diff editor.
    • Many bugfixes, including now respecting the Windows High Contrast Theme on Edge.

    ๐Ÿ’ฅ Breaking changes

    • A lot has changed w.r.t. how themes work in the editor, mostly driven by the work to support theming in VS Code. editor.updateOptions() no longer accepts theme; the theme can be changed via the newly introduced monaco.editor.setTheme(). Additionally, we recommend editor colors be customized via monaco.editor.defineTheme() instead of via CSS -- see sample. The color names will be stable, while the CSS class names might break at any time.
    • Support for the internal snippet syntax has been discontinued and snippet must now use the official, TextMate-like syntax. Find its grammar and samples here.
    • ๐Ÿ”„ Changed IModel.findMatches to accept a list of word separators.
    • Changed the shape of the IModelContentChangedEvent emitted via IModel.onDidChangeContent to now contain a batch of all the changes that the model had.
    • ๐Ÿ’ป No longer using transform: translate3d, now using will-change: transform for browser layer hinting. Use the disableLayerHinting option if you have any trouble with browser layers (blurriness or high GPU memory usage).
    • Simplified wrapping settings: wordWrap, wordWrapColumn and wordWrapMinified.

    API changes

    • โž• added monaco.languages.registerTypeDefinitionProvider.
    • ๐Ÿ†• new editor options:
      • accessibilityHelpUrl - the url of a page to open for documentation about how to operate the editor when using a Screen Reader.
      • find.seedSearchStringFromSelection - Ctrl+F/Cmd+F seeds search string from the editor selection.
      • find.autoFindInSelection - Ctrl+F/Cmd+F turns on the find in selection toggle if the editor selection is multiline.
      • minimap.enabled - enable minimap.
      • minimap.showSlider - control when to render the minimap slider.
      • minimap.renderCharacters - render characters or blocks in the minimap.
      • minimap.maxColumn - maximum number of columns the minimap shows.
      • overviewRulerBorder - toggle that the overview ruler renders a border.
      • links - enable link detection.
      • multiCursorModifier - change the multi cursor modifier key.
      • accessibilitySupport - optimize the editor for use with a Screen Reader.
      • autoIndent - automatically fix indentation when moving lines, pasting or typing.
      • dragAndDrop - dragging and dropping editor selection within the editor.
      • occurrencesHighlight - enable highlighting of occurences.
      • showFoldingControls - fine-tune when the folding icons should show
      • matchBrackets - enable bracket matching
      • letterSpacing - configure font's letter-spacing.

    Thank you