Add explicit win32 gheck for using user specific temp folder

This commit is contained in:
Matt Bierner
2019-06-24 15:19:03 -07:00
parent 1bbd3e6659
commit 85ab838037

View File

@@ -14,7 +14,7 @@ const getRootTempDir = (() => {
let dir: string | undefined;
return () => {
if (!dir) {
dir = temp.getTempFile(`vscode-typescript${process.getuid ? process.getuid() : ''}`);
dir = temp.getTempFile(`vscode-typescript${process.platform !== 'win32' && process.getuid ? process.getuid() : ''}`);
}
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);