Skip to content

Commit bc2075c

Browse files
style(editor): wrap the two constructor calls the format job rejects
Formatting only: the same two `new Task({...})` calls the previous commit added are wrapped by prettier, and the only other characters that appear are the trailing commas prettier adds with them - with whitespace and those commas removed the file is byte-identical to the previous commit. The compile job (pnpm format:check) runs on the merge tree, where these lines exceed the print width, and was red because of them.
1 parent b192d86 commit bc2075c

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎src/core/task/__tests__/Task.spec.ts‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4595,7 +4595,12 @@ describe("Cline", () => {
45954595
})
45964596

45974597
it("cancels post-save diagnostics tails when the task is disposed", async () => {
4598-
const task = new Task({ provider: mockProvider, apiConfiguration: mockApiConfig, task: "test task", startTask: false })
4598+
const task = new Task({
4599+
provider: mockProvider,
4600+
apiConfiguration: mockApiConfig,
4601+
task: "test task",
4602+
startTask: false,
4603+
})
45994604
const cancelSpy = vi
46004605
.spyOn(task.diffViewProvider, "cancelPostSaveDiagnosticsTails")
46014606
.mockImplementation(() => {})
@@ -4605,7 +4610,12 @@ describe("Cline", () => {
46054610
})
46064611

46074612
it("continues disposal when cancelling the post-save diagnostics tails throws", async () => {
4608-
const task = new Task({ provider: mockProvider, apiConfiguration: mockApiConfig, task: "test task", startTask: false })
4613+
const task = new Task({
4614+
provider: mockProvider,
4615+
apiConfiguration: mockApiConfig,
4616+
task: "test task",
4617+
startTask: false,
4618+
})
46094619
vi.spyOn(task.diffViewProvider, "cancelPostSaveDiagnosticsTails").mockImplementation(() => {
46104620
throw new Error("cancel boom")
46114621
})

0 commit comments

Comments
 (0)