vscode
Applicationmicrosoft/vscode
Visual Studio Code is a lightweight but powerful source code editor.
Overview
Visual Studio Code combines the simplicity of a code editor with powerful development features like debugging, task running, and version control. It is built on Electron and supports a rich ecosystem of extensions. It is available for Windows, macOS, and Linux.
README Preview
# Visual Studio Code - Open Source ("Code - OSS")
[](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc)
[](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug)
[](https://gitter.im/Microsoft/vscode)
## The Repository
This repository ("`Code - OSS`") is where we (Microsoft) develop the [Visual Studio Code](https://code.visualstudio.com) product together with the community. Not only do we work on code and issues here, but we also publish our [roadmap](https://github.com/microsoft/vscode/wiki/Roadmap), [monthly iteration plans](https://github.com/microsoft/vscode/wiki/Iteration-Plans), and our [endgame plans](https://github.com/microsoft/vscode/wiki/Running-the-Endgame). This source code is available to everyone under the standard [MIT license](https://github.com/microsoft/vscode/blob/main/LICENSE.txt).
## Visual Studio Code
[Visual Studio Code](https://code.visualstudio.com) is a distribution of the `Code - OSS` repository with Microsoft-specific customizations released under a traditional [Microsoft product license](https://code.visualstudio.com/License/).
[Visual Studio Code](https://code.visualstudio.com) combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.
Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on [Visual Studio Code's website](https://code.visualstudio.com/Download). To get the latest releases every day, install the [Insiders build](https://code.visualstudio.com/insiders).
## Contributing
There are many ways in which you can participate in this project, for example:
* [Submit bugs and feature requests](https://github.com/microsoft/vscFAQ (5)
TroubleshootingHow to fix VS Code Source Control Graph not expanding commits and showing "The 'path' argument must be of type string. Received undefined" error?
This is a bug in VS Code 1.108 affecting commits that contain renamed files — the Git diff rename detection breaks the Source Control Graph rendering and also breaks 'Copy Commit Hash'. Two fixes:
**Workaround (immediate):** Set "git.similarityThreshold": 100 in your settings.json (Ctrl+Shift+P → 'Preferences: Open User Settings (JSON)'). This disables rename detection, so the graph and diff editor render normally. Downside: renamed files will show as separate delete/add pairs instead of renames.
**Permanent fix:** The bug is fixed in the VS Code Insiders build and is included in the first 1.108.x recovery release. Update VS Code when the recovery release ships, then remove the git.similarityThreshold workaround.
Note: The related Ctrl+Shift+G keybinding failure is tracked separately in issue #286669.
TroubleshootingWhy does the VS Code tab width jitter or change when hovering over tabs?
This is a regression in VS Code Insiders 1.142.0 (introduced by PR #340635). It occurs when workbench.editor.tabSizing is set to "fixed" or "shrink" and workbench.editor.tabActionReserveSpace is false — hovering an unmodified, unpinned tab then shifts its width, making the tab bar unstable. The bug was fixed by PR #341337, so update VS Code Insiders to the latest build. As a temporary workaround, set "workbench.editor.tabActionReserveSpace": true in settings.json, or use "workbench.editor.tabSizing": "fit".
TroubleshootingHow to fix Remote-SSH server installation failure on Windows Server 2022 after VS Code 1.121.0 update?
This is a known issue in VS Code 1.121.0. To resolve, either downgrade to VS Code 1.120.0, or manually delete the remote server folder (e.g., ~/.vscode-server or %USERPROFILE%\\.vscode-server) on the Windows Server host and reconnect to trigger a fresh installation. Monitor the official issue #318239 for a permanent fix.
TroubleshootingHow to fix VS Code 1.123.0 Remote-SSH connection error 'connect EINVAL' on macOS?
This is a known regression in version 1.123.0. Workarounds: Downgrade to 1.122.0, use the Insiders build, or clean the remote server's .vscode-server folder and reconnect. Track issue #319752 for a permanent resolution.
TroubleshootingHow to fix MCP sampling/createMessage requests being cancelled without a permission prompt in VS Code Copilot Chat?
In VS Code 1.141.0, the Copilot Harness/Agent Host can unconditionally reject MCP sampling/createMessage requests instead of showing the sampling consent dialog. As a workaround, open Settings (JSON) and set: "chat.defaultToCopilotHarness": false, "chat.editor.preferCopilotHarness": false, and "chat.editor.localAgent.enabled": false. Save the file, reload VS Code, and run the MCP tool scenario again. The sampling permission prompt should then appear and approved sampling requests should execute. The reporter verified this combination with a WinDbg MCP server; the individual responsible setting was not isolated. Standalone Copilot CLI is unaffected. A permanent fix requires an Agent Host update that supports MCP sampling requests rather than rejecting them automatically.