Improve workspace navigation and render isolation
This commit is contained in:
@@ -3,21 +3,3 @@ export interface ExplorerCheckoutContext {
|
||||
cwd: string;
|
||||
isGit: boolean;
|
||||
}
|
||||
|
||||
let activeExplorerCheckout: ExplorerCheckoutContext | null = null;
|
||||
|
||||
export function getActiveExplorerCheckout(): ExplorerCheckoutContext | null {
|
||||
return activeExplorerCheckout;
|
||||
}
|
||||
|
||||
export function setActiveExplorerCheckout(checkout: ExplorerCheckoutContext | null) {
|
||||
if (
|
||||
activeExplorerCheckout?.serverId === checkout?.serverId &&
|
||||
activeExplorerCheckout?.cwd === checkout?.cwd &&
|
||||
activeExplorerCheckout?.isGit === checkout?.isGit
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
activeExplorerCheckout = checkout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user