aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-03-09 18:41:23 +0000
committerVeetaha <[email protected]>2020-03-14 00:01:46 +0000
commitb0bf495262c650d62744c17b2dac8b24272d76b7 (patch)
tree9d3e430bc58dd4d06bec03751485ac266bb92d3f /editors/code/src
parentc3ee8b10b89e6e0b1d80fd419291e5d73ff49a41 (diff)
vscode-postrefactor: compare dates by value, not by reference
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/installation/extension.ts4
1 files changed, 2 insertions, 2 deletions
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<neve
58 58
59 await tryDownloadNightlyExtension(config, releaseInfo => { 59 await tryDownloadNightlyExtension(config, releaseInfo => {
60 assert( 60 assert(
61 currentExtReleaseDate === config.installedNightlyExtensionReleaseDate.get(), 61 currentExtReleaseDate.getTime() === config.installedNightlyExtensionReleaseDate.get()?.getTime(),
62 "Other active VSCode instance has reinstalled the extension" 62 "Other active VSCode instance has reinstalled the extension"
63 ); 63 );
64 64
65 if (releaseInfo.releaseDate === currentExtReleaseDate) { 65 if (releaseInfo.releaseDate.getTime() === currentExtReleaseDate.getTime()) {
66 vscode.window.showInformationMessage( 66 vscode.window.showInformationMessage(
67 "Whoops, it appears that your nightly version is up-to-date. " + 67 "Whoops, it appears that your nightly version is up-to-date. " +
68 "There might be some problems with the upcomming nightly release " + 68 "There might be some problems with the upcomming nightly release " +