aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-03-09 18:04:11 +0000
committerVeetaha <[email protected]>2020-03-14 00:01:46 +0000
commit7e6b1a60c3d7b20e1b4cee2ab210b617e359a002 (patch)
treec4fcd6c1c51d62d0965abbb4c27b46f9135e8e58
parent1e73811fbe634efec90a3e009a84fd8dda9f5697 (diff)
vscode: npm run fix
-rw-r--r--editors/code/src/config.ts6
-rw-r--r--editors/code/src/installation/extension.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index e2b0f6f84..b5c07876b 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -173,7 +173,7 @@ export class Config {
173 name: "rust-analyzer", 173 name: "rust-analyzer",
174 owner: "rust-analyzer" 174 owner: "rust-analyzer"
175 } 175 }
176 } 176 };
177 } 177 }
178 178
179 get nightlyVsixSource(): ArtifactSource.GithubRelease { 179 get nightlyVsixSource(): ArtifactSource.GithubRelease {
@@ -240,7 +240,7 @@ export class StringStorage {
240 constructor( 240 constructor(
241 private readonly key: string, 241 private readonly key: string,
242 private readonly storage: vscode.Memento 242 private readonly storage: vscode.Memento
243 ) {} 243 ) { }
244 244
245 get(): null | string { 245 get(): null | string {
246 const tag = this.storage.get(this.key, null); 246 const tag = this.storage.get(this.key, null);
@@ -257,7 +257,7 @@ export class DateStorage {
257 constructor( 257 constructor(
258 private readonly key: string, 258 private readonly key: string,
259 private readonly storage: vscode.Memento 259 private readonly storage: vscode.Memento
260 ) {} 260 ) { }
261 261
262 get(): null | Date { 262 get(): null | Date {
263 const date = this.storage.get(this.key, null); 263 const date = this.storage.get(this.key, null);
diff --git a/editors/code/src/installation/extension.ts b/editors/code/src/installation/extension.ts
index 7709cd3cd..7eab68852 100644
--- a/editors/code/src/installation/extension.ts
+++ b/editors/code/src/installation/extension.ts
@@ -110,7 +110,7 @@ const tryDownloadNightlyExtension = notReentrant(async function tryDownloadNight
110 110
111 const vsixPath = path.join(vsixSource.dir, vsixSource.file); 111 const vsixPath = path.join(vsixSource.dir, vsixSource.file);
112 112
113 await vscodeInstallExtensionFromVsix(vsixPath) 113 await vscodeInstallExtensionFromVsix(vsixPath);
114 await config.installedNightlyExtensionReleaseDate.set(releaseInfo.releaseDate); 114 await config.installedNightlyExtensionReleaseDate.set(releaseInfo.releaseDate);
115 await fs.unlink(vsixPath); 115 await fs.unlink(vsixPath);
116 116