新增可持久化的工作区布局模式,并支持跨窗口同步#225
Open
imbingox wants to merge 6 commits into
Open
Conversation
Add workspace layout mode preference
Sync workspace layout mode across windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
佬,我往设置里加了fusion和files的布局切换模式,你看看适不适合merge呢,我感觉工作区布局模式是一个全局用户的偏好设置
变更概述
新增一个可持久化的工作区布局模式设置,并支持在设置窗口与工作区窗口之间实时同步。
具体改动
workspace:layout-mode本地持久化配置,支持fusion/filesstorage事件实现跨窗口即时同步测试
pnpm test src/components/settings/general-settings.test.tsx src/contexts/workspace-context.test.tsx src/lib/workspace-layout-mode-storage.test.ts pnpm eslint src/components/settings/general-settings.tsx src/components/settings/general-settings.test.tsx src/contexts/workspace-context.tsx src/contexts/workspace-context.test.tsx src/lib/workspace-layout-mode-storage.ts src/lib/workspace-layout-mode-storage.test.ts src/app/workspace/layout.tsx src/components/files/file-workspace-tab-bar.tsx