Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Latest commit

 

History

History
185 lines (128 loc) · 9.62 KB

File metadata and controls

185 lines (128 loc) · 9.62 KB

CHANGELOG

All notable changes to npm module monaco-editor-wrapper are documented in this file.

[3.6.0] - 2024-01-04

  • Updated to monaco-languageclient@7.3.0 and @codingame/monaco-vscode-api@1.85.0 / @codingame/monaco-editor-treemended@1.85.0 (=monaco-editor@0.45.0).
  • How to modify client's capabilities? #61
    • It is now possible to provide and fully override boh monaco-languageclient's clientOptions and connectionProvider

[3.5.0] - 2023-11-07

  • Updated to monaco-languageclient@7.2.0 and monaco-vscode-api@1.83.16.
  • Introduce capability to use a MessagePort as end-point for a languageclient
  • Use vitest v1 for tests
  • Move initServices from MonacoEditorLanguageClientWrapper to LanguageClientWrapper

[3.4.0] - 2023-11-27

  • Updated to monaco-languageclient@7.1.0 and monaco-vscode-api@1.83.12.
    • BREAKING: The postinstall step is removed. monaco-languageclient no longer patches an existing monaco-editor instead the package @codingame/monaco-editor-treemended is used. This requires that projects using this lib to enforce the correct monaco-editor with overrides (npm/pnpm) or resolutions (yarn) in the package.json.
    • BREAKING: If you want to use getConfigurationServiceOverride you need to provide a workspaceConfig along the userServices in initServices.
  • Make subclassing MonacoEditorReactComp more easy #58
  • Allow to init and start separately #59
    • BREAKING: start no longer calls init. You need to call both or you use initAndStart.

[3.3.0] - 2023-10-17

  • Properly separate and define classic and extended editor #54
    • Renamed EditorAppVscodeApi to EditorAppExtended and EditorAppConfigVscodeApi to EditorAppConfigExtended
    • BREAKING: $type of EditorAppConfigExtended was changed from vscodeApi to extended
  • Updated to monaco-languageclient@6.6.0 and @codingame/monaco-vscode-api@1.83.2 and monaco-editor@0.44.0
  • Include all direct dependencies that the code uses in the package.json.

[3.2.5] - 2023-10-13

  • New Problem in vite #55
    • Fixed wrong imports

[3.2.4] - 2023-10-05

  • Fixed/Implemented multiple extensionRegisterResults handling.

[3.2.3] - 2023-10-04

  • Updated to monaco-languageclient@6.5.1.

[3.2.2] - 2023-10-04

  • Fixed broken dependency definition

[3.2.1] - 2023-09-29

  • Fixed awaitExtensionReadiness was not added to the base configuration during init.

[3.2.0] - 2023-09-29

  • Updated to monaco-languageclient@6.5.0. Service init now relies on specific imports from monaco-vscode-api or user defined services.
    • Bundle sizes and content are reduced as unneeded dynamic imports are no longer contained.
    • Only keep user services ininitServices. It requires to specifically import and use services provided by monaco-vscode-api
      • All enable... and configure type parameters have been removed from monaco-languagclient
      • languages and model services are always added by monaco-languagclient
      • layout, environment, extension, files and quickAccess servies are always added by monaco-vscode-api
      • Additional services need to be added to the package dependencies and imported and configured as shown in the examples
  • htmlElement is no longer part of UserConfig. Must be passed at start #51
    • The HTMLElement must now be passed at wrapper.start. It is no longer part of the UserConfig.

[3.1.0] - 2023-09-21

  • Make the extension register result accessible #48
  • Improve configuration change detection #47
  • semantic highlighting works with classic editor #45

[3.0.1] - 2023-09-07

  • Introduce logger.ts which allows to centrally enable / disable console logging of the library
  • Updated to monaco-languageclient 6.4.6 using monaco-vscode-api 1.81.7
  • Ensure LanguageClientWrapper Cleans up Worker #42

[3.0.0] - 2023-08-31

  • New example and config changes #37
  • languageClientWrapper: Reject start with unreachable web socket or web worker url #34
  • Improve naming and improve api usage #31
  • createUrl now allows web socket urls without port and path #30
  • Updated to monaco-languageclient 6.4.5 using monaco-vscode-api 1.81.5 and monaco-editor 0.41.0
  • languageClientWrapper: Reject start with unreachable web socket or web worker url #34
  • Re-introduce addMonacoStyles via monaco-editor-wrapper/styles

[2.1.1] - 2023-07-27

  • Allow to pass a uri via editor config and model update #29

[2.1.0] - 2023-06-16

  • Make worker handling more flexible #27
  • Updated to monaco-languageclient 6.2.0 using monaco-vscode-api 1.79.3 and monaco-editor 0.39.0

[2.0.1] - 2023-06-12

  • Updated to monaco-languageclient 6.1.0 using monaco-vscode-api 1.79.1 and monaco-editor 0.38.0

[2.0.0] - 2023-06-02

  • Move away from "property" based configuration. UserConfig drives the complete monaco-editor configuration
    • Use global configuration object that is passed to the wrapper on start
    • The monaco-editor-wrapper and the new @typefox/monaco-editor-react component use the same configuration
  • The underlying monaco-editor can be configured in two ways now (wrapperConfig):
    • Classic: As before, but with one config object
    • Extension like: Using the extension based mechanism supplied by monaco-vscode-api
  • monaco-languageclient no longer exposes its own service. Now, we fully rely on services supplied by monaco-vscode-api
    • This means even if you decide to configure monaco-editor the classical way, you still require some basic services. This configuration is made inside MonacoEditorLanguageClientWrapper. Potential serviceConfig supplied when using vscode-api extension config is taken into account and combined then.
  • Re-configuration without full editor restart:
    • Updating the text model(s) is possible
    • Updating the monaco-editor options is possible
    • Restarting the languageclient is possible independently
  • Everything else requires a restart of the editor!

[1.6.1] - 2023-03-23

  • Enable to update/restart the language client #18
  • Add language client initialization options #17

[1.6.0] - 2022-12-21

  • Fix error in disposeLanguageClient preventing proper editor disposal
  • Expose MessageTransports configuration for accessing MessageReader and MessageWriter
  • Polish wrapper examples and add web socket example

[1.5.0] - 2022-12-09

  • Remove swapEditors function. startEditor disposes old (diff)editor and starts a freshly configured one.

[1.4.1] - 2022-12-01

  • Update to monaco-languageclient@4.0.3

[1.4.0] - 2022-12-01

  • Export vscode (monaco-vscode-api) and monaco and remove getters
  • automaticLayout is configured as default
  • Fixed full configuration of editor and diff editor via monacoEditorOptions and monacoDiffEditorOptions
  • Changed the compile target and module to ES2022.
  • Update to monaco-languageclient@4.0.2
  • Update to vscode-ws-jsonrpc@2.0.1

[1.3.2] - 2022-11-25

  • Merged css and ttf helper functions. Now ttf is included in css removing unknown path errors.

[1.3.1] - 2022-11-03

  • Added get function to access monaco-vscode-api via getVscode()

[1.3.0] - 2022-10-28

  • Bundling issues with imported workers from wrapper #14
    • The new default is that no additional language support is contained. You can use another export to obtain them. The same applies to the bundles:
      • monaco-editor-wrapper/allLanguages
      • monaco-editor-wrapper/bundle
      • monaco-editor-wrapper/bundle/allLanguages

[1.2.0] - 2022-09-22

  • Fix model URI path #13
  • Added inmemory uri to diff editor as well
  • Re-worked the start/dispose/restart of the editor
  • Ensure model uris are unique for different languages and across multiple editor instances

[1.1.0] - 2022-09-20

  • Allows to set MessageReader and MessageWriter for the web worker. This opens the possibility to emit and intercept messages.
  • It is now possible to configure and use a full language extension configuration
  • Added get functions to access to monaco, editor, diffEditor and languageClient or quickly get the editor content:
    • getMonaco()
    • getEditor()
    • getDiffEditor()
    • getLanguageClient()
    • getMainCode()
    • getDiffCode()

[1.0.0] - 2022-09-08

  • Separated monaco-editor-wrapper from monaco-editor-comp