Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to control whether or not to use Date#toISOString() ? #574

Closed
qiulang opened this issue May 31, 2018 · 2 comments
Closed

Comments

@qiulang
Copy link

qiulang commented May 31, 2018

When stdout is not a TTY, Date#toISOString() is used ...

I hit the problem that when using vcode, set "outputCapture": "std", Date#toISOString() will be used automaticlly instead of showing millisecond diff in vscode debug console(without setting it there will no log at all microsoft/vscode#41600)

So is it possbile to set whether to use Date#toISOString() or not ?

@Qix-
Copy link
Member

Qix- commented Jun 20, 2018

This is a (continual) problem in the vscode debug console. If they want TTY support then they need to report to programs that the stdout/stderr file descriptors are interactive TTY sessions.

@Qix- Qix- closed this as completed Jun 20, 2018
@Spown
Copy link

Spown commented Sep 8, 2018

Why is this issue closed?

If they want TTY support then they need to report to programs that the stdout/stderr file descriptors are interactive TTY sessions.

I don't know what do you mean by "interactive TTY session" but process.stdout.isTTY is true with "outputCapture": "std" in VSCode. And anyway nobody asked for a fix for VSCode problem here. qiulang has asked for a way to control the timestamping format. Irregardless of environment.

Personally I would like to have this option because diff timestamps show nonsense in async and with multiple submodules

I would much rather see actual time or better yet a way to format my own timestamp (while developing I probably don't need DD.MM.YYYY and a timezone, just HH:MM:ss:SSS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants