From b0bf495262c650d62744c17b2dac8b24272d76b7 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Mon, 9 Mar 2020 20:41:23 +0200 Subject: vscode-postrefactor: compare dates by value, not by reference --- editors/code/src/installation/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors') diff --git a/editors/code/src/installation/extension.ts b/editors/code/src/installation/extension.ts index d0782ad13..3a1481a89 100644 --- a/editors/code/src/installation/extension.ts +++ b/editors/code/src/installation/extension.ts @@ -58,11 +58,11 @@ export async function ensureProperExtensionVersion(config: Config): Promise { assert( - currentExtReleaseDate === config.installedNightlyExtensionReleaseDate.get(), + currentExtReleaseDate.getTime() === config.installedNightlyExtensionReleaseDate.get()?.getTime(), "Other active VSCode instance has reinstalled the extension" ); - if (releaseInfo.releaseDate === currentExtReleaseDate) { + if (releaseInfo.releaseDate.getTime() === currentExtReleaseDate.getTime()) { vscode.window.showInformationMessage( "Whoops, it appears that your nightly version is up-to-date. " + "There might be some problems with the upcomming nightly release " + -- cgit v1.2.3