serve-web needs to wait a certain amount of time after machine startup #233155
Description
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
- Boot windows machine.
- Run "code serve-web" on Powershell soon.
- Get below error.
PS C:\Users\Server> code --disable-extensions serve-web
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
thread 'main' panicked at library\std\src\time.rs:433:33:
overflow when subtracting duration from instant
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
- VS Code Version: 1.95.1
- OS Version: Windows 10 Pro
I'm not familiar with RUST, but the following code seems to be related.
vscode/cli/src/commands/serve_web.rs
Line 552 in 76c27ee
It seems to be querying for version recency every hour, but within the first hour after the machine is booted, the value is a negative.
I have confirmed that it works fine when run after one hour from machine startup.
Ultimately, I would like to register this command as a service using nssm and have it accessed from machines in the same network using the nginx https proxy container.
The principle is so simple that one wonders why other users do not encounter this problem.
I'm being meticulous, but this is my first time posting to github, so apologies if I'm being unkind.
Activity