vscode: app id can also be "code"
This commit is contained in:
parent
cca92edd65
commit
92544b9e22
|
@ -149,11 +149,10 @@ async fn main() -> Res<()> {
|
|||
}
|
||||
}
|
||||
|
||||
if node
|
||||
.app_id
|
||||
.as_ref()
|
||||
.is_some_and(|app_id| app_id.eq_ignore_ascii_case("code-url-handler"))
|
||||
{
|
||||
if node.app_id.as_ref().is_some_and(|app_id| {
|
||||
app_id.eq_ignore_ascii_case("code-url-handler")
|
||||
|| app_id.eq_ignore_ascii_case("code")
|
||||
}) {
|
||||
recent_code = Some((std::time::Instant::now(), node.id));
|
||||
} else if recent_code.is_some_and(|(t, _)| {
|
||||
std::time::Instant::now().duration_since(t)
|
||||
|
|
Loading…
Reference in a new issue