mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-03 07:19:22 +00:00
fix #39654
This commit is contained in:
@@ -93,7 +93,7 @@ export async function main(argv: string[]): TPromise<any> {
|
||||
let stdinFilePath: string;
|
||||
if (isReadingFromStdin) {
|
||||
let stdinFileError: Error;
|
||||
stdinFilePath = paths.join(os.tmpdir(), `stdin-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 6)}.txt`);
|
||||
stdinFilePath = paths.join(os.tmpdir(), `code-stdin-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 3)}.txt`);
|
||||
try {
|
||||
const stdinFileStream = fs.createWriteStream(stdinFilePath);
|
||||
resolveTerminalEncoding(verbose).done(encoding => {
|
||||
|
||||
Reference in New Issue
Block a user