You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eebd40f
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -668,9 +669,16 @@ function TerminalSessionViewport({
668
669
669
670
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- refreshes the imperative terminal's hovered link after filesystem metadata or editor permissions change
670
671
useEffect(()=>{
671
-
terminalRef.current?.refreshLinkActivation();
672
-
// oxlint-disable-next-line react/exhaustive-effect-dependencies -- The surface re-reads these values through canActivateTerminalLink's Effect Event.
673
-
},[canOpenHostEditor,linkPath,linkMetadata]);
672
+
if(!linkMetadataQuery){
673
+
terminalRef.current?.refreshLinkActivation();
674
+
return;
675
+
}
676
+
returnappAtomRegistry.subscribe(
677
+
linkMetadataQuery,
678
+
()=>terminalRef.current?.refreshLinkActivation(),
679
+
{immediate: true},
680
+
);
681
+
},[linkMetadataQuery]);
674
682
675
683
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- pushes visibility into the terminal surface before paint and consumes focus requests made while hidden
0 commit comments