FG
💻 Software🛠️ Developer ToolsMicrosoft

Integrated Terminal Lags Intermittently

Fresh5 days ago
Mar 14, 20260 views
Confidence Score95%
95%

Problem

- VSCode Version: 1.48.2(macOS Stable) - OS Version: macOS Big Sur 11.0 Beta (20A5354i) (Public Beta Release 2) Steps to Reproduce: 1. Open Terminal 2. ~~Spam random keys until lag is experienced~~ Press enter, then continuously type (anything) for about 2 seconds. 3. Experience a very long stutter Does this issue occur when all extensions are disabled?: Yes This occurs on a public beta build of macOS 11. I've confirmed the same issue on two different MacBook Pro's on the same OS version, and same VS Code version. Attached is a performance profile. You can see the spike in the integrated terminal response time at around 23000ms - 24000ms Profile-20200826T124154.json.zip

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Optimize Integrated Terminal Performance in VSCode

Medium Risk

The lag in the integrated terminal of VSCode on macOS Big Sur 11.0 Beta is likely caused by compatibility issues between the terminal rendering engine and the public beta version of the OS. The terminal may struggle with rendering performance due to background processes or resource allocation issues inherent in beta software, leading to significant response time spikes during input.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Update VSCode to Latest Version

    Ensure that you are using the latest stable version of VSCode, as newer versions may contain performance improvements and bug fixes that could resolve the lag issue.

    bash
    code --install-extension ms-vscode.vscode-typescript-tslint-plugin
  2. 2

    Adjust Terminal Settings

    Modify the terminal settings in VSCode to reduce the rendering load. Go to Settings (Cmd + ,) and search for 'terminal.integrated.scrollback'. Set this value to a lower number, such as 1000, to limit the amount of scrollback history.

    json
    terminal.integrated.scrollback: 1000
  3. 3

    Disable GPU Acceleration

    Disabling GPU acceleration in VSCode can help mitigate rendering issues. Open the settings file (settings.json) and add or modify the following line: 'disable-hardware-acceleration': true.

    json
    'disable-hardware-acceleration': true
  4. 4

    Monitor System Resources

    Use Activity Monitor to check for any processes that may be consuming excessive CPU or memory resources while using the terminal. Close any unnecessary applications to free up system resources.

    bash
    open -a 'Activity Monitor'
  5. 5

    Revert to Stable macOS Version

    If the issue persists, consider reverting to a stable version of macOS until the beta version is officially released and confirmed to be stable. This can help eliminate OS-related performance issues.

    bash
    Backup your data and reinstall the stable macOS version from recovery.

Validation

Confirm the fix by testing the integrated terminal after each step. Check for lag during input and monitor the performance profile to see if the response time spikes have been reduced. If the issue persists after all steps, consider reverting to a stable OS version.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

vscodeideeditorbugverifiedterminalperf