vscode: npm run fix

This commit is contained in:
Veetaha 2020-03-09 20:04:11 +02:00
parent 1e73811fbe
commit 7e6b1a60c3
2 changed files with 4 additions and 4 deletions

View file

@ -173,7 +173,7 @@ export class Config {
name: "rust-analyzer", name: "rust-analyzer",
owner: "rust-analyzer" owner: "rust-analyzer"
} }
} };
} }
get nightlyVsixSource(): ArtifactSource.GithubRelease { get nightlyVsixSource(): ArtifactSource.GithubRelease {
@ -240,7 +240,7 @@ export class StringStorage {
constructor( constructor(
private readonly key: string, private readonly key: string,
private readonly storage: vscode.Memento private readonly storage: vscode.Memento
) {} ) { }
get(): null | string { get(): null | string {
const tag = this.storage.get(this.key, null); const tag = this.storage.get(this.key, null);
@ -257,7 +257,7 @@ export class DateStorage {
constructor( constructor(
private readonly key: string, private readonly key: string,
private readonly storage: vscode.Memento private readonly storage: vscode.Memento
) {} ) { }
get(): null | Date { get(): null | Date {
const date = this.storage.get(this.key, null); const date = this.storage.get(this.key, null);

View file

@ -110,7 +110,7 @@ const tryDownloadNightlyExtension = notReentrant(async function tryDownloadNight
const vsixPath = path.join(vsixSource.dir, vsixSource.file); const vsixPath = path.join(vsixSource.dir, vsixSource.file);
await vscodeInstallExtensionFromVsix(vsixPath) await vscodeInstallExtensionFromVsix(vsixPath);
await config.installedNightlyExtensionReleaseDate.set(releaseInfo.releaseDate); await config.installedNightlyExtensionReleaseDate.set(releaseInfo.releaseDate);
await fs.unlink(vsixPath); await fs.unlink(vsixPath);