Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7c11399

Browse files
committed
Auto merge of rust-lang#15786 - lnicola:detect-insiders, r=lnicola
fix: Fix VS Code detection for Insiders version Addresses rust-lang/rust-analyzer#15784.
2 parents 954fb1d + 094cecd commit 7c11399

File tree

1 file changed

+1
-1
lines changed
  • crates/rust-analyzer/src/bin

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn run_server() -> anyhow::Result<()> {
193193
let mut is_visual_studio_code = false;
194194
if let Some(client_info) = client_info {
195195
tracing::info!("Client '{}' {}", client_info.name, client_info.version.unwrap_or_default());
196-
is_visual_studio_code = client_info.name == "Visual Studio Code";
196+
is_visual_studio_code = client_info.name.starts_with("Visual Studio Code");
197197
}
198198

199199
let workspace_roots = workspace_folders

0 commit comments

Comments
 (0)