Skip to content

Commit b0bf495

Browse files
author
Veetaha
committed
vscode-postrefactor: compare dates by value, not by reference
1 parent c3ee8b1 commit b0bf495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editors/code/src/installation/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export async function ensureProperExtensionVersion(config: Config): Promise<neve
5858

5959
await tryDownloadNightlyExtension(config, releaseInfo => {
6060
assert(
61-
currentExtReleaseDate === config.installedNightlyExtensionReleaseDate.get(),
61+
currentExtReleaseDate.getTime() === config.installedNightlyExtensionReleaseDate.get()?.getTime(),
6262
"Other active VSCode instance has reinstalled the extension"
6363
);
6464

65-
if (releaseInfo.releaseDate === currentExtReleaseDate) {
65+
if (releaseInfo.releaseDate.getTime() === currentExtReleaseDate.getTime()) {
6666
vscode.window.showInformationMessage(
6767
"Whoops, it appears that your nightly version is up-to-date. " +
6868
"There might be some problems with the upcomming nightly release " +

0 commit comments

Comments
 (0)