Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Sep 26, 2019
1 parent b41f18a commit 1fbf021
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client/common/insidersBuild/insidersExtensionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export class InsidersExtensionService implements IExtensionSingleActivationServi
private async promptToEnrollBackToInsidersIfApplicable(installChannel: ExtensionChannels): Promise<boolean> {
if (installChannel === 'off' && !this.extensionChannelService.isChannelUsingDefaultConfiguration) {
// If install channel is explicitly set to off, it means that user has used the insiders program before
// await this.insidersPrompt.promptToEnrollBackToInsiders();
return false;
await this.insidersPrompt.promptToEnrollBackToInsiders();
return true;
}
return false;
}
Expand All @@ -92,8 +92,8 @@ export class InsidersExtensionService implements IExtensionSingleActivationServi
*/
private async promptToInstallInsidersIfApplicable(): Promise<boolean> {
if (this.appEnvironment.channel === 'insiders' && !this.insidersPrompt.hasUserBeenNotified.value && this.extensionChannelService.isChannelUsingDefaultConfiguration) {
// await this.insidersPrompt.promptToInstallInsiders();
return false;
await this.insidersPrompt.promptToInstallInsiders();
return true;
}
return false;
}
Expand All @@ -105,8 +105,8 @@ export class InsidersExtensionService implements IExtensionSingleActivationServi
private async setInsidersChannelToOffIfApplicable(installChannel: ExtensionChannels): Promise<boolean> {
if (installChannel !== 'off' && this.appEnvironment.extensionChannel === 'stable') {
// Install channel is set to "weekly" or "daily" but stable version of extension is installed. Switch channel to "off" to use the installed version
// await this.extensionChannelService.updateChannel('off');
return false;
await this.extensionChannelService.updateChannel('off');
return true;
}
return false;
}
Expand Down

0 comments on commit 1fbf021

Please sign in to comment.