fix(workspace-state): stop resync loop on non-git folders and allow retry for degraded watcher
Gate git refresh on .git presence so file churn in non-git workspaces no longer produces endless resync_hint events, and silently log tree/git refresh errors during watch flushing instead of flagging requires_resync, which turned transient failures into self-reinforcing loops. Degrade gracefully when the filesystem watcher fails to attach (e.g. permission denied, inotify quota): keep the initial snapshot, surface a degraded flag, and expose a store-level restart that the banner uses to retry attachment after the root cause is fixed. Propagate is_git_repo through the snapshot so the git log and changes tabs render a dedicated "Not a Git repository" empty state instead of raw git stderr with a useless retry button. Stop polling get_git_branch from the title bar once it returns null and re-arm on visibility change. Add translations for the new banner, empty-state, and retry keys across all ten locales.
This commit is contained in:
@@ -769,6 +769,12 @@
|
||||
"applyRightNonConflicting": "원격 적용"
|
||||
},
|
||||
"Folder": {
|
||||
"workspaceStatus": {
|
||||
"degradedTitle": "실시간 업데이트를 사용할 수 없음",
|
||||
"degradedHint": "감시자 시작 실패(권한 거부 등). 최신 변경 사항을 보려면 수동으로 새로 고치세요.",
|
||||
"retry": "다시 시도",
|
||||
"retrying": "다시 시도 중..."
|
||||
},
|
||||
"common": {
|
||||
"all": "전체",
|
||||
"cancel": "취소",
|
||||
@@ -1205,6 +1211,8 @@
|
||||
"workspace": "작업 공간",
|
||||
"retry": "다시 시도",
|
||||
"noCommitsFound": "커밋을 찾을 수 없습니다",
|
||||
"notAGitRepoTitle": "Git 저장소가 아닙니다",
|
||||
"notAGitRepoHint": "위의 브랜치 메뉴에서 Git을 초기화하거나 기존 저장소를 여세요.",
|
||||
"hash": "해시",
|
||||
"copyHash": "해시 복사",
|
||||
"copyMessage": "메시지 복사",
|
||||
@@ -1281,6 +1289,8 @@
|
||||
"gitChangesTab": {
|
||||
"workspace": "작업 공간",
|
||||
"noChanges": "로컬 변경 사항이 없습니다",
|
||||
"notAGitRepoTitle": "Git 저장소가 아닙니다",
|
||||
"notAGitRepoHint": "위의 브랜치 메뉴에서 Git을 초기화하거나 기존 저장소를 여세요.",
|
||||
"trackedChanges": "추적된 변경 ({count})",
|
||||
"untrackedFiles": "추적되지 않은 파일 ({count})",
|
||||
"expandTracked": "추적된 변경 펼치기",
|
||||
|
||||
Reference in New Issue
Block a user