✨ feat(vscode): 「未提交的更改」分暂存区两组、单文件暂存、隐藏测试文件
- 照源代码管理视图分「暂存的更改」「更改」两组(空的不摆,分组行写文件数),部分暂存的文件两组都有 - 「更改」组的文件行上加「暂存」按钮,走 git 扩展的 repository.add - 标题栏「隐藏测试文件 / 显示测试文件」开关,按工作区记住,藏了几个写在标题后面;测试文件的判断集中在 isTestFile - 以上只在「未提交的更改」里有:普通文件树、审查模式的行和菜单不变
This commit is contained in:
1 parent
a3b04a443b
commit
87d4360704
14 files changed
+528
-129
No files matched your search
@@ -28,6 +28,12 @@ describe('行的 contextValue', () => {
|
||||
expect(entryContext({ isDirectory: true, isRoot: false })).toBe('folder')
|
||||
expect(entryContext({ isDirectory: false, isRoot: false })).toBe('file')
|
||||
})
|
||||
|
||||
it('文件行可以带标记(「更改」区能暂存的 file unstaged),目录、根不带', () => {
|
||||
expect(entryContext({ isDirectory: false, isRoot: false }, 'unstaged')).toBe('file unstaged')
|
||||
expect(entryContext({ isDirectory: true, isRoot: false }, 'unstaged')).toBe('folder')
|
||||
expect(entryContext({ isDirectory: true, isRoot: true }, 'unstaged')).toBe('root')
|
||||
})
|
||||
})
|
||||
|
||||
describe('files.exclude', () => {
|
||||
|
||||
Reference in new issue
Block a user