diff --git a/core/core.ts b/core/core.ts index a8260fb12..d63dec9f8 100644 --- a/core/core.ts +++ b/core/core.ts @@ -1002,26 +1002,22 @@ export class Core { return { url }; }); - on( - "didChangeActiveTextEditor", - async ({ data: { filepath, filename } }) => { - this.messenger.send("didChangeActiveTextEditor", { - filepath, - filename, - }); + on("didChangeActiveTextEditor", async ({ data: { filepath } }) => { + this.messenger.send("didChangeActiveTextEditor", { + filepath, + }); - try { - const ignore = shouldIgnore(filepath, this.ide); - if (!ignore) { - recentlyEditedFilesCache.set(filepath, filepath); - } - } catch (e) { - console.error( - `didChangeActiveTextEditor: failed to update recentlyEditedFiles cache for ${filepath}`, - ); + try { + const ignore = shouldIgnore(filepath, this.ide); + if (!ignore) { + recentlyEditedFilesCache.set(filepath, filepath); } - }, - ); + } catch (e) { + console.error( + `didChangeActiveTextEditor: failed to update recentlyEditedFiles cache for ${filepath}`, + ); + } + }); on("tools/call", async ({ data: { toolCall, selectedModelTitle } }) => { const { config } = await this.configHandler.loadConfig(); diff --git a/core/protocol/webview.ts b/core/protocol/webview.ts index 7f57d2d1d..c492068d2 100644 --- a/core/protocol/webview.ts +++ b/core/protocol/webview.ts @@ -26,7 +26,7 @@ export type ToWebviewFromIdeOrCoreProtocol = { }, void, ]; - didChangeActiveTextEditor: [{ filepath: string; filename: string }, void]; + didChangeActiveTextEditor: [{ filepath: string }, void]; isContinueInputFocused: [undefined, boolean]; addContextItem: [ {