未验证 提交 e642a0a5 编写于 作者: M Matt Bierner 提交者: GitHub

Merge pull request #75547 from asztal/patch-1

Handle multiple users with /tmp/vscode-typescript
......@@ -7,13 +7,14 @@ import * as temp from './temp';
import path = require('path');
import fs = require('fs');
import cp = require('child_process');
import process = require('process');
const getRootTempDir = (() => {
let dir: string | undefined;
return () => {
if (!dir) {
dir = temp.getTempFile(`vscode-typescript`);
dir = temp.getTempFile(`vscode-typescript${process.getuid ? process.getuid() : ''}`);
}
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册