Skip to content

Commit c235b9c

Browse files
authored
remove legacy update flag (microsoft#188135)
1 parent 4390ebc commit c235b9c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/vs/platform/update/common/update.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation'
99
export interface IUpdate {
1010
version: string;
1111
productVersion: string;
12-
supportsFastUpdate?: boolean;
1312
url?: string;
1413
hash?: string;
1514
}

src/vs/platform/update/electron-main/updateService.win32.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class Win32UpdateService extends AbstractUpdateService {
145145

146146
this.availableUpdate = { packagePath };
147147

148-
if (fastUpdatesEnabled && update.supportsFastUpdate) {
148+
if (fastUpdatesEnabled) {
149149
if (this.productService.target === 'user') {
150150
this.doApplyUpdate();
151151
} else {
@@ -239,7 +239,7 @@ export class Win32UpdateService extends AbstractUpdateService {
239239

240240
this.logService.trace('update#quitAndInstall(): running raw#quitAndInstall()');
241241

242-
if (this.state.update.supportsFastUpdate && this.availableUpdate.updateFilePath) {
242+
if (this.availableUpdate.updateFilePath) {
243243
fs.unlinkSync(this.availableUpdate.updateFilePath);
244244
} else {
245245
spawn(this.availableUpdate.packagePath, ['/silent', '/log', '/mergetasks=runcode,!desktopicon,!quicklaunchicon'], {
@@ -259,7 +259,7 @@ export class Win32UpdateService extends AbstractUpdateService {
259259
}
260260

261261
const fastUpdatesEnabled = this.configurationService.getValue('update.enableWindowsBackgroundUpdates');
262-
const update: IUpdate = { version: 'unknown', productVersion: 'unknown', supportsFastUpdate: !!fastUpdatesEnabled };
262+
const update: IUpdate = { version: 'unknown', productVersion: 'unknown' };
263263

264264
this.setState(State.Downloading(update));
265265
this.availableUpdate = { packagePath };

0 commit comments

Comments
 (0)