Update Monaco Editor and related packages - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
monaco-editor | dependencies | minor | ^0.25.2 -> ^0.33.0 |
monaco-editor-webpack-plugin | dependencies | minor | ^4.0.0 -> ^4.2.0 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
microsoft/monaco-editor
v0.33.0
- The first parameter of all
monaco.languages.register*Provider
functions has changed to take aDocumentSelector
instead of a singlelanguageId
- The
Environment.getWorker
function can now return aPromise
Breaking Changes
-
InlayHintKind.Other
is removed.
Thank you
Contributions to monaco-editor
:
- @Dan1ve (Daniel Veihelmann): Make Vite sample code Firefox compatible MR #2991
-
@philipturner (Philip Turner): Add
@noDerivative
modifier to Swift MR #2957
v0.32.1
v0.32.0
Breaking Changes
- The binary format for
IEncodedLineTokens
has changed to support strikethrough text. -
IDiffEditor.getDomNode()
has been renamed toIDiffEditor.getContainerDomNode()
. -
InlayHint.text
has been replaced byInlayHint.label
andInlayHintsProvider.provideInlayHints
now returns anInlayHintList
.
Thank you
Contributions to monaco-editor
:
- @blutorange (Andre Wachsmuth): Implements #2383 Add syntax modes for FreeMarker template language MR #2847
- @forensicmike (forensicmike1): Add "cd monaco-editor" to the step by step commandline instructions for cloning and running the samples MR #2894
- @juan-carlos-diaz: Fix #2851 Highlight correctly the attributes and identifiers (with dashes) for Shell language MR #2871
- @MasterOdin (Matthew Peveler): Only run publish workflow on main monaco-editor repo MR #2926
-
@philipturner (Philip Turner)
- Update Swift language specification to version 5.5 MR #2855
- Add @preconcurrency to Swift declaration attributes MR #2924
- @rcjsuen (Remy Suen): Support hyphenated HTML tags in Markdown syntax MR #2864
- @resistdesign (Ryan Graff): doc: (samples) Simplify Browser ESM Parcel build MR #2832
- @ValeraS (Valeriy)
- @ZusorCode (Tobias Messner): Add .cjs extension for javascript files MR #2929
v0.31.1
- Fixes a problem with missing colors
- Fixes a problem with scheduling background tokenization
- Improves TypeScript's ESM worker.
v0.31.0
- adds support for highlighting non basic ASCII, invisible or ambiguous unicode characters.
- adds support for setting an editor banner
- streaming hover results in case of multiple hover providers
- fixes multiple IME issues
Breaking Changes
- the generated code is now bundled with ESBuild and the generated code makes use of newer browser features, e.g. optional chaining. These features should be available in all browsers, but they might not be parsed correctly by older JS parsers, specifically parcel v1 might have problems parsing the JS.
Thank you
- @activeguild (j1ngzoue): Add 'browser-ems-vite-react' sample MR #2767
- @emojiiii (C.Y.Kun): Fix some errors on the website playground MR #2779
-
@gitpaladin (Chen Minglong): Fix token while missing
syntax=
directive MR #2809 - @jonatanklosko (Jonatan Kłosko): Update Elixir tokenization of sigil modifiers MR #2806
- @MasterOdin (Matthew Peveler)
- @milahu: fix link to monaco.d.ts MR #2769
- @Pranomvignesh (Pranom Vignesh): Semantic Tokens Provider Sample is broken in docs MR #2764
- @rramo012 (Rafael Ramos): Fixing the documentation links MR #2748
v0.30.1
v0.30.0
- adds support for rendering horizontal guides between bracket pairs and improves the vertical rendering to account for content in between brackets.
- adds new
hover.above
option to control the hover position. - adds
ICodeEditor.onDidChangeHiddenAreas
which is fired when folding/unfolding. - to address CVE-2021-42574, the editor now renders Unicode directional formatting characters by default. The special rendering can be turned off using
renderControlCharacters
. See https://code.visualstudio.com/updates/v1_62#_unicode-directional-formatting-characters for an explanation.
Breaking Changes
- renamed enum members of
monaco.KeyCode
to align with the names given for browser codes. - renamed
ITextModel.getModeId()
toITextModel.getLanguageId()
- renamed
IPasteEvent.mode
toIPasteEvent.languageId
Thank you
Contributions to monaco-editor-webpack-plugin
:
- @silverwind: Fix letter case in repo URL MR #165
Contributions to monaco-languages
:
- @arlosi (Arlo Siemsen): Rust: highlighting raw strings and fix chars with escapes MR #167
- @MasterOdin (Matthew Peveler)
v0.29.1
Thank you
Contributions to monaco-languages
:
- @sw23 (Spencer Williams)
- @tochicool (Tochi Obudulu): Add support for Protocol Buffers language MR #164
v0.29.0
- adds an
ariaContainerElement
option for editors - adds
guides.bracketPairs
to enable guides driven by bracket pairs - adds
maxFileSize
to control the maximum file size for which to compute diffs - adds
CodeActionProvider.resolveCodeAction
Breaking Change
- consolidated the options
renderIndentGuides
,highlightActiveIndentGuide
toguides
Thank you
Contributions to monaco-editor
:
-
@crackalak (Dan Hughes): Added
ariaContainerElement
to shadow dom test MR #2644 - @HKalbasi: Add example for inlay hints MR #2640
- @silverwind: Fix letter case in repo URL MR #2674
- @Un-index: chore: Align run button text in playground.css MR #2658
Contributions to monaco-editor-samples
:
- @koto (Krzysztof Kotowicz): Added an example of loading Monaco with Trusted Types MR #92
Contributions to monaco-editor-webpack-plugin
:
- @six-ponies (马騳骉): fix: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid. MR #160
Contributions to monaco-languages
:
- @aaaaaa2493 (Vladimir Turov): Support Java 12-17 syntax MR #159
- @mbtools (Marc Bernard): Update ABAP syntax MR #160
- @scarolan (Sean Carolan): Replace // with # for line comments MR #158
- @valeriia-melnychuk (Valeriia Melnychuk): Implement syntax highlighting for Flow9 MR #154
Contributions to monaco-typescript
:
- @paranoidjk (paranoidjk): feat: support find reference to extraLib MR #84
-
@troy351: Add type definition of
setInlayHintsOptions
MR #83
v0.28.0
- adds support for typescript inlay hints. Inlay hints can be enabled like this:
monaco.languages.typescript.typescriptDefaults.setInlayHintsOptions({
includeInlayParameterNameHints: 'all',
includeInlayParameterNameHintsWhenArgumentMatchesName: true,
includeInlayFunctionParameterTypeHints: true,
includeInlayVariableTypeHints: true,
includeInlayPropertyDeclarationTypeHints: true,
includeInlayFunctionLikeReturnTypeHints: true,
includeInlayEnumMemberValueHints: true
});
- adds support for bracket pair highlighting, which can be enabled by configuring
bracketPairColorization.enabled
when creating a new editor:
var editor = monaco.editor.create(document.getElementById('container'), {
model: model,
language: 'javascript',
'bracketPairColorization.enabled': true
});
-
registerCodeActionProvider
now accepts metadata to specify provided code action kinds (e.g.quickfix
,refactor
orsource
).
Thank you
Contributions to monaco-editor
:
- @SpaceComet: Small update on the website playground MR #2616
- @thien-do (Thien Do): Add usage with Vite to ESM Integrate doc MR #2632
Contributions to monaco-html
:
- @Pranomvignesh (Pranom Vignesh): fix(workerManager.js) : Added a check for the existence of the worker MR #15
Contributions to monaco-languages
:
- @ladyrick (LadyRick): fix(cpp): fix cpp language integer suffix MR #156
Contributions to monaco-typescript
:
- @Kingwl (Wenlu Wang): Add inlay hints support MR #82
v0.27.0
- added property
inlineClassName
to style injected text - added option
foldingImportsByDefault
- added more JSON diagnostic options.
Breaking Change
- changed
seedSearchStringFromSelection
from boolean to'never' | 'always' 'selection'
- changed suggestion preview mode
subwordDiff
tosubwordSmart
, introducedsubword
Thank you
Contributions to monaco-editor
:
- @Surm4 (Marcin): Exposed colors sample update in the playground. MR #2561
Contributions to monaco-languages
:
-
@alefragnani (Alessandro Fragnani): Adds
strict
keyword to Pascal language MR #153 - @jonatanklosko (Jonatan Kłosko): Properly tokenize fence closing in GitHub style code blocks MR #149
- @kupiakos (Alyssa Haroldsen): Remove ' as an auto-closing pair for Rust MR #151
- @lofcz (Matěj Štágl): Fix razor + liquid render of tags with a dash symbol MR #150
v0.26.1
- fixes minimatch dependency issue by downgrading the monaco-json dependency.
v0.26.0
- added support for injected text. Use
IModelDecorationOptions.before
/after
. - added support for inlay hints provider.
Breaking Changes
- CompletionItemLabel now has the property
label
,detail
anddescription
(instead ofname
,parameters
,qualifier
andtype
).
Thank you
Contributions to monaco-editor
:
- @anthony-c-martin (Anthony Martin): Add Bicep sample MR #2541
Contributions to monaco-languages
:
- @anjbur (Angela Burton): Add support for Q# MR #142
- @maxwrlr: Implement Syntax-Highlighting for SPARQL MR #145
- @nathanrreed (Nathan Reed)
- @qwefgh90 (Changwon Choe): improve a rule which freeze a page in restructuredText MR #141
- @RubenRBS (Rubén Rincón Blanco): Add Swift fileprivate access modifier MR #144
Contributions to monaco-typescript
:
- @spahnke (Sebastian Pahnke): Build tag text correctly for all tags MR #81
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.