core
core copied to clipboard
[BUG] 初始化编辑器不自动打开CustomEditor
描述你的问题(Describe the bug)
- 编辑器会自动打开最近打开的文件
- 而注册customComponent组件时期太晚导致无法在初始化打开时获取到内容
复现路径(To Reproduce)
-
首先打开一个 customEditor 选择 default 打开
-
先打开文件 能正确显示内容
-
再刷新 打开方式为 code 而不是customEditor形式
-
使用 workbench.editorAssociations 也会有此问题
https://user-images.githubusercontent.com/31676999/220343145-07dd07d2-01dd-4dc5-bc17-43fdc6e3fa33.mov