Repository navigation
Conversation
This branch has not been 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
VS Code has default
terminal.integrated.scrollbackvalue = 1000Because of this, large spool files are being truncated.
This PR introduces a new toast notification right after connection to inform user about this and recommend a setting update

Only updates the active scope setting, i.e.
Workspaceif exists, otherwiseGlobalUser has option to select
Don't ask againwhich persists globally in VS Code (since this is not a connection-specific setting)Closes #2344
Summary by file
src/ui/Terminal.ts: AddedTerminal.checkScrollback()to prompt whenterminal.integrated.scrollback < 10000and update the active scope (Workspaceif overridden there, otherwiseGlobal) or store permanent dismissal.src/instantiate.ts: SubscribedTerminal.checkScrollback()to theconnectedevent (non-blocking, with .catch(console.error)`).src/api/configuration/storage/CodeForIStorage.ts: Added globalhasMessageBeenShown,markMessageAsShown, andunmarkMessageAsShownhelpers (mirroringConnectionStorage) using a separateglobalMessageShownkey so dismissal persists across all IBM i connections.src/testing/storage.ts: Added the"Global message shown tracking"runtime test case toStorageSuitecovering the newCodeForIStoragemethods.l10n/bundle.l10n.json: Added the 5 new English strings used by the scrollback promptHow to test this PR
terminal.integrated.scrollback< 100003a. Selecting
Updateshould setterminal.integrated.scrollbackto 100003b. Selecting
Don't ask againshould permanently block the popup from appearing again.Checklist
console.logs I added