import { BaseContextProvider } from ".."; import { ContextItem, ContextProviderDescription } from "../.."; import { ExtensionIde } from "../../ide"; class TerminalContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { title: "terminal", displayTitle: "Terminal", description: "Reference the contents of the terminal", dynamic: true, requiresQuery: false, }; async getContextItems(query: string): Promise { const content = await new ExtensionIde().getTerminalContents(); return [ { description: "The contents of the terminal", content, name: "Terminal", }, ]; } async load(): Promise {} } export default TerminalContextProvider;