Fix VS Code detection for Insiders version

This commit is contained in:
Laurențiu Nicola 2023-10-21 19:08:41 +03:00
parent 954fb1d673
commit 094cecd3bd

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