mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
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:
commit
7c11399b6b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue