Skip to content

Commit 0d11eb9

Browse files
m4airm4air
authored andcommitted
fix(ssh): keep a browsed remote path untrimmed
1 parent e9c8a5e commit 0d11eb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/shared/rpc-contract/ssh-params.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export const SshTargetAdd = z.object({ target: SshEditableTargetInput })
4949
/** Replaces the target's editable fields; an omitted optional field is cleared. */
5050
export const SshTargetUpdate = SshTarget.extend({ target: SshEditableTargetInput })
5151

52+
// Why untrimmed: a remote folder name may legitimately end in a space.
5253
export const SshBrowseDir = SshTarget.extend({
53-
dirPath: boundedText(4096)
54+
dirPath: z.string().min(1).max(4096)
5455
})
5556

5657
export const RepoAddRemote = z.object({

0 commit comments

Comments
 (0)