diff --git a/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx b/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx index 4f89937776..41e1043931 100644 --- a/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx +++ b/libs/remix-ui/statusbar/src/lib/remixui-statusbar-panel.tsx @@ -27,7 +27,8 @@ type GetCurrentWorkspace = { export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { const [showScamDetails, setShowScamDetails] = useState(false) const [scamAlerts, setScamAlerts] = useState([]) - const [workspaceName, setWorkspaceName] = useState('') + const [gitBranchName, setGitBranchName] = useState('') + const [isAiActive, setIsAiActive] = useState(false) const { refs, context, floatingStyles } = useFloating({ open: showScamDetails, onOpenChange: setShowScamDetails, @@ -53,12 +54,12 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { } }, []) - const t = async () => { - const isGit = await statusBarPlugin.call('fileManager', 'isGitRepo') - if (!isGit) return - const repoName = await statusBarPlugin.call('filePanel', 'getCurrentWorkspace') - repoName && repoName?.name.length > 0 ? statusBarPlugin.currentWorkspaceName = repoName.name : statusBarPlugin.currentWorkspaceName = '' - return { repoWorkspaceName: repoName } + const lightAiUp = async () => { + const aiActive = await statusBarPlugin.call('settings', 'get', 'settings/copilot/suggest/activate') + console.log('ai', aiActive) + if (!aiActive) return + setIsAiActive(aiActive) + return aiActive } return ( @@ -70,12 +71,12 @@ export function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { )}
- +
- +