Skip to content

Commit

Permalink
Added code to clean up the temp directory that pyright creates. This …
Browse files Browse the repository at this point in the history
…addresses #4142.
  • Loading branch information
msfterictraut committed Nov 5, 2022
1 parent 8daeee2 commit 2d9dae0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pyright-internal/src/common/realFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ class RealFileSystem implements FileSystem {

tmpdir() {
if (!this._tmpdir) {
tmp.setGracefulCleanup();
const dir = tmp.dirSync({ prefix: 'pyright' });
this._tmpdir = dir.name;
}
Expand Down

0 comments on commit 2d9dae0

Please sign in to comment.