vscode: app id can also be "code"

This commit is contained in:
Alex Janka 2024-10-30 08:58:08 +11:00
parent cca92edd65
commit 92544b9e22

View file

@ -149,11 +149,10 @@ async fn main() -> Res<()> {
} }
} }
if node if node.app_id.as_ref().is_some_and(|app_id| {
.app_id app_id.eq_ignore_ascii_case("code-url-handler")
.as_ref() || app_id.eq_ignore_ascii_case("code")
.is_some_and(|app_id| app_id.eq_ignore_ascii_case("code-url-handler")) }) {
{
recent_code = Some((std::time::Instant::now(), node.id)); recent_code = Some((std::time::Instant::now(), node.id));
} else if recent_code.is_some_and(|(t, _)| { } else if recent_code.is_some_and(|(t, _)| {
std::time::Instant::now().duration_since(t) std::time::Instant::now().duration_since(t)