Auto merge of #15786 - lnicola:detect-insiders, r=lnicola

fix: Fix VS Code detection for Insiders version

Addresses https://github.com/rust-lang/rust-analyzer/discussions/15784.
This commit is contained in:
bors 2023-10-21 16:10:22 +00:00
commit 7c11399b6b

View file

@ -193,7 +193,7 @@ fn run_server() -> anyhow::Result<()> {
let mut is_visual_studio_code = false;
if let Some(client_info) = client_info {
tracing::info!("Client '{}' {}", client_info.name, client_info.version.unwrap_or_default());
is_visual_studio_code = client_info.name == "Visual Studio Code";
is_visual_studio_code = client_info.name.starts_with("Visual Studio Code");
}
let workspace_roots = workspace_folders