Skip to content

Commit 0e7342f

Browse files
committed
Fix buffer type
1 parent d64047f commit 0e7342f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assistant/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ async function saveFilesToWorkspace(
719719
// File does not exist; create it.
720720
workspaceEdit.createFile(fileUri, {
721721
overwrite: false,
722-
contents: Buffer.from(file.content, "utf-8"),
722+
contents: new Uint8Array(Buffer.from(file.content, "utf-8")),
723723
});
724724
createdUris.push(fileUri);
725725
}

0 commit comments

Comments
 (0)