vscode-postrefactor: compare dates by value, not by reference
This commit is contained in:
parent
c3ee8b10b8
commit
b0bf495262
@ -58,11 +58,11 @@ export async function ensureProperExtensionVersion(config: Config): Promise<neve
|
||||
|
||||
await tryDownloadNightlyExtension(config, releaseInfo => {
|
||||
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 " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user