mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 00:02:24 +00:00
fix: complete worktree copy verification cleanup
This commit is contained in:
@@ -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 })}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user