0.14.2 更新日志:
0.14.0 更新日志:
New & Noteworthy
Using tree-shaking to reduce the amount of shipped code.
TypeScript and JavaScript coloring is now done with Monarch.
typescriptServices
is no longer loaded on the UI thread, this helps with webpack's bundle output size.Added coloring for: apex, azcli, clojure, powerquery, rust, scheme and shell.
Added sub-word navigation commands.
Added font zoom commands.
Syntax highlighting for deleted lines in inline diff editor.
Highlighted indent guide.
Column selection using middle mouse button.
Added editor options:
scrollBeyondLastColumn
,hover
,suggest
,highlightActiveIndentGuide
,showUnused
.Added
setTokensProvider
withEncodedTokensProvider
.Added
monaco.languages.getEncodedLanguageId
to get the numeric language id.DefinitionProvider.provideDefinition
,ImplementationProvider.provideImplementation
,TypeDefinitionProvider.provideTypeDefinition
can now return aDefinitionLink
.
Breaking Changes
Removed no longer used
Severity
.Renamed
IEditor.isFocused
toIEditor.hasTextFocus
.Renamed
ICodeEditor.onDidFocusEditor
toICodeEditor.onDidFocusEditorWidget
.Renamed
ICodeEditor.onDidBlurEditor
toICodeEditor.onDidBlurEditorWidget
.DocumentSymbolProvider.provideDocumentSymbols
must now returnDocumentSymbol[]
.
Monaco Editor 是微软开源的基于 VS Code 的代码编辑器。
源码下载: