fix: type errors

This commit is contained in:
tomasz-io 2024-11-26 14:24:13 -08:00
parent 3c537f51c1
commit 7ee4d8db50
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ export type ToIdeFromWebviewOrCoreProtocol = {
getPinnedFiles: [undefined, string[]];
showLines: [{ filepath: string; startLine: number; endLine: number }, void];
readRangeInFile: [{ filepath: string; range: Range }, string];
getDiff: [{ includeUnstaged: boolean }, string];
getDiff: [{ includeUnstaged: boolean }, string[]];
getWorkspaceConfigs: [undefined, ContinueRcJson[]];
getTerminalContents: [undefined, string];
getDebugLocals: [{ threadIndex: number }, string];

View file

@ -125,8 +125,8 @@ class FileSystemIde implements IDE {
return Promise.resolve([]);
}
getDiff(includeUnstaged: boolean): Promise<string> {
return Promise.resolve("");
getDiff(includeUnstaged: boolean): Promise<string[]> {
return Promise.resolve([]);
}
getClipboardContent(): Promise<{ text: string; copiedAt: string }> {