0.11.1 (15.03.2018)
- Fixes issue #756: Can't use "Enter" key to accept an IntelliSense item
- Fixes issue #757: TypeScript errors in
editor.api.d.ts
typings
0.11.0 (14.03.2018)
- ESM distribution (compatible with e.g. webpack).
- New interval tree decorations implementation.
- New piece tree text buffer implementation.
- The minimap can be placed to the left.
- Line numbers can be displayed in an interval.
- The cursor width can be customized.
- Smooth scrolling can be turned on.
- Color decorators and color picker via
DocumentColorProvider
.
- Replaced
MarkedString
withIMarkdownString
. Source code snippets can be expressed using the GH markdown syntax. - Renamed
IResourceEdit
toResourceTextEdit
.
- Merged
IModel
,IReadOnlyModel
,IEditableTextModel
,ITextModelWithMarkers
,ITokenizedModel
,ITextModelWithDecorations
toITextModel
. A type alias forIModel
is defined for compatibility. - Merged
ICommonCodeEditor
andICodeEditor
toICodeEditor
. - Merged
ICommonDiffEditor
andIDiffEditor
toIDiffEditor
. CompletionItem.documentation
,ParameterInformation.documentation
andSignatureInformation.documentation
can now be anIMarkdownString
.- Added
CompetionItem.command
,CompletionItem.commitCharacters
andCompletionItem.additionalTextEdits
. - Added language configuration
folding
which can define markers for code patterns where a folding regions should be created. See for example the Python configuration. - Added by accident
ResourceFileEdit
(due to howmonaco.d.ts
is generated from vscode). That is not honoured by the editor, and should not be used.
- Remy Suen @rcjsuen:
- Fix a small typo in README.md PR monaco-typescript#18
- Remove unused IDisposable array PR monaco-typescript#19
- Add HEALTHCHECK as a Dockerfile keyword PR monaco-languages#29
- Add ARG as a Dockerfile keyword PR monaco-languages#30
- Can Abacigil @abacigil: MySQL, Postgres, Redshift and Redis Language Support PR monaco-languages#26
- Matthias Kadenbach @mattes: Support Content-Security-Policy syntax highlighting PR monaco-languages#27
- e.vakili @evakili: Whitespaces after # are allowed in C++ preprocessor statements PR monaco-languages#28
- Pankaj Kumar Gautam @PAPERPANKS: adding microsoft logo to footer PR monaco-editor#577
- Dominik Moritz @domoritz: Fix code in changelog PR monaco-editor#582
- ItsPugle @ItsPugle: Updating the footer to reflect change of year PR monaco-editor#707
- Michael Seifert @MSeifert04: Add linebreak for if PR monaco-editor#726
- Andrew Palm @apalm: Fix 'Configure JSON defaults' sample PR monaco-editor#731
- Niklas Mollenhauer @nikeee: Fix line number API usage PR monaco-editor#740
- Andre @anc: More realistic terminal shell PR monaco-editor#742
- to the many others that have contributed PRs to vscode which have also made their way into the monaco-editor.
0.10.1 (16.10.2017)
- Fixes issue #601: window.opener should be set to null to protect against malicious code
0.10.0 (17.08.2017)
- Removed
CodeAction
. - Method
provideCodeActions
inCodeActionProvider
now returnsCommand[] | Thenable<Command[]>
instead ofCodeAction[] | Thenable<CodeAction[]>
, which is already removed.
- added
monaco.editor.getModelMarkers
. Get markers for owner and/or resource.
- No longer use CSS class
.row
for command palette to avoid CSS conflicts with Bootstrap. - Fix Accessibility Help Dialog accessible issue on IE/Edge.
- Fix Find Widget CSS compability issues with IE11.
- Toggle Block Comment can remove extra whitespaces.
- Kitson Kelly @kitsonk: Update monaco-typescript to TypeScript 2.4.1 PR monaco-typescript#15
- @duncanwerner: Add hex number tokenization to R language PR monaco-languages#21
- Remy Suen @rcjsuen: Update Dockerfile grammar with STOPSIGNAL and SHELL instructions PR monaco-languages#22
- Marlene Cota @marlenecota: Add Small Basic support PR monaco-languages#23
- Ben Jacobson @bjacobso: Add LIMIT to sql keywords PR monaco-languages#24
- to the many others that have contributed PRs to vscode which have also made their way into the monaco-editor.
0.9.0 (03.07.2017)
- 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.
- 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.
- 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 acceptstheme
; the theme can be changed via the newly introducedmonaco.editor.setTheme()
. Additionally, we recommend editor colors be customized viamonaco.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 viaIModel.onDidChangeContent
to now contain a batch of all the changes that the model had. - No longer using
transform: translate3d
, now usingwill-change: transform
for browser layer hinting. Use thedisableLayerHinting
option if you have any trouble with browser layers (bluriness or high GPU memory usage). - Simplified wrapping settings:
wordWrap
,wordWrapColumn
andwordWrapMinified
.
- 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 showmatchBrackets
- enable bracket matchingletterSpacing
- configure font's letter-spacing.
- Joey Marianer (@jmarianer): Support literal interpolated strings ($@"") PR monaco-languages#13
- @AndersMad: HTML Tags: Add support for dash and fix colon in end tag PR monaco-languages#14
- Sandy Armstrong (@sandyarmstrong): csharp: add support for binary literals and _ as separator PR monaco-languages#16
- Anton Kosyakov (@akosyakov): Include src as a part of npm package PR monaco-languages#17
- Andrew Bonventre (@andybons): Fix typo: concering → concerning PR monaco-languages#18
- Scott McMaster (@scottmcmaster): MSDAX support PR monaco-languages#19
- Luzian Serafin (@lserafin): Add Solidity PR monaco-languages#20
- Kitson Kelly (@kitsonk): Update to TypeScript 2.3.4 PR monaco-typescript#13
- Kitson Kelly (@kitsonk): Add documentation support on hover PR monaco-typescript#14
- @replacepreg: Updating date at footer PR monaco-editor#409
- Aarin Smith (@aarinsmith): Fixed spelling error in README.md:85 'instantion' -> 'instantiation' PR monaco-editor#440
- to the many others that have contributed PRs to
vscode
which have also made their way into themonaco-editor
.
0.8.3 (03.03.2017)
- Fixes an issue in monaco-typescript where it would attempt to validate a disposed model.
0.8.2 (01.03.2017)
- Fixes the following regressions:
- issue #385: Cannot add action to the left-hand-side of the diff editor
- issue #386: Shortcuts for actions added via editor.addAction don't show up in the Command Palette
- issue #387: Cannot change diff editor to a custom theme based on high contrast
0.8.1 (27.01.2017)
- CSS/JSON/HTML language supports updated:
- CSS: Support for @apply
- SCSS: Map support
- New HTML formatter options: unformatedContent, wrapAttributes
- Fixed issue where the editor was throwing in Safari due to
Intl
missing. - Fixed multiple issues where the editor would not position the cursor correctly when using browser zooming.
- Added
disableMonospaceOptimizations
editor option that can be used in case browser zooming exposes additional issues. - Added
formatOnPaste
editor option. - Added
IActionDescriptor.precondition
. - Breaking change: renamed
registerTypeDefinitionProvider
toregisterImplementationProvider
and associated types.
- This release has been brewing for a while and comes with quite a number of important changes.
- There are many bugfixes and speed/memory usage improvements.
- Now shipping TypeScript v2.1.5 in
monaco-typescript
(JS and TS language support).
- we have not made the editor fail on purpose in these browsers, but we have removed IE9/IE10 targeted workarounds from our codebase;
- now using Typed Arrays in a number of key places resulting in considerable speed boosts and lower memory consumption.
- Monarch states are now memoized up to a depth of 5. This results in considerable memory improvements for files with many lines.
- Speed improvements to Monarch tokenizer that resulted in one breaking change:
- when entering an embedded mode (i.e.
nextEmbedded
), the state ending up in must immediately contain anextEmbedded: "@pop"
rule. This helps in quickly figuring out where the embedded mode should be left. The editor will throw an error if the Monarch grammar does not respect this condition.
- This is a breaking change
- Before, token types would be rendered on the
span
node of text, and CSS rules would match token types and assign styling to them (i.e. color, boldness, etc.to style tokens) - To enable us to build something like a minimap, we need to know the text color in JavaScript, and we have therefore moved the token style matching all to JavaScript. In the future, we foresee that even decorations will have to define their color in JavaScript.
- It is possible to create a custom theme via a new API method
monaco.editor.defineTheme()
and the playground contains a sample showing how that works. - Token types can be inspected via
F1
>Developer: Inspect tokens
. This will bring up a widget showing the token type and the applied styles.
- added
monaco.editor.onDidCreateEditor
that will be fired whenever an editor is created (will fire even for a diff editor, with the two editors that a diff editor consists of). - added
monaco.editor.tokenize
that returns logical tokens (before theme matching, as opposed tomonaco.editor.colorize
). - added
monaco.languages.registerTypeDefinitionProvider
- removed
IModel.getMode()
. - structural changes in the events
IModelLanguageChangedEvent
,IModelDecorationsChangedEvent
andIModelTokensChangedEvent
; - changed
IModel.findMatches
,IModel.findNextMatch
andIModel.findPreviousMatch
to be able to capture matches while searching.
ICodeEditor.addAction
andIDiffEditor.addAction
now return anIDisposable
to be able to remove a previously added action.- renamed
ICodeEditor.onDidChangeModelMode
toICodeEditor.onDidChangeModelLanguage
; ICodeEditor.executeEdits
can now take resulting selection for better undo/redo stack management;- added
ICodeEditor.getTargetAtClientPoint(clientX, clientY)
to be able to do hit testing. - added
IViewZone.marginDomNode
to be able to insert a dom node in the margin side of a view zone. - settings:
lineDecorationsWidth
can now take a value in the form of"1.2ch"
besides the previous accepted number (in px)renderLineHighlight
can now take a value in the set'none' | 'gutter' | 'line' | 'all'
.- added
fixedOverflowWidgets
to render overflowing content widgets as'fixed'
(defaults to false) - added
acceptSuggestionOnCommitCharacter
to accept suggestions on provider defined characters (defaults to true) - added
emptySelectionClipboard
- copying without a selection copies the current line (defaults to true) - added
suggestFontSize
- the font size for the suggest widget - added
suggestLineHeight
- the line height for the suggest widget
- diff editor settings:
- added
renderIndicators
- Render +/- indicators for added/deleted changes. (defaults to true)
- added
- Nico Tonozzi (@nicot): Register React file extensions PR monaco-typescript#12
- Jeong Woo Chang (@inspiredjw): Cannot read property 'uri' of null fix PR vscode#13263
- Jan Pilzer(@Hirse): Add YAML samples PR monaco-editor#242
- Bugfixes in monaco-html, including fixing formatting.
- Adopted TypeScript 2.0 in all the repos (also reflected in
monaco.d.ts
). - Added YAML colorization support.
- Brought back the ability to use
editor.addAction()
and have the action show in the context menu. - Web workers now get a nice label next to the script name.
- settings:
- new values for
lineNumbers
:'on' | 'off' | 'relative'
- new values for
renderWhitespace
:'none' | 'boundary' | 'all'
- new values for
- removed
model.setMode()
, asIMode
will soon disappear from the API.
- Removed html, razor, php and handlebars from
monaco-editor-core
:- the
monaco-editor-core
is now finally language agnostic. - coloring for html, razor, php and handlebars is now coming in from
monaco-languages
. - language smarts for html, razor and handlebars now comes from
monaco-html
.
- the
- Packaging improvements:
- thanks to the removal of the old languages from
monaco-editor-core
, we could improve the bundling and reduce the number of .js files we ship. - we are thinking about simplifying this further in the upcoming releases.
- thanks to the removal of the old languages from
- Sandy Armstrong (@sandyarmstrong): csharp: allow styling #r/#load PR monaco-languages#9
- Nico Tonozzi (@nicot): Go: add raw string literal syntax PR monaco-languages#10
- Jason Killian (@JKillian): Add vmin and vmax CSS units PR monaco-languages#11
- Jan Pilzer (@Hirse): YAML colorization PR monaco-languages#12
- Sam El-Husseini (@microsoftsam): Using Cmd+Scroll to zoom on a mac PR vscode#12477
0.6.1 (06.09.2016)
- Fixed regression where
editor.addCommand
was no longer working.
0.6.0 (05.09.2016)
- This will be the last release that contains specific IE9 and IE10 fixes/workarounds. We will begin cleaning our code-base and remove them.
- We plan to adopt TypeScript 2.0, so this will be the last release where
monaco.d.ts
is generated by TypeScript 1.8. javascript
andtypescript
language services:- exposed API to get to the underlying language service.
- fixed a bug that prevented modifying
extraLibs
.
- Multiple improvements/bugfixes to the
css
,less
,scss
andjson
language services. - Added support for ATS/Postiats.
- settings:
- new:
mouseWheelZoom
,wordWrap
,snippetSuggestions
,tabCompletion
,wordBasedSuggestions
,renderControlCharacters
,renderLineHighlight
,fontWeight
. - removed:
tabFocusMode
,outlineMarkers
. - renamed:
indentGuides
->renderIndentGuides
,referenceInfos
->codeLens
- new:
- added
editor.pushUndoStop()
to explicitly push an undo stop - added
suppressMouseDown
toIContentWidget
- added optional
resolveLink
toILinkProvider
- removed
enablement
,contextMenuGroupId
fromIActionDescriptor
- removed exposed constants for editor context keys.
- Icons missing in the find widget in IE11 #148
- Multiple context menu issues
- Multiple clicking issues in IE11/Edge (#137, #118)
- Multiple issues with the high-contrast theme.
- Multiple IME issues in IE11, Edge and Firefox.
- Pavel Kolev (@paveldk): Fix sending message to terminated worker PR vscode#10833
- Pavel Kolev (@paveldk): Export getTypeScriptWorker & getJavaScriptWorker to monaco.languages.typescript PR monaco-typescript#8
- Sandy Armstrong (@sandyarmstrong): Support CompletionItemKind.Method. PR vscode#10225
- Sandy Armstrong (@sandyarmstrong): Fix show in IE11 PR vscode#10309
- Sandy Armstrong (@sandyarmstrong): Correct docs for IEditorScrollbarOptions.useShadows PR vscode#11312
- Artyom Shalkhakov (@ashalkhakov): Adding support for ATS/Postiats PR monaco-languages#5
0.5.1 (24.06.2016)
- Fixed mouse handling in IE
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)