Skip to content

Conversation

kiwiwong
Copy link
Collaborator

简介

升级 monaco-editor 到 0.52.2 版本,主要变更如下:

相关依赖库版本升级:

  • monaco-editor ^0.31.0 -> 0.52.2
  • monaco-editor-nls -> 3.1.0
  • vscode-textmate -> 9.2.0

部分 monaco-editor API 变更,主要有如下几个变更:

  • 移除DynamicStandaloneServices
  • StandaloneEditor 构造参数调整
  • StandaloneDiffEditor 更名为 StandaloneDiffEditor2,以及构造参数调整
  • SimpleLayoutService 移除
  • Keybinding 数据结构调整

快捷键功能调整:
monaco-editor 升级之后,快捷键和快速访问面板功能,要求必须有编辑器获得焦点才可以使用,所以基于原先已有功能,实现了一个全局隐藏的编辑器,用于实现全局快捷键功能,详情见内部文档。

esbuildPluginMonacoEditorNls 插件调整,以支持 dev 模式启动

测试内容

  • dev 命令启动正常
  • web 命令启动正常
  • build 命令执行正常
  • 页面渲染、整体布局、样式均正常
  • 菜单功能正常
  • TestPanel 功能正常
  • 快捷键功能正常
  • 切换主题功能正常
  • 切换语言正常
  • 编辑器打开、语法高亮、自动补全提示正常
  • Diff 编辑器打开、语法高亮正常

@kiwiwong kiwiwong self-assigned this Sep 29, 2025
@kiwiwong kiwiwong removed the request for review from shiqiWang0 September 29, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants