mirror of
https://github.com/coder/code-server.git
synced 2026-05-07 12:57:26 +02:00
chore(vscode): update to 1.54.2
This commit is contained in:
@@ -56,20 +56,20 @@ export class Win32UpdateService extends AbstractUpdateService {
|
||||
@memoize
|
||||
get cachePath(): Promise<string> {
|
||||
const result = path.join(tmpdir(), `vscode-update-${product.target}-${process.arch}`);
|
||||
return pfs.mkdirp(result).then(() => result);
|
||||
return fs.promises.mkdir(result, { recursive: true }).then(() => result);
|
||||
}
|
||||
|
||||
constructor(
|
||||
@ILifecycleMainService lifecycleMainService: ILifecycleMainService,
|
||||
@IConfigurationService configurationService: IConfigurationService,
|
||||
@ITelemetryService private readonly telemetryService: ITelemetryService,
|
||||
@IEnvironmentMainService environmentService: IEnvironmentMainService,
|
||||
@IEnvironmentMainService environmentMainService: IEnvironmentMainService,
|
||||
@IRequestService requestService: IRequestService,
|
||||
@ILogService logService: ILogService,
|
||||
@IFileService private readonly fileService: IFileService,
|
||||
@INativeHostMainService private readonly nativeHostMainService: INativeHostMainService
|
||||
) {
|
||||
super(lifecycleMainService, configurationService, environmentService, requestService, logService);
|
||||
super(lifecycleMainService, configurationService, environmentMainService, requestService, logService);
|
||||
}
|
||||
|
||||
initialize(): void {
|
||||
@@ -146,7 +146,7 @@ export class Win32UpdateService extends AbstractUpdateService {
|
||||
return this.requestService.request({ url }, CancellationToken.None)
|
||||
.then(context => this.fileService.writeFile(URI.file(downloadPath), context.stream))
|
||||
.then(hash ? () => checksum(downloadPath, update.hash) : () => undefined)
|
||||
.then(() => pfs.rename(downloadPath, updatePackagePath))
|
||||
.then(() => fs.promises.rename(downloadPath, updatePackagePath))
|
||||
.then(() => updatePackagePath);
|
||||
});
|
||||
}).then(packagePath => {
|
||||
@@ -196,7 +196,7 @@ export class Win32UpdateService extends AbstractUpdateService {
|
||||
|
||||
const promises = versions.filter(filter).map(async one => {
|
||||
try {
|
||||
await pfs.unlink(path.join(cachePath, one));
|
||||
await fs.promises.unlink(path.join(cachePath, one));
|
||||
} catch (err) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user