Skip to content

fix: the value still in when file reopen#228

Merged
wewoor merged 2 commits intomainfrom
fix/editor
Jul 8, 2021
Merged

fix: the value still in when file reopen#228
wewoor merged 2 commits intomainfrom
fix/editor

Conversation

@mortalYoung
Copy link
Copy Markdown
Collaborator

简介

  • 修复当文件关闭后再次打开, value 值仍然存在的问题

主要变更

  • 所有关闭 tab 的操作时,应该销毁掉 tab 对应的 model
  • 发现 close tab 的时候不需要去执行 updateCurrentValue 这个操作,只需要去切换 model 即可

Comment thread src/services/workbench/editorService.ts
Comment thread src/services/workbench/editorService.ts
@wewoor wewoor merged commit 2b9002b into main Jul 8, 2021
@wewoor wewoor deleted the fix/editor branch July 8, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants