fix: complete worktree copy verification cleanup

This commit is contained in:
Neil
2026-09-15 20:54:16 -07:00
parent 6309be0c54
commit 3363360025
2 changed files with 2 additions and 5 deletions
@@ -41,6 +41,7 @@ import {
writeSshTerminalArtifact
} from './ssh-filesystem-terminal-artifact'
import { readSshDocPreviewFile } from './ssh-filesystem-doc-preview'
import { requestSshWorktreeMaterialization } from './ssh-worktree-materialization'
const WORKSPACE_SPACE_SCAN_TIMEOUT_MS = 130_000
export class SshFilesystemProvider implements IFilesystemProvider {
materializeWorktreePaths(
@@ -57,7 +58,6 @@ export class SshFilesystemProvider implements IFilesystemProvider {
private disposed = false
private loggedStreamFallback = false
readonly downloadFolder?: IFilesystemProvider['downloadFolder']
constructor(
private readonly connectionId: string,
private readonly mux: SshChannelMultiplexer,
@@ -76,12 +76,10 @@ export class SshFilesystemProvider implements IFilesystemProvider {
windowsRemotePaths
})
}
this.unsubscribeNotifications = mux.onNotification((method, params) =>
routeSshFilesystemWatchNotification(this.watchListeners, method, params)
)
}
dispose(): void {
if (this.disposed) {
return
@@ -262,7 +262,6 @@ export function WorktreeCopySection({
value={entry.name}
disabled={saving}
onSelect={() => commit(entry.name)}
className="px-3 py-2 font-mono text-xs"
>
{entry.name}
{entry.isDirectory ? '/' : ''}
@@ -296,7 +295,7 @@ export function WorktreeCopySection({
<Button
size="icon-xs"
variant="ghost"
className="shrink-0 text-muted-foreground"
className="shrink-0"
onClick={() => void removePath(path)}
aria-label={translate('worktreeCopies.remove', 'Remove {{path}}', { path })}
>