add type definitions and interfaces for opt in continue features
This commit is contained in:
parent
e64d4b4a3a
commit
66a1dc92de
3 changed files with 17 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ export const sharedConfigSchema = z
|
|||
promptPath: z.string(),
|
||||
useCurrentFileAsContext: z.boolean(),
|
||||
logEditingData: z.boolean(),
|
||||
optInContinueFeature: z.boolean(), // special features reserved for internal testing only
|
||||
|
||||
// `ui` in `ContinueConfig`
|
||||
showSessionTabs: z.boolean(),
|
||||
|
|
@ -175,6 +176,10 @@ export function modifyAnyConfigWithSharedConfig<
|
|||
if (sharedConfig.logEditingData !== undefined) {
|
||||
configCopy.experimental.logEditingData = sharedConfig.logEditingData;
|
||||
}
|
||||
if (sharedConfig.optInContinueFeature !== undefined) {
|
||||
configCopy.experimental.optInContinueFeature =
|
||||
sharedConfig.optInContinueFeature;
|
||||
}
|
||||
|
||||
return configCopy;
|
||||
}
|
||||
|
|
|
|||
5
core/index.d.ts
vendored
5
core/index.d.ts
vendored
|
|
@ -1376,6 +1376,11 @@ export interface ExperimentalConfig {
|
|||
* If enabled, will save data on the user's editing processes
|
||||
*/
|
||||
logEditingData?: boolean;
|
||||
|
||||
/**
|
||||
* If enabled, will enable internal features under testing
|
||||
*/
|
||||
optInContinueFeature?: boolean;
|
||||
}
|
||||
|
||||
export interface AnalyticsConfig {
|
||||
|
|
|
|||
|
|
@ -55,6 +55,13 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & {
|
|||
];
|
||||
"edit/addCurrentSelection": [undefined, void];
|
||||
"edit/clearDecorations": [undefined, void];
|
||||
optInContinueFeature: [
|
||||
{
|
||||
email: string;
|
||||
optIn: boolean;
|
||||
},
|
||||
void,
|
||||
];
|
||||
};
|
||||
|
||||
export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue