mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Add explicit win32 gheck for using user specific temp folder
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user