opensumi / core

🚀 A framework helps you quickly build AI Native IDE products. https://preview.opensumi.com

Home Page:https://opensumi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] 新版 monaco 下格式化的配置无法持久化

Ricbet opened this issue · comments

commented

描述你的问题(Describe the bug)

复现路径(To Reproduce)

image

导致每次在保存的时候总是会弹出这个提示。
即使手动在 setting.json 配置了也不行

预期表现(Expected behavior)

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser: [e.g. chrome, safari, electron]
  • OpenSumi Version: [e.g. 2.13.0]

monaco 调用我们的 select formatter 的入参的最后一个参数是 FormatKind,为 1 的时候代表是 File,但是我们最后一个参数是 showSelect,当 showSelect 为 1 的时候会显示选择框。
CleanShot 2024-04-08 at 13 09 14@2x

CleanShot 2024-04-08 at 13 10 07@2x

CleanShot 2024-04-08 at 13 28 10@2x

这个问题,如果我们类型弄对了是可以发现的.. 但是原来没写类型