Repository navigation
Check all IFS shortcuts in a single command - #3569
Merged
sebjulliand merged 1 commit intoDec 4, 2026
Merged
Conversation
The IFS shortcut decorator ran one `isDirectory` command per shortcut,
all at once, opening more SSH channels than the server allows
("Channel open failure: open failed").
`isDirectory` now also accepts an array of paths, checked in a single
command, and the decorator uses it to check every shortcut at once.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
sebjulliand
self-requested a review
December 4, 2026 08:31
sebjulliand
approved these changes
Dec 4, 2026
sebjulliand
left a comment
Member
There was a problem hiding this comment.
Works like a charm!
Thanks @phpdave
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Follow-up to #3422, related to #2998.
The IFS shortcut decorator runs one
isDirectorycommand per shortcut. VS Code requests all the decorations at once, so every shortcut opens its own SSH channel, and past sshd'sMaxSessions(10 by default) the server refuses them:(SSH) Channel open failure: open failed.IBMiContent.isDirectorynow also accepts an array of paths, checked in a single command (same approach ascountFiles).ShortcutDecorationProviderchecks all the shortcuts with one call and keeps the result until the next refresh.Tested with 30 IFS shortcuts and
bshas the default shell: 45 refused channels on connect before, none after (2 commands, about 280 ms each).Note:
countFileschecks each directory with(cd ... || echo 0). Underbsha failedcdends the subshell, so a missing directory prints nothing and the counts shift. Not changed here.How to test this PR
Channel open failureerror; the output shows a singletest -d ...command per refreshisDirectory)Checklist
console.logs I added🤖 Generated with Claude Code