microsoft / microsoft/vscode

Integrated terminal requires manual restart on every VS Code startup

Open
#325,546 1 comment 2 reactions 1 assignee Claimed by @anthonykim1 View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: No

- VS Code Version: 1.128.0 (user setup)
- Commit: fc3def6774c76082adf699d366f31a557ce5573f
- OS Version: Windows_NT x64 10.0.26200
- Electron: 42.5.0
- Chromium: 148.0.7778.271
- Node.js: 24.17.0

Steps to Reproduce:

1. Install and enable GitHub Copilot, Python Debugger and Git integration.
2. Open a workspace containing a Python project.
3. Start VS Code.
4. Open or restore the integrated PowerShell terminal.
5. Observe the terminal environment warning.
6. The warning states that extensions want to restart the terminal in order to contribute to its environment.
7. Manually restart the terminal.
8. Close VS Code completely.
9. Open the same workspace again.
10. The same warning appears again and another manual terminal restart is required.

Actual behavior:

The integrated terminal requests a manual restart on every VS Code startup because extension environment contributions are applied after the terminal has already been created or restored.

Restarting the terminal resolves the warning only for the current VS Code session.

Extensions listed in the terminal environment popup:

- GitHub Copilot
- Python Debugger
- Git

Expected behavior:

The terminal should be created only after the required extension environment contributions are available, or VS Code should automatically recreate it before the user begins interacting with it.

If this behavior is intentional, VS Code should provide an option to automatically recreate newly opened or restored terminals when extension environment contributions require it.

Impact:

The user must perform the same manual terminal restart every time VS Code starts.

The issue has occurred consistently across multiple VS Code releases.

Screenshot attached.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.