It seems like you're experiencing an issue where the old commands aren't visible in your VS Code terminal. There could be a few reasons for this:
Terminal Buffer Limit: The terminal might have a limited buffer size, causing it to not display older commands. You can check the settings or preferences in VS Code to increase the buffer size if that's the case.
Clearing or Scrollback: Sometimes, terminal settings or extensions might be set to clear or limit the scrollback buffer, which prevents you from seeing old commands. Check your VS Code settings or any terminal-related extensions for options related to clearing or limiting the terminal history.
Terminal Shell Configuration: It's also possible that your shell (like PowerShell or Command Prompt) has settings that limit the history displayed. You might need to adjust settings within your specific shell configuration.
Extension Interference: Certain extensions might modify the behavior of the terminal in VS Code. Try disabling any terminal-related extensions temporarily to see if they are causing the issue.
To investigate further, consider checking the settings/preferences both in VS Code and within your terminal (such as PowerShell or Command Prompt) to ensure there are no limitations on the terminal history. If you're unsure about how to adjust these settings, feel free to share more details about your setup, and I can provide more specific guidance!
export PROMPT_COMMAND='history -a'
in any of your shell config files?