<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.archlinux.jp/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Murase+Hijiri</id>
	<title>ArchWiki - 利用者の投稿記録 [ja]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.archlinux.jp/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Murase+Hijiri"/>
	<link rel="alternate" type="text/html" href="https://wiki.archlinux.jp/index.php/%E7%89%B9%E5%88%A5:%E6%8A%95%E7%A8%BF%E8%A8%98%E9%8C%B2/Murase_Hijiri"/>
	<updated>2026-04-13T06:16:35Z</updated>
	<subtitle>利用者の投稿記録</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.archlinux.jp/index.php?title=Visual_Studio_Code&amp;diff=39488</id>
		<title>Visual Studio Code</title>
		<link rel="alternate" type="text/html" href="https://wiki.archlinux.jp/index.php?title=Visual_Studio_Code&amp;diff=39488"/>
		<updated>2025-01-12T03:36:24Z</updated>

		<summary type="html">&lt;p&gt;Murase Hijiri: /* トラブルシューティング */ fcitx5が機能しなかった場合について追記&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:テキストエディタ]]&lt;br /&gt;
[[en:Visual Studio Code]]&lt;br /&gt;
[[pt:Visual Studio Code]]&lt;br /&gt;
[[ru:Visual Studio Code]]&lt;br /&gt;
[[zh-hans:Visual Studio Code]]&lt;br /&gt;
[https://code.visualstudio.com/ Code] とは、Microsoft によって開発されているクロスプラットフォームのテキストエディタで、Electron フレームワーク上でビルドされています。&#039;&#039;Visual Studio Code&#039;&#039; は、MIT ライセンス [https://github.com/microsoft/vscode/ Code - OSS] リポジトリの1つのバイナリディストリビューションで、Microsoft 特有のカスタマイズがなされており、[https://code.visualstudio.com/license プロプライエタリライセンス]のもとでリリースされています。この混合ライセンスに関する詳細は、[https://github.com/Microsoft/vscode/issues/60#issuecomment-161792005 この GitHub コメント]を見てください。また、MIT ライセンスの [https://vscodium.com/ VSCodium] というバイナリリリースもあり、これはコミュニティで運営されていて、[https://code.visualstudio.com/docs/getstarted/telemetry テレメトリ] がデフォルトで無効化されています。&lt;br /&gt;
&lt;br /&gt;
== インストール ==&lt;br /&gt;
&lt;br /&gt;
Visual Studio Code は以下のフレーバが提供されています:&lt;br /&gt;
&lt;br /&gt;
* {{App|Code - OSS|公式の Arch Linux オープンソースリリース。[https://open-vsx.org/ Open VSX] を有効化する設定が同梱されています。|https://github.com/microsoft/vscode|{{Pkg|code}}}}&lt;br /&gt;
* {{App|Visual Studio Code|プロプライエタリな Microsoft ブランドのリリース。|https://code.visualstudio.com/|{{AUR|visual-studio-code-bin}}}}&lt;br /&gt;
* {{App|VSCodium|コミュニティのオープンソースリリース。ソースコード内でテレメトリが無効化されており [https://github.com/VSCodium/vscodium/issues/267#issuecomment-542462446]、Open VSX の設定も同梱されています。|https://vscodium.com/|{{AUR|vscodium}}}}&lt;br /&gt;
&lt;br /&gt;
これらの異なるフレーバはすべて [https://github.com/VSCodium/vscodium/blob/master/README.md Code - OSS リポジトリ]からビルドされていますが、ライセンスとデフォルトの設定が異なっています。特に、プロプライエタリなビルドだけが、Microsoft の marketplace 使用と ([https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md OmniSharp C# Debugger] などの) Microsoft のプロプライエタリな拡張機能の使用を許可されています。後者はハンドシェイク機構によって強制されており、迂回することはできません。&amp;quot;Visual Studio Code&amp;quot; ブランドのオープンソースビルドとプロプライエタリビルドの違いに関する詳細は、[https://github.com/microsoft/vscode/wiki/Differences-between-the-repository-and-Visual-Studio-Code Code - OSS GitHub wiki] を見てください。&lt;br /&gt;
&lt;br /&gt;
=== 拡張機能のサポート ===&lt;br /&gt;
&lt;br /&gt;
Code の主な強みの1つとして、柔軟な API と [https://marketplace.visualstudio.com/vscode Visual Studio Marketplace] 上でホストされていますリッチな拡張エコシステムがあります。しかし、[https://aka.ms/vsmarketplace-ToU marketpace の利用規約] は Microsoft ブランドのリリースのみでの使用を許可しています。そのため、Code - OSS source には、設定済みの marketplace が含まれていません。上記のオープンソースのリリースは、Open VSIX 拡張レジストリを追加しますが、拡張機能の数は劣ります。この制限を回避することは可能です。&lt;br /&gt;
&lt;br /&gt;
{{Warning|Microsoft は[https://github.com/Microsoft/vscode/issues/31168 この問題に直接コメントしてはいません] が、ノンブランドの Code ビルドは、利用規約で定められている &amp;quot;対象範囲内の製品およびサービス&amp;quot; に含まれないと合理的に結論づけることができます。つまり、この行為は marketplace によって許可されていません。{{Bug|67780}} も参照してください。}}&lt;br /&gt;
&lt;br /&gt;
既知の回避策は:&lt;br /&gt;
* {{ic|.vsix}} ファイルから手動で拡張機能をインストールする。{{ic|.vsix}} ファイルは [https://marketplace.visualstudio.com/ Microsoft Visual Studio Code Marketplace] から入手できます。&lt;br /&gt;
* 拡張機能のメンテナに拡張機能を [https://open-vsx.org/ Open VSX registry] にアップロードするように依頼する。&lt;br /&gt;
* 次のパッケージのうち、あなたが使用しているビルドと関連するものを使って、Microsoft Visual Studio Code Marketplace を追加する: {{AUR|code-marketplace}}/{{AUR|vscodium-bin-marketplace}}/{{AUR|vscodium-marketplace}}/{{AUR|code-oss-marketplace}}。これらのパッケージは、パッケージ更新のたびにこの [https://github.com/VSCodium/vscodium/issues/418#issuecomment-643664182 Github コメント]にあるように {{ic|product.json}} ファイルにパッチを適用する [[Pacman フック]] をインストールします。&lt;br /&gt;
&lt;br /&gt;
{{Tip|{{ic|product.json}} の変更を実験する際に[https://stackoverflow.com/a/69985500 IDE をリロードするキーボードショートカット] を有効化すると便利です。}}&lt;br /&gt;
&lt;br /&gt;
== 使用方法 ==&lt;br /&gt;
&lt;br /&gt;
{{ic|code}} を実行して、アプリケーションを起動します (または、他のリリースを使用している場合、{{AUR|code-git}} は {{ic|code-git}} を、{{AUR|vscodium-bin}}/{{AUR|vscodium}}/{{AUR|vscodium-git}} は {{ic|codium}} を実行します)。&lt;br /&gt;
&lt;br /&gt;
何らかの理由で Visual Studio Code の複数のインスタンスを起動した場合、{{ic|-n}} フラグを使用できます。&lt;br /&gt;
&lt;br /&gt;
== 設定 ==&lt;br /&gt;
&lt;br /&gt;
{{Pkg|code}} は設定を {{ic|~/.config/Code - OSS/User/settings.json}} に保存します。&lt;br /&gt;
&lt;br /&gt;
{{AUR|visual-studio-code-bin}} は設定を {{ic|~/.config/Code/User/settings.json}} に保存します。&lt;br /&gt;
&lt;br /&gt;
{{AUR|vscodium}} や関連するパッケージは設定を {{ic|~/.config/VSCodium/User/settings.json}} に保存します。&lt;br /&gt;
&lt;br /&gt;
Code から Codium に (またはその逆) 移行する場合、設定ディレクトリはコピー/移動することができます。設定はコードベースの殆どを共有しているので、互換性があります。&lt;br /&gt;
&lt;br /&gt;
=== 統合ターミナル ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;View &amp;gt; Integrated Terminal&#039;&#039; や {{ic|Ctrl + `}} で統合ターミナルが開きます。&lt;br /&gt;
デフォルトでは追加の引数がない場合に [[Bash]] が使用されますが、この挙動は変更できます。&lt;br /&gt;
{{ic|terminal.integrated.shell.linux}} はデフォルトのシェルを設定し、{{ic|terminal.integrated.shellArgs.linux}} はそのシェルに渡される引数を設定します。&lt;br /&gt;
&lt;br /&gt;
例:&lt;br /&gt;
&lt;br /&gt;
{{hc|~/.config/Code/User/settings.json|&lt;br /&gt;
&amp;quot;terminal.integrated.shell.linux&amp;quot;: &amp;quot;/usr/bin/fish&amp;quot;,&lt;br /&gt;
&amp;quot;terminal.integrated.shellArgs.linux&amp;quot;: [&amp;quot;-l&amp;quot;,&amp;quot;-d 3&amp;quot;]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
外部ターミナルで統合シェルの引数を設定するとプロンプトがおかしくなる場合があります。その行を削除してこの問題を解決するか、外部ターミナルを使用してください。&lt;br /&gt;
&lt;br /&gt;
=== 外部ターミナル ===&lt;br /&gt;
&lt;br /&gt;
Arch のデフォルトターミナルとして [[Terminator]] を使っている場合、Visual Studio Code で次のようなエラーが発生します: {{ic|Unable to launch debugger worker process (vsdbg) through the terminal. spawn truecolor ENOENT}}。Visual Studio で使用するターミナルを別のターミナルに変更することで解決します (例: {{Pkg|gnome-terminal}})。&lt;br /&gt;
&lt;br /&gt;
{{ic|&amp;quot;terminal.external.linuxExec&amp;quot;: &amp;quot;Your alternative terminal&amp;quot;}} で実行デバッグのときに使用するデフォルトのターミナルを設定します。&lt;br /&gt;
&lt;br /&gt;
例:&lt;br /&gt;
&lt;br /&gt;
{{hc|~/.config/Code/User/settings.json|&lt;br /&gt;
&amp;quot;terminal.external.linuxExec&amp;quot;: &amp;quot;gnome-terminal&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Wayland でネイティブに実行する ===&lt;br /&gt;
&lt;br /&gt;
Visual Studio Code は Electron を使います。VSCode を Wayland 上でネイティブに動かす方法についての詳細は [[Wayland#Electron]] を見てください。しかし、一部のアプリケーションはシステムの electron を使用せず、独自のものを使用します。そのようなアプリケーションは標準の Electron フラグファイルを読み込みません。&lt;br /&gt;
&lt;br /&gt;
ユーザ毎の設定ファイルを使用する場合、{{AUR|visual-studio-code-bin}} と {{Pkg|code}} は両方 {{ic|~/.config/code-flags.conf}} を読み込みます。これらのパッケージは、これらのオプションを読み込む[https://aur.archlinux.org/cgit/aur.git/tree/visual-studio-code-bin.sh?h=visual-studio-code-bin パッチを当てたローダスクリプト]を使用するので、この挙動はこれらのパッケージ固有のものであることに注意してください。&lt;br /&gt;
&lt;br /&gt;
{{AUR|vscodium-bin}} を使用する場合、{{ic|~/.config/codium-flags.conf}} ファイルを使用してください。ターミナルから実行する場合、({{ic|vscodium}} ではなく) {{ic|codium}} で実行してください。さもないと、ネイティブな Wayland ウィンドウが使用されません。&lt;br /&gt;
&lt;br /&gt;
{{AUR|vscodium}} は設定ファイルを読み込みません (パッチを当てたローダスクリプトを使用しないからです)。&lt;br /&gt;
&lt;br /&gt;
=== ネイティブなファイル選択ダイアログ ===&lt;br /&gt;
&lt;br /&gt;
KDE を使用している場合、デフォルトでは VS Codium は GTK のファイル選択ダイアログを開きます。これを修正するには、[[環境変数]] {{ic|1=GTK_USE_PORTAL=1}} を設定してください。&lt;br /&gt;
&lt;br /&gt;
== トラブルシューティング ==&lt;br /&gt;
&lt;br /&gt;
=== KDE/Plasma でグローバルメニューが機能しない ===&lt;br /&gt;
&lt;br /&gt;
Visual Studio Code は DBus を使用してメニューを Plasma に渡します。{{Pkg|libdbusmenu-glib}} をインストールしてみてください。[https://github.com/microsoft/vscode/issues/34510#issuecomment-364896975]&lt;br /&gt;
&lt;br /&gt;
=== アイテムをゴミ箱に移動できない ===&lt;br /&gt;
&lt;br /&gt;
デフォルトでは、[https://electron.atom.io/ Electron] アプリは {{ic|gio}} を使用してファイルを削除します。[[Plasma]] が検出されると、代わりに {{ic|kioclient5}} が自動的に選択されます。[[環境変数]] {{ic|ELECTRON_TRASH}} を設定することにより、異なるゴミ箱の実装を使用できます。&lt;br /&gt;
&lt;br /&gt;
例えば、{{Pkg|trash-cli}} を使ってファイルを削除する場合:&lt;br /&gt;
&lt;br /&gt;
 $ ELECTRON_TRASH=trash-cli code&lt;br /&gt;
&lt;br /&gt;
本稿執筆時点で、Electron は {{ic|kioclient5}}、{{ic|kioclient}}、{{ic|trash-cli}}、{{ic|gio}} (デフォルト)、{{ic|gvfs-trash}} (非推奨) をサポートしています。詳細はこちらの [https://github.com/electron/electron/blob/master/docs/api/environment-variables.md#electron_trash-linux ドキュメントページ]&lt;br /&gt;
で確認できます。&lt;br /&gt;
&lt;br /&gt;
=== C# をデバッグできない ===&lt;br /&gt;
&lt;br /&gt;
C#[[.NET]] を ([https://www.omnisharp.net OmniSharp 拡張機能]を使って) デバッグしたい場合、Microsoft ブランドの .NET リリースを (AUR から) インストールする必要があります。これは、.NET Core デバッガーが公式の Microsoft 製品でのみ使用できるようにライセンスされているからだと思われます。[https://github.com/OmniSharp/omnisharp-vscode/issues/1431#issuecomment-297578930 GitHub のディスカッション]を見てください。&lt;br /&gt;
&lt;br /&gt;
オープンソース版のパッケージを利用している場合は、デバッグは静かなメッセージで失敗します。デバッグコンソールは最初のメッセージが出力されるだけです:&lt;br /&gt;
&lt;br /&gt;
{{bc|You may only use the Microsoft .NET Core Debugger (vsdbg) with&lt;br /&gt;
Visual Studio Code, Visual Studio or Visual Studio for Mac software&lt;br /&gt;
to help you develop and test your applications.}}&lt;br /&gt;
&lt;br /&gt;
オープンソース版のパッケージでデバッグする場合、{{AUR|netcoredbg}} を利用できます。VS Code で実行するには、以下の設定をこのプロジェクトの .NET Core launch 設定に追加してください:&lt;br /&gt;
&lt;br /&gt;
{{hc|./.vscode/launch.json|&lt;br /&gt;
&amp;quot;configurations&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
...&lt;br /&gt;
    &amp;quot;pipeTransport&amp;quot;: {&lt;br /&gt;
        &amp;quot;pipeCwd&amp;quot;: &amp;quot;${workspaceFolder}&amp;quot;,&lt;br /&gt;
        &amp;quot;pipeProgram&amp;quot;: &amp;quot;/usr/bin/bash&amp;quot;,&lt;br /&gt;
        &amp;quot;pipeArgs&amp;quot;: [&amp;quot;-c&amp;quot;],&lt;br /&gt;
        &amp;quot;debuggerPath&amp;quot;: &amp;quot;/usr/bin/netcoredbg&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
...&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Unable to open .csproj with OmniSharp server, invalid Microsoft.Common.props location ===&lt;br /&gt;
&lt;br /&gt;
mono から適切な SDK バージョンの props に変更する必要があります。&lt;br /&gt;
&lt;br /&gt;
{{hc|/opt/dotnet/sdk/{VERSION}/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props|&lt;br /&gt;
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
インポートを次のように変更します。&lt;br /&gt;
&lt;br /&gt;
{{hc|/opt/dotnet/sdk/{VERSION}/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props|&lt;br /&gt;
/opt/dotnet/sdk/{VERSION}/Current/Microsoft.Common.props&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== MSBuild が見つからないと OmniSharp でエラーが発生する ===&lt;br /&gt;
&lt;br /&gt;
[https://github.com/OmniSharp/omnisharp-roslyn#introduction OmniSharp introduction] で説明されている通り、Arch Linux ユーザは {{Pkg|mono-msbuild}} パッケージをインストールする必要があります。それがないと、以下のようなエラーが発生するかもしれません:&lt;br /&gt;
&lt;br /&gt;
{{hc|1=OmniSharp Log|2=&lt;br /&gt;
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator&lt;br /&gt;
        Registered MSBuild instance: StandAlone 15.0 - &amp;quot;~/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/msbuild/15.0/Bin&amp;quot;&lt;br /&gt;
            MSBuildExtensionsPath = /usr/lib/mono/xbuild&lt;br /&gt;
            BypassFrameworkInstallChecks = true&lt;br /&gt;
            CscToolPath = ~/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/msbuild/15.0/Bin/Roslyn&lt;br /&gt;
            CscToolExe = csc.exe&lt;br /&gt;
            MSBuildToolsPath = ~/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/msbuild/15.0/Bin&lt;br /&gt;
            TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks&lt;br /&gt;
System.TypeLoadException: Could not load type of field &#039;OmniSharp.MSBuild.ProjectManager:_queue&#039; (13) due to: Could not load file or assembly &#039;System.Threading.Tasks.Dataflow, Version=4.5.24.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&#039; or one of its dependencies.&lt;br /&gt;
...}}&lt;br /&gt;
&lt;br /&gt;
もしかするとビルドできるかもしれません (おそらく、{{Pkg|mono}} がインストールされているかどうかにも依存しているのでしょう)&lt;br /&gt;
&lt;br /&gt;
Omnisharp には独自の mono バージョンが同梱されています。Omnisharp がインストール済みの mono を見つけられない場合で、マシンにインストールされている &amp;quot;グローバルな&amp;quot; mono を検索するよう omnisharp を設定したい場合、以下を settings.json に追加してください:&lt;br /&gt;
{{hc|1=settings.json|2=&amp;quot;omnisharp.useGlobalMono:&amp;quot;always&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;quot;Retry as Sudo&amp;quot; での保存がうまくいかない ===&lt;br /&gt;
&lt;br /&gt;
Microsoft は Arch パッケージのパッケージング方法 (バンドルされた Electron ではなくネイティブ) をサポートしていないため、この機能は {{Pkg|code}} パッケージでは動きません。詳しくは {{Bug|61516}} と[https://github.com/Microsoft/vscode/issues/70403 上流のバグレポート]をご確認ください。&lt;br /&gt;
&lt;br /&gt;
バイナリリリースの {{AUR|visual-studio-code-bin}} にはこの問題はなく、この機能は動作します。&lt;br /&gt;
&lt;br /&gt;
===  キーボードのバリアントやキーマッピングがマッピングされない ===&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-linux-keybindings GitHub の wiki] によると、&lt;br /&gt;
&lt;br /&gt;
: 一部の Linux ウィンドウマネージャでキーボードレイアウトを切り替えても、VS Code が現在のキーボードレイアウトを読み取るために使用する低レベルの X ウィンドウ API に変更が生じません。このため、VS Code は、現在アクティブなキーボードレイアウトではなく、他の設定されたキーボードレイアウトの 1 つを読み取ることになる場合があることを意味します。PR 歓迎...&lt;br /&gt;
&lt;br /&gt;
wiki によると、2 つの可能な解決策があります。&lt;br /&gt;
&lt;br /&gt;
# {{ic|setxkbmap -query}} が最初のキーボードレイアウトとして、VS Codeで作業したいものを返すことを確認する。&lt;br /&gt;
# {{ic|&amp;quot;keyboard.dispatch&amp;quot;: &amp;quot;keyCode&amp;quot;}} を使用し、VS Codeを再起動します。これで、VS Code がキーボードレイアウトを決定しようとするのを防ぐことができます。&lt;br /&gt;
&lt;br /&gt;
=== Command &amp;quot;...&amp;quot; not found ===&lt;br /&gt;
&lt;br /&gt;
Microsoft ブランドのリリースでは、拡張機能によってアクセスされる提案された特定の API の使用を許可されている拡張機能が {{ic|product.json}} ファイルにリストアップされています。Code - OSS と VSCodium にはこれらの値が存在しません (しかし、これはライセンスの問題というわけではないようです)。Marketplace の強制的な有効化とは異なり、以下の回避策は Microsoft によって推奨されています [https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#vs-code-oss-issues]。&lt;br /&gt;
&lt;br /&gt;
この問題は、パッケージアップデートの時にそのファイルにパッチを当てる Pacman フックを導入することで解決できます:&lt;br /&gt;
&lt;br /&gt;
* {{Pkg|code}} の場合、{{AUR|code-features}} を[[インストール]]してください&lt;br /&gt;
* {{AUR|vscodium}} の場合、{{AUR|vscodium-features}} をインストールしてください&lt;br /&gt;
* {{AUR|vscodium-bin}} の場合、{{AUR|vscodium-bin-features}} をインストールしてください&lt;br /&gt;
&lt;br /&gt;
また、関連するエントリを {{ic|product.json}} ファイルの {{ic|extensionAllowedProposedApi}} セクションに手動で追加することもできます:&lt;br /&gt;
&lt;br /&gt;
* {{Pkg|code}} の場合、{{ic|/usr/lib/code/product.json}} を編集してください&lt;br /&gt;
* {{AUR|vscodium}} の場合、{{ic|/usr/share/vscodium/resources/app/product.json}} を編集してください&lt;br /&gt;
* {{AUR|vscodium-bin}} の場合、{{ic|/opt/vscodium-bin/resources/app/product.json}} を編集してください&lt;br /&gt;
&lt;br /&gt;
Live Share を機能させる手動設定の例は [https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#vs-code-oss-issues]:&lt;br /&gt;
&lt;br /&gt;
{{hc|product.json|&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;extensionAllowedProposedApi&amp;quot;: [&lt;br /&gt;
    &amp;quot;ms-vsliveshare.vsliveshare&amp;quot;,&lt;br /&gt;
    &amp;quot;ms-vscode.node-debug&amp;quot;,&lt;br /&gt;
    &amp;quot;ms-vscode.node-debug2&amp;quot;&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
最後に、[https://github.com/Microsoft/vscode-pull-request-github/wiki#3-why-isnt-the-extension-starting GitHub のプルリクエスト拡張で説明されているように]、コマンドラインフラグを使ってこれらのオプションを有効化することもできます。&lt;br /&gt;
&lt;br /&gt;
==== VS Live Share で API が欠けている ====&lt;br /&gt;
&lt;br /&gt;
{{ic|product.json}} を編集して上記の解決策を試すか、以下のオプションで VS Code を開いてください:&lt;br /&gt;
&lt;br /&gt;
 $ code --enable-proposed-api ms-vsliveshare.vsliveshare&lt;br /&gt;
&lt;br /&gt;
また、この拡張機能を機能させるには、[https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#tips-for-community-supported-distros] にリストアップされている依存関係をインストールする必要があります。&lt;br /&gt;
&lt;br /&gt;
==== Command &#039;remote-containers.openFolder&#039; not found ====&lt;br /&gt;
&lt;br /&gt;
{{bug|63374}} でコメントされているように、remote-containers API を有効化して VS Code を開いてください:&lt;br /&gt;
&lt;br /&gt;
 $ code-oss --enable-proposed-api ms-vscode-remote.remote-containers&lt;br /&gt;
&lt;br /&gt;
==== Command &#039;GitHub Pull Requests: Configure Remotes...&#039; resulted in an error (command &#039;pr.configureRemotes&#039; not found) ====&lt;br /&gt;
&lt;br /&gt;
VS Code を以下のオプションで開いてください:&lt;br /&gt;
&lt;br /&gt;
 $ code --enable-proposed-api GitHub.vscode-pull-request-github&lt;br /&gt;
&lt;br /&gt;
=== Git: ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory ===&lt;br /&gt;
&lt;br /&gt;
このエラーは、ssh-key が暗号化されていて ssh エージェントを使用できないため発生します。[https://github.com/microsoft/vscode/issues/57488 バグレポート]を見てください。この問題は、[[SSH 鍵#x11-ssh-askpass]] のようなダイアログプロバイダか、代替品 (例えば、KDE の {{Pkg|ksshaskpass}}) をインストールすることで解決できます。&lt;br /&gt;
&lt;br /&gt;
注意点としては、&#039;&#039;ksshaskpass&#039;&#039; の場合、{{ic|/usr/lib/ssh/ssh-askpass}} からリンクを貼って VSCode がそれを見つけられるようにする必要があります:&lt;br /&gt;
&lt;br /&gt;
 # ln /usr/bin/ksshaskpass /usr/lib/ssh/ssh-askpass&lt;br /&gt;
&lt;br /&gt;
または、以下の[[環境変数]]をシェルで設定してください ([https://github.com/microsoft/vscode/issues/57488#issuecomment-1413903793] を参照):&lt;br /&gt;
&lt;br /&gt;
 GIT_ASKPASS=ksshaskpass&lt;br /&gt;
 SSH_ASKPASS=ksshaskpass&lt;br /&gt;
 SSH_ASKPASS_REQUIRE=prefer&lt;br /&gt;
&lt;br /&gt;
VSCode の内部 &#039;&#039;git-askpass&#039;&#039; を無効化するには、以下を追加してください:&lt;br /&gt;
&lt;br /&gt;
{{hc|~/.config/Code - OSS/User/settings.json|2=&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;git.useIntegratedAskPass&amp;quot;: false&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== 統合ターミナルで文字が切れる ===&lt;br /&gt;
&lt;br /&gt;
幅が大きすぎる文字は、切れてしまう場合があります。例えば、Deno stack-traces のイタリック太文字テキストなどです。&lt;br /&gt;
&lt;br /&gt;
この問題は、&amp;quot;terminal.integrated.rendererType&amp;quot; を &amp;quot;experimentalWebgl&amp;quot; に設定することで回避できます。&lt;br /&gt;
&lt;br /&gt;
=== Wayland でテキストがぼやける ===&lt;br /&gt;
&lt;br /&gt;
Visual Studio Code はデフォルトで Xwayland 下で実行されます。そのせいで、HiDPI スクリーンを使用している場合にテキストがぼやける場合があります。この問題を修正するには、Electron を Wayland 下で実行するように強制してみてください。[[#Wayland でネイティブに実行する]] を見てください。&lt;br /&gt;
&lt;br /&gt;
あるいは、あなたの Wayland 環境が Xwayland アプリケーションをスケーリングせずに実行するオプションを提供している場合、この問題を回避できます。この場合、Visual Studio Code を {{ic|1=--force-device-scale-factor=}} オプション付きで実行して画面に合う適切なスケールを使用してください。&lt;br /&gt;
&lt;br /&gt;
例えば、スケールファクタ 2 の場合は:&lt;br /&gt;
&lt;br /&gt;
 $ code --force-device-scale-factor=2&lt;br /&gt;
&lt;br /&gt;
=== No such interface“org.freedesktop.Secret.Collection” ===&lt;br /&gt;
&lt;br /&gt;
[https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues settings-sync#_troubleshooting-keychain-issues] を参照してください。&lt;br /&gt;
&lt;br /&gt;
=== VSCodium 使用時に Github との認証に失敗する ===&lt;br /&gt;
&lt;br /&gt;
Github アカウントに接続する場合、[https://github.com/VSCodium/vscodium/issues/401#issuecomment-631502370 このコメント]にあるように URLの &amp;quot;vscodium&amp;quot; を &amp;quot;vscode&amp;quot; に変更します。次に、識別トークンを VSCodium にコピーします。それでも失敗する場合は、[https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues Visual Studio Code docs] や [https://github.com/microsoft/vscode/issues/92972#issuecomment-625751232 Github] で説明されているように、{{pkg|gnome-keyring}} のようなキーリングをインストールするか、新しいキーリングを作成してください。&lt;br /&gt;
&lt;br /&gt;
=== An OS keyring couldn&#039;t be identified ===&lt;br /&gt;
&lt;br /&gt;
i3 などの一部のデスクトップ環境では、VSCode がキーリングの検出に失敗します。gnome-keyring を使用している場合、以下の設定を追加することで VSCode に gnome-keyring を強制的に使用させることができます:&lt;br /&gt;
&lt;br /&gt;
{{hc|~/.vscode-oss/argv.json|2=&lt;br /&gt;
{&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;quot;password-store&amp;quot;: &amp;quot;gnome&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
上記の設定ファイルのパスは {{pkg|code}} パッケージの場合です。別の VSCode フレーバを使用している場合は、{{ic|.vscode-oss}} の部分を書き換える必要があります。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== waylandでfcitx5が機能しない ===&lt;br /&gt;
[[環境変数]] {{ic|ELECTRON_OZONE_PLATFORM_HINT}} が {{ic|auto}} もしくは {{ic|wayland}} に設定されていることを確認してください。そのうえで、[https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland#Chromium_.2F_Electron fcitxのwiki]に示されているように、例えばtext-input-v1を使用している場合は、{{ic|--enable-wayland-ime}} オプションをつけて起動してください。[https://wiki.archlinux.jp/index.php/Visual_Studio_Code#Wayland_.E3.81.A7.E3.83.8D.E3.82.A4.E3.83.86.E3.82.A3.E3.83.96.E3.81.AB.E5.AE.9F.E8.A1.8C.E3.81.99.E3.82.8B Visual Studio Code#Waylandでネイティブに実行する]の通り、このコマンドラインオプションを渡す操作は以下のように自動化できます：&lt;br /&gt;
{{hc|~/.config/code-flags.conf|2=&lt;br /&gt;
--enable-wayland-ime=true&lt;br /&gt;
}}&lt;br /&gt;
{{TranslationStatus|Visual Studio Code|2023-10-05|787498}}&lt;/div&gt;</summary>
		<author><name>Murase Hijiri</name></author>
	</entry>
</feed>