Open moltob opened 3 days ago
My only guess is that there's a runtime exception somewhere. Can you try to open Help → Toggle Developer Tools and see if there are any errors in the console?
You're right:
This is very confusing, DateTimeFormat
says that the +200
is an incorrect timezone, but I have the same timezone, and it works fine for me...
My guess is that maybe Electron on Windows doesn't support it? I'm on a Mac.
Can you try these two snippets in Code's DevTools console?
new Intl.DateTimeFormat('en', {dateStyle: 'long', timeStyle: 'long', timeZone: '+0200'}).format(new Date())
new Intl.DateTimeFormat('en', {dateStyle: 'long', timeStyle: 'long', timeZone: 'Europe/Berlin'}).format(new Date())
On my machine both work the same way in all browsers I have (Chromium, Firefox, Safari, and Code).
No issue in the console, it seems:
> new Intl.DateTimeFormat('en', {dateStyle: 'long', timeStyle: 'long', timeZone: '+0200'}).format(new Date())
'September 16, 2024 at 12:25:10 PM GMT+2'
> new Intl.DateTimeFormat('en', {dateStyle: 'long', timeStyle: 'long', timeZone: 'Europe/Berlin'}).format(new Date())
'September 16, 2024 at 12:25:20 PM GMT+2'
You want me to put some debug statements anywhere?
Not sure what to log exactly; we can wrap the whole thing in try/catch so it won't crash the whole thing at least...
I published a new version (2.0.5) with try/catch and additional logs, so it shouldn't crash at least. I'm still not sure how to debug/fix the actual issue.
It does show annotations now. The vscode output shows this:
Error formatting date: Invalid time zone specified: +0200
Timestamp: "2022-09-16T12:08:16.000Z"
Time zone: +0200
I looked at your code and for me using the replacement TZ/format is just fine. Feel free to close the issue, whenever you like, unless you want to debug anything that comes to your mind. I am happy trying out anything you suggest.
Or just close. 😄
Thanks again for your effort and instantaneous support.
Thank you for writing this extensions. It looks like exactly what I was looking for.
For some reason, I am not able to see the blame panel/sidebar/annotations. Relaunching/restarting VSCode did not help. No other git-related extension is active/installed.
Am I missing the obvious?
In the main editor a source file is open and I trigger the "toggle git blame annotations" command from the command panel. Noting happens in terms of editor/views. The "just blame" output window shows this (some internal names replaced with "xxx"):
In case it matters: This is VSCode running in Windows 10 connected to the local WSL instance, where the code/git lives.
Thanks!