Skip to content

Commit 4df8021

Browse files
committed
Fix merge conflicts
1 parent c85c58b commit 4df8021

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/codewhispererChat/tools/listDirectory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ListDirectory {
4848
updates.end()
4949
}
5050

51-
public async invoke(updates: Writable): Promise<InvokeOutput> {
51+
public async invoke(updates?: Writable): Promise<InvokeOutput> {
5252
try {
5353
const fileUri = vscode.Uri.file(this.fsPath)
5454
const listing = await readDirectoryRecursively(fileUri, 0)

packages/core/src/test/codewhispererChat/tools/toolShared.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe('ToolUtils', function () {
151151
const result = await ToolUtils.invoke(tool, mockWritable as unknown as Writable)
152152

153153
assert.deepStrictEqual(result, expectedOutput)
154-
assert(mockListDirectory.invoke.calledOnceWith(mockWritable))
154+
assert(mockListDirectory.invoke.calledOnceWith(mockWritable as unknown as Writable | undefined))
155155
})
156156
})
157157

0 commit comments

Comments
 (0)