Skip to content

Commit

Permalink
fix: fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Nov 21, 2024
1 parent 79514a7 commit 4888435
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export const createTmpFileAndWriter = async (
writeTextPart: (textPart: string) =>
appendTextToDocument(tmpDocument, textPart),
getText: () => tmpDocument.getText(),
save: () => tmpDocument.save() as Promise<void>,
save: async () => {
await tmpDocument.save()
},
close: () => closeDocument(tmpFileUri),
isClosedWithoutSaving: () => tmpDocument.isClosed && !tmpDocument.getText()
}
Expand Down

0 comments on commit 4888435

Please sign in to comment.