Skip to content

Add CLPrompter extension integration for library list commands#3307

Open
bobcozzi wants to merge 2 commits into
codefori:masterfrom
bobcozzi:feature/clprompter-integration
Open

Add CLPrompter extension integration for library list commands#3307
bobcozzi wants to merge 2 commits into
codefori:masterfrom
bobcozzi:feature/clprompter-integration

Conversation

@bobcozzi

Copy link
Copy Markdown
Contributor

When a connection profile's setLibraryListCommand starts with ?, check if the CLPrompter extension (CozziResearch.clprompter) is installed. If it is, use CLPrompter for advanced IBM i command prompting; otherwise fall back to the existing simple input box.

bobcozzi added 2 commits June 18, 2026 14:38
… to be set to '1'

The RESULT case in the switch statement was missing a break, causing fall-through
into the CURRENT case. When QSYS2.QCMDEXC succeeds it returns '1', so without
the break, currentLibrary was set to '1' before being overwritten by the CURRENT
row from QSQLIBL(). If the setLibraryListCommand does not change *CURLIB (e.g.
IMPLIBL), QSQLIBL() may not return a CURRENT row, leaving currentLibrary='1'.

Also guard against overwriting config.currentLibrary with an empty string when
the command result does not include a current library entry.

Fixes codefori#3295
@bobcozzi bobcozzi temporarily deployed to testing_environment June 18, 2026 19:42 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant