Skip to content

Commit

Permalink
Properly initialize scenario recommendations (microsoft#10434)
Browse files Browse the repository at this point in the history
  • Loading branch information
kburtram authored May 15, 2020
1 parent dd697b3 commit ebf4722
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class ExtensionRecommendationsService extends Disposable implements IExte
this.dynamicWorkspaceRecommendations = instantiationService.createInstance(DynamicWorkspaceRecommendations, isExtensionAllowedToBeRecommended);
this.keymapRecommendations = instantiationService.createInstance(KeymapRecommendations, isExtensionAllowedToBeRecommended);
this.staticRecommendations = instantiationService.createInstance(StaticRecommendations, isExtensionAllowedToBeRecommended); // {{SQL CARBON EDIT}} add ours
this.scenarioRecommendations = instantiationService.createInstance(ScenarioRecommendations, isExtensionAllowedToBeRecommended); // {{SQL CARBON EDIT}} add ours

if (!this.isEnabled()) {
this.sessionSeed = 0;
Expand All @@ -99,6 +100,7 @@ export class ExtensionRecommendationsService extends Disposable implements IExte
this.experimentalRecommendations.activate();
this.keymapRecommendations.activate();
this.staticRecommendations.activate(); // {{SQL CARBON EDIT}} add ours
this.scenarioRecommendations.activate(); // {{SQL CARBON EDIT}} add ours
if (!this.configurationService.getValue<boolean>(ShowRecommendationsOnlyOnDemandKey)) {
lifecycleService.when(LifecyclePhase.Eventually).then(() => this.activateProactiveRecommendations());
}
Expand Down

0 comments on commit ebf4722

Please sign in to comment.