OpenSource-Hub

vscode

アプリケーション

microsoft/vscode

VS Code は Microsoft が開発したクロスプラットフォームのオープンソースコードエディターです。

概要

Visual Studio Code は、コードエディターのシンプルさと、デバッグ、タスク実行、バージョン管理などの強力な開発機能を兼ね備えています。Electron をベースに構築されており、豊富な拡張機能エコシステムをサポートしています。

README プレビュー

# 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/vsc

FAQ (5)

トラブル対応
VS Code の Source Control Graph でコミットが展開されず、"The 'path' argument must be of type string. Received undefined" というエラーが表示される問題を修正する方法

これは VS Code 1.108 のバグで、名前変更されたファイルを含むコミットに影響します。Git diff の名前変更検出により Source Control Graph のレンダリングが壊れ、'Copy Commit Hash' も壊れます。修正方法は2つあります:

**回避策(即時):** settings.json に "git.similarityThreshold": 100 を設定します(Ctrl+Shift+P → 'Preferences: Open User Settings (JSON)')。これにより名前変更検出が無効になるため、グラフと diff エディターが正常にレンダリングされます。欠点: 名前変更されたファイルは、名前変更としてではなく、個別の削除/追加のペアとして表示されます。

**恒久的な修正:** このバグは VS Code Insiders ビルドで修正されており、最初の 1.108.x リカバリリリースに含まれています。リカバリリリースが公開されたら VS Code を更新し、その後 git.similarityThreshold の回避策を削除してください。

注意: 関連する Ctrl+Shift+G キーバインドの障害は、issue #286669 で別途追跡されています。

参照 Issue #286776
トラブル対応
タブにホバーしたときにVS Codeのタブ幅がガタついたり変わったりするのはなぜですか?

これは VS Code Insiders 1.142.0 におけるリグレッションです(PR #340635 で導入されました)。workbench.editor.tabSizing が "fixed" または "shrink" に設定され、かつ workbench.editor.tabActionReserveSpace が false の場合に発生します。変更されておらずピン留めもされていないタブにホバーすると、その幅が変動し、タブバーが不安定になります。このバグは PR #341337 で修正されたため、VS Code Insiders を最新のビルドに更新してください。一時的な回避策として、settings.json に "workbench.editor.tabActionReserveSpace": true を設定するか、"workbench.editor.tabSizing": "fit" を使用してください。

参照 Issue #340854
トラブル対応
VS Code 1.121.0 アップデート後に Windows Server 2022 で Remote-SSH サーバーのインストールに失敗した場合の修正方法

これはVS Code 1.121.0の既知の問題です。解決するには、VS Code 1.120.0にダウングレードするか、Windows Serverホスト上のリモートサーバーフォルダ(例:~/.vscode-server または %USERPROFILE%\\.vscode-server)を手動で削除し、再接続して新規インストールをトリガーしてください。恒久的な修正が提供される公式issue #318239を監視してください。

参照 Issue #318239
トラブル対応
macOSでVS Code 1.123.0のRemote-SSH接続エラー'connect EINVAL'を修正する方法は?

これはバージョン1.123.0における既知のリグレッションです。回避策:1.122.0にダウングレードする、Insidersビルドを使用する、またはリモートサーバーの.vscode-serverフォルダをクリーンアップして再接続してください。恒久的な解決については、issue #319752を追跡してください。

参照 Issue #319752
トラブル対応
VS Code Copilot Chat で MCP sampling/createMessage リクエストが許可プロンプトなしでキャンセルされる問題を修正する方法

VS Code 1.141.0 では、Copilot Harness/Agent Host がサンプリング同意ダイアログを表示する代わりに、MCP の sampling/createMessage リクエストを無条件に拒否する場合があります。回避策として、Settings (JSON) を開き、次のように設定します: "chat.defaultToCopilotHarness": false、"chat.editor.preferCopilotHarness": false、"chat.editor.localAgent.enabled": false。ファイルを保存し、VS Code を再読み込みして、MCP ツールのシナリオを再度実行します。すると、サンプリングの許可プロンプトが表示され、承認されたサンプリングリクエストが実行されるはずです。報告者は WinDbg MCP サーバーでこの組み合わせを検証しましたが、原因となる個別の設定は特定されませんでした。スタンドアロンの Copilot CLI は影響を受けません。恒久的な修正には、MCP サンプリングリクエストを自動的に拒否するのではなく、それらをサポートする Agent Host のアップデートが必要です。

参照 Issue #340796