Skip to content

Prompt user to increase terminal.integrated.scrollback on connect - #3575

Open
mklimiuk wants to merge 1 commit into
codefori:masterfrom
mklimiuk:feature/terminal-scrollback-prompt
Open

mklimiuk wants to merge 1 commit into
codefori:masterfrom
mklimiuk:feature/terminal-scrollback-prompt

Conversation

@mklimiuk

@mklimiuk mklimiuk commented Dec 6, 2026

Copy link
Copy Markdown

Changes

VS Code has default terminal.integrated.scrollback value = 1000
Because 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
Screenshot from 2026-12-06 20-58-35

Only updates the active scope setting, i.e. Workspace if exists, otherwise Global

User has option to select Don't ask again which persists globally in VS Code (since this is not a connection-specific setting)

Closes #2344

Summary by file

  • src/ui/Terminal.ts: Added Terminal.checkScrollback() to prompt when terminal.integrated.scrollback < 10000 and update the active scope (Workspace if overridden there, otherwise Global) or store permanent dismissal.
  • src/instantiate.ts: Subscribed Terminal.checkScrollback() to the connected event (non-blocking, with .catch(console.error)`).
  • src/api/configuration/storage/CodeForIStorage.ts: Added global hasMessageBeenShown, markMessageAsShown, and unmarkMessageAsShown helpers (mirroring ConnectionStorage) using a separate globalMessageShown key so dismissal persists across all IBM i connections.
  • src/testing/storage.ts: Added the "Global message shown tracking" runtime test case to StorageSuite covering the new CodeForIStorage methods.
  • l10n/bundle.l10n.json: Added the 5 new English strings used by the scrollback prompt

How to test this PR

  1. Make sure setting terminal.integrated.scrollback < 10000
  2. Connect to server
  3. New prompt should display
    3a. Selecting Update should set terminal.integrated.scrollback to 10000
    3b. Selecting Don't ask again should permanently block the popup from appearing again.

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

This branch has not been deployed

No deployments
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.

Increase VS Code scroll back by default

1 participant