mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix TextEditorWriteTool
This commit is contained in:
1 file changed
+1
-1
@@ -71,7 +71,7 @@ export class TextEditorWriteTool implements Tool<TextEditorWriteParams> {
|
||||
try {
|
||||
const absolutePath = join(this.cwd, path);
|
||||
await this.fs.mkdir(dirname(absolutePath), { recursive: true });
|
||||
await this.fs.writeFile(absolutePath, file_text, "utf-8");
|
||||
await this.fs.writeFile(absolutePath, file_text, "utf8");
|
||||
return {
|
||||
content: [{
|
||||
type: "text",
|
||||
|
||||
Reference in new issue
Block a user