Skip to content

Commit 094cecd

Browse files
committed
Fix VS Code detection for Insiders version
1 parent 954fb1d commit 094cecd

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)