remove .txt from stdio files so that language guessing is easier (#130917)

This commit is contained in:
Tyler James Leonhardt 2021-08-16 09:11:06 -07:00 committed by GitHub
parent 132e88d6f3
commit f5717a4b32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ export function stdinDataListener(durationinMs: number): Promise<boolean> {
}
export function getStdinFilePath(): string {
return paths.join(os.tmpdir(), `code-stdin-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 3)}.txt`);
return paths.join(os.tmpdir(), `code-stdin-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 3)}`);
}
export async function readFromStdin(targetPath: string, verbose: boolean): Promise<void> {