remove .txt from stdio files so that language guessing is easier (#130917)
This commit is contained in:
parent
132e88d6f3
commit
f5717a4b32
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue