修复:“添加到VCS”的弹框显示了已经被git跟踪的文件
This commit is contained in:
@@ -272,7 +272,10 @@ function filterDirectoryGitCandidates(
|
||||
action: DirectoryGitAction
|
||||
): DirectoryGitCandidateEntry[] {
|
||||
if (action === "add") {
|
||||
return entries.filter((entry) => entry.status.trim().length > 0)
|
||||
return entries.filter((entry) => {
|
||||
const fileState = classifyGitFileState(entry.status)
|
||||
return fileState === "untracked"
|
||||
})
|
||||
}
|
||||
|
||||
return entries.filter((entry) => {
|
||||
|
||||
Reference in New Issue
Block a user