monaco-editor
Advanced tools
Changelog
[0.14.0] (10.08.2018)
typescriptServices
is no longer loaded on the UI thread, this helps with webpack's bundle output size.scrollBeyondLastColumn
, hover
, suggest
, highlightActiveIndentGuide
, showUnused
.setTokensProvider
with EncodedTokensProvider
.monaco.languages.getEncodedLanguageId
to get the numeric language id.DefinitionProvider.provideDefinition
, ImplementationProvider.provideImplementation
, TypeDefinitionProvider.provideTypeDefinition
can now return a DefinitionLink
.Severity
.IEditor.isFocused
to IEditor.hasTextFocus
.ICodeEditor.onDidFocusEditor
to ICodeEditor.onDidFocusEditorWidget
.ICodeEditor.onDidBlurEditor
to ICodeEditor.onDidBlurEditorWidget
.DocumentSymbolProvider.provideDocumentSymbols
must now return DocumentSymbol[]
.Contributions to monaco-editor
:
Contributions to monaco-typescript
:
file
fields of relatedInformation
too. (WIP) PR #21Contributions to monaco-languages
:
Changelog
[0.13.1] (15.05.2018)
Changelog
[0.13.0] (11.05.2018)
registerFoldingRangeProvider
.IModelDecorationOptions.zIndex
. A decoration with greater stack order is always in front of a decoration with a lower stack order.inlineClassName
which affects letter spacing. the stack order of a decoration by setting IModelDecorationOptions.inlineClassNameAffectsLetterSpacing
.ITextModel.getLineLength(lineNumber: number)
)codeActionsOnSave
, controls whether code action kinds will be run on save.codeActionsOnSaveTimeout
, controls timeout for running code actions on save.multiCursorMergeOverlapping
, controls if overlapping selections should be merged. Default to true
.ICodeEditor.getCenteredRangeInViewport
.RenameProvider.resolveRenameLocation
now returns RenameLocation
instead of IRange
.Changelog
[0.12.0] (11.04.2018)
monaco-editor-webpack-plugin
- now available on npm.MarkerSeverity
instead of Severity
for markers serverity.RenameProvider.resolveInitialRenameValue
with RenameProvider.resolveRenameLocation
.monaco-typescript
, renamed setMaximunWorkerIdleTime
to setMaximumWorkerIdleTime
.fromMarkdownString
PR monaco-json#4Changelog
[0.11.1] (15.03.2018)
editor.api.d.ts
typingsChangelog
[0.11.0] (14.03.2018)
DocumentColorProvider
.MarkedString
with IMarkdownString
. Source code snippets can be expressed using the GH markdown syntax.IResourceEdit
to ResourceTextEdit
.IModel
, IReadOnlyModel
, IEditableTextModel
, ITextModelWithMarkers
, ITokenizedModel
, ITextModelWithDecorations
to ITextModel
. A type alias for IModel
is defined for compatibility.ICommonCodeEditor
and ICodeEditor
to ICodeEditor
.ICommonDiffEditor
and IDiffEditor
to IDiffEditor
.CompletionItem.documentation
, ParameterInformation.documentation
and SignatureInformation.documentation
can now be an IMarkdownString
.CompetionItem.command
, CompletionItem.commitCharacters
and CompletionItem.additionalTextEdits
.folding
which can define markers for code patterns where a folding regions should be created. See for example the Python configuration.ResourceFileEdit
(due to how monaco.d.ts
is generated from vscode). That is not honoured by the editor, and should not be used.Changelog
[0.10.1] (16.10.2017)
Changelog
[0.10.0] (17.08.2017)
CodeAction
.provideCodeActions
in CodeActionProvider
now returns Command[] | Thenable<Command[]>
instead of CodeAction[] | Thenable<CodeAction[]>
, which is already removed.monaco.editor.getModelMarkers
. Get markers for owner and/or resource..row
for command palette to avoid CSS conflicts with Bootstrap.Changelog
[0.9.0] (03.07.2017)
editor.minimap
to disable it).editor.dragAndDrop
to disable it).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.IModel.findMatches
to accept a list of word separators.IModelContentChangedEvent
emitted via IModel.onDidChangeContent
to now contain a batch of all the changes that the model had.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).wordWrap
, wordWrapColumn
and wordWrapMinified
.monaco.languages.registerTypeDefinitionProvider
.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.vscode
which have also made their way into the monaco-editor
.Changelog
[0.8.3] (03.03.2017)