|
|
@ -7,6 +7,7 @@ import { PluginProfile, StatusBarInterface } from '../../types' |
|
|
|
import { RemixUIStatusBar } from '@remix-ui/statusbar' |
|
|
|
import { RemixUIStatusBar } from '@remix-ui/statusbar' |
|
|
|
import { FilePanelType } from '@remix-ui/workspace' |
|
|
|
import { FilePanelType } from '@remix-ui/workspace' |
|
|
|
import { VerticalIcons } from './vertical-icons' |
|
|
|
import { VerticalIcons } from './vertical-icons' |
|
|
|
|
|
|
|
import { CustomRemixApi } from '@remix-api' |
|
|
|
|
|
|
|
|
|
|
|
const statusBarProfile: PluginProfile = { |
|
|
|
const statusBarProfile: PluginProfile = { |
|
|
|
name: 'statusBar', |
|
|
|
name: 'statusBar', |
|
|
@ -16,7 +17,7 @@ const statusBarProfile: PluginProfile = { |
|
|
|
version: packageJson.version, |
|
|
|
version: packageJson.version, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export class StatusBar extends Plugin implements StatusBarInterface { |
|
|
|
export class StatusBar extends Plugin<any, CustomRemixApi> implements StatusBarInterface { |
|
|
|
htmlElement: HTMLDivElement |
|
|
|
htmlElement: HTMLDivElement |
|
|
|
events: EventEmitter |
|
|
|
events: EventEmitter |
|
|
|
filePanelPlugin: FilePanelType |
|
|
|
filePanelPlugin: FilePanelType |
|
|
@ -75,7 +76,7 @@ export class StatusBar extends Plugin implements StatusBarInterface { |
|
|
|
const workspaceName = localStorage.getItem('currentWorkspace') |
|
|
|
const workspaceName = localStorage.getItem('currentWorkspace') |
|
|
|
workspaceName && workspaceName.length > 0 ? this.currentWorkspaceName = workspaceName : this.currentWorkspaceName = 'error' |
|
|
|
workspaceName && workspaceName.length > 0 ? this.currentWorkspaceName = workspaceName : this.currentWorkspaceName = 'error' |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.on('settings', 'copilotChoiceChanged', (isAiActive) => { |
|
|
|
this.on('settings', 'copilotChoiceChanged', (isAiActive: boolean) => { |
|
|
|
this.isAiActive = isAiActive |
|
|
|
this.isAiActive = isAiActive |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.renderComponent() |
|
|
|
this.renderComponent() |
|
|
|