Skip to content

Commit

Permalink
fix: uri validation error fixed (AnWeber#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Jan 4, 2022
1 parent 04dadb8 commit acf73ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/fileProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ export function initFileProvider(): void {
const uri = toUri(fileName);
if (uri) {
await workspace.fs.writeFile(uri, buffer);
} else {
throw new Error('No valid uri');
}
throw new Error('No valid uri');
};

io.fileProvider.readdir = async (dirname: PathLike): Promise<string[]> => {
Expand Down

0 comments on commit acf73ab

Please sign in to comment.