11import React , { createContext , useCallback , useContext , useEffect , useState } from "react"
22import { useEvent } from "react-use"
33
4- import { ProviderSettingsEntry , ExtensionMessage , ExtensionState } from "@roo/shared/ExtensionMessage"
5- import { ProviderSettings } from "@roo/shared/api"
6- import { findLastIndex } from "@roo/shared/array"
7- import { McpServer } from "@roo/shared/mcp"
8- import { checkExistKey } from "@roo/shared/checkExistApiConfig"
9- import { Mode , CustomModePrompts , defaultModeSlug , defaultPrompts , ModeConfig } from "@roo/shared/modes"
10- import { CustomSupportPrompts } from "@roo/shared/support-prompt"
11- import { experimentDefault , ExperimentId } from "@roo/shared/experiments"
12- import { TelemetrySetting } from "@roo/shared/TelemetrySetting"
13- import { RouterModels } from "@roo/shared/api"
14- import { AttachedFileSpec } from "../../../src/shared/tools"
4+ import type {
5+ ProviderSettings ,
6+ ProviderSettingsEntry ,
7+ CustomModePrompts ,
8+ ModeConfig ,
9+ ExperimentId ,
10+ } from "@roo-code/types"
1511
16- import { vscode } from "@src/utils/vscode"
17- import { convertTextMateToHljs } from "@src/utils/textMateToHljs"
12+ import { ExtensionMessage , ExtensionState } from "@roo/ExtensionMessage"
13+ import { findLastIndex } from "@roo/array"
14+ import { McpServer } from "@roo/mcp"
15+ import { checkExistKey } from "@roo/checkExistApiConfig"
16+ import { Mode , defaultModeSlug , defaultPrompts } from "@roo/modes"
17+ import { CustomSupportPrompts } from "@roo/support-prompt"
18+ import { experimentDefault } from "@roo/experiments"
19+ import { TelemetrySetting } from "@roo/TelemetrySetting"
20+ import { RouterModels } from "@roo/api"
21+ import { AttachedFileSpec } from "../../../src/shared/tools"
1822
1923export interface ExtensionStateContextType extends ExtensionState {
2024 historyPreviewCollapsed ?: boolean // Add the new state property
@@ -25,7 +29,7 @@ export interface ExtensionStateContextType extends ExtensionState {
2529 hasSystemPromptOverride ?: boolean
2630 currentCheckpoint ?: string
2731 filePaths : string [ ]
28- attachedFiles ?: AttachedFileSpec [ ]
32+ attachedFiles ?: AttachedFileSpec [ ]
2933 openedTabs : Array < { label : string ; isActive : boolean ; path ?: string } >
3034 condensingApiConfigId ?: string
3135 setCondensingApiConfigId : ( value : string ) => void
0 commit comments