From c2d09aaeac1ef0118ad3296ca58310aca19f1fb8 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Fri, 22 Jan 2021 23:22:36 +0100 Subject: [PATCH] Open Language Mode picker for new file (fixes #110330) --- .../contrib/welcome/walkThrough/browser/walkThroughPart.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts b/src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts index 2a676957008..5422d519840 100644 --- a/src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts +++ b/src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts @@ -67,6 +67,7 @@ export class WalkThroughPart extends EditorPane { private lastFocus: HTMLElement | undefined; private size: Dimension | undefined; private editorMemento: IEditorMemento; + private tasExperimentService: ITASExperimentService | undefined; constructor( @ITelemetryService telemetryService: ITelemetryService, @@ -81,11 +82,12 @@ export class WalkThroughPart extends EditorPane { @INotificationService private readonly notificationService: INotificationService, @IExtensionService private readonly extensionService: IExtensionService, @IEditorGroupsService editorGroupService: IEditorGroupsService, - @optional(ITASExperimentService) private tasExperimentService: ITASExperimentService | undefined, + @optional(ITASExperimentService) tasExperimentService: ITASExperimentService, ) { super(WalkThroughPart.ID, telemetryService, themeService, storageService); this.editorFocus = WALK_THROUGH_FOCUS.bindTo(this.contextKeyService); this.editorMemento = this.getEditorMemento(editorGroupService, WALK_THROUGH_EDITOR_VIEW_STATE_PREFERENCE_KEY); + this.tasExperimentService = tasExperimentService; } createEditor(container: HTMLElement): void { -- GitLab