mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-09 18:02:48 +00:00
vscode-postrefactor: compare dates by value, not by reference
This commit is contained in:
parent
c3ee8b10b8
commit
b0bf495262
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue