Skip to content

Commit 94e7742

Browse files
committed
test(webview): pass the shared tracker in delete-profile constructions
The three ClineProvider constructions added by this unit's delete-profile tests predate the required WebviewFocusTracker parameter; pass a fresh tracker so check-types passes (CI compile caught the uncommitted fix).
1 parent 7f5ed4e commit 94e7742

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/core/webview/__tests__/ClineProvider.spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4324,7 +4324,7 @@ describe("ClineProvider", () => {
43244324
})
43254325

43264326
it("should not activate a replacement when an unrelated profile is deleted with no view pin", async () => {
4327-
const provider = new ClineProvider(mockContext, mockOutputChannel, "sidebar", new ContextProxy(mockContext))
4327+
const provider = new ClineProvider(mockContext, mockOutputChannel, "sidebar", new ContextProxy(mockContext), new WebviewFocusTracker())
43284328
const deletedProfile: ProviderSettingsEntry = {
43294329
name: "unrelated-victim",
43304330
id: "victim-id",
@@ -4362,7 +4362,7 @@ describe("ClineProvider", () => {
43624362
})
43634363

43644364
it("should prune a stale entry when deleteConfig reports the typed not-found signal", async () => {
4365-
const provider = new ClineProvider(mockContext, mockOutputChannel, "sidebar", new ContextProxy(mockContext))
4365+
const provider = new ClineProvider(mockContext, mockOutputChannel, "sidebar", new ContextProxy(mockContext), new WebviewFocusTracker())
43664366
const ghostProfile: ProviderSettingsEntry = {
43674367
name: "ghost-profile",
43684368
id: "ghost-id",
@@ -4394,7 +4394,7 @@ describe("ClineProvider", () => {
43944394
})
43954395

43964396
it("should propagate a wrapped delete failure whose message merely mentions not found", async () => {
4397-
const provider = new ClineProvider(mockContext, mockOutputChannel, "sidebar", new ContextProxy(mockContext))
4397+
const provider = new ClineProvider(mockContext, mockOutputChannel, "sidebar", new ContextProxy(mockContext), new WebviewFocusTracker())
43984398
const victimProfile: ProviderSettingsEntry = {
43994399
name: "victim-profile",
44004400
id: "victim-id",

0 commit comments

Comments
 (0)