Skip to content

Commit

Permalink
fix: readFileAsString causes circular reference in VSCodeFileSystemAd…
Browse files Browse the repository at this point in the history
…apter
  • Loading branch information
Codeneos committed Aug 18, 2023
1 parent 8e25c1c commit dadd47f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class VSCodeFileSystemAdapter extends FileSystem {
if (doc) {
return doc.getText();
}
return this.readFileAsString(fileName, encoding);
return this.readFile(fileName).then(buffer => buffer.toString(encoding));
}

public async readFile(fileName: string): Promise<Buffer> {
Expand Down

0 comments on commit dadd47f

Please sign in to comment.