- Move Open in editor shortcut handling into a shared hook - Show Open in picker inside the thread details panel and restyle PR actions - Tighten popover positioning for the panel layout
14 lines
446 B
TypeScript
14 lines
446 B
TypeScript
import type { EnvironmentId } from "@t3tools/contracts";
|
|
|
|
export function shouldShowOpenInPicker(input: {
|
|
readonly activeProjectName: string | undefined;
|
|
readonly activeThreadEnvironmentId: EnvironmentId;
|
|
readonly primaryEnvironmentId: EnvironmentId | null;
|
|
}): boolean {
|
|
return (
|
|
Boolean(input.activeProjectName) &&
|
|
input.primaryEnvironmentId !== null &&
|
|
input.activeThreadEnvironmentId === input.primaryEnvironmentId
|
|
);
|
|
}
|