43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import { ConfigResult, ConfigValidationError } from "@continuedev/config-yaml";
|
|
import type {
|
|
BrowserSerializedContinueConfig,
|
|
ContextItemWithId,
|
|
ContextProviderName,
|
|
IndexingProgressUpdate,
|
|
IndexingStatus,
|
|
PackageDocsResult,
|
|
} from "../index.js";
|
|
|
|
export type ToWebviewFromIdeOrCoreProtocol = {
|
|
configUpdate: [
|
|
{
|
|
result: ConfigResult<BrowserSerializedContinueConfig>;
|
|
profileId: string | null;
|
|
},
|
|
void,
|
|
];
|
|
configError: [ConfigValidationError[] | undefined, void];
|
|
getDefaultModelTitle: [undefined, string];
|
|
indexProgress: [IndexingProgressUpdate, void]; // Codebase
|
|
"indexing/statusUpdate": [IndexingStatus, void]; // Docs, etc.
|
|
refreshSubmenuItems: [
|
|
{
|
|
providers: "all" | "dependsOnIndexing" | ContextProviderName[];
|
|
},
|
|
void,
|
|
];
|
|
didCloseFiles: [{ uris: string[] }, void];
|
|
isContinueInputFocused: [undefined, boolean];
|
|
addContextItem: [
|
|
{
|
|
historyIndex: number;
|
|
item: ContextItemWithId;
|
|
},
|
|
void,
|
|
];
|
|
setTTSActive: [boolean, void];
|
|
getWebviewHistoryLength: [undefined, number];
|
|
getCurrentSessionId: [undefined, string];
|
|
"docs/suggestions": [PackageDocsResult[], void];
|
|
"jetbrains/setColors": [Record<string, string>, void];
|
|
};
|