@codingame/monaco-vscode-welcome-service-override 36.2.7 → 37.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/index.js +1 -0
  2. package/package.json +3 -2
  3. package/vscode/src/vs/workbench/contrib/onboarding/browser/media/spotlight.css +5 -0
  4. package/vscode/src/vs/workbench/contrib/onboarding/browser/onboarding.contribution.js +37 -7
  5. package/vscode/src/vs/workbench/contrib/onboarding/browser/onboardingService.d.ts +2 -0
  6. package/vscode/src/vs/workbench/contrib/onboarding/browser/onboardingService.js +36 -5
  7. package/vscode/src/vs/workbench/contrib/onboarding/browser/sequence/runOnboardingStep.d.ts +17 -0
  8. package/vscode/src/vs/workbench/contrib/onboarding/browser/sequence/runOnboardingStep.js +32 -0
  9. package/vscode/src/vs/workbench/contrib/onboarding/browser/sequence/sequencePresentation.d.ts +10 -0
  10. package/vscode/src/vs/workbench/contrib/onboarding/browser/sequence/sequencePresentation.js +154 -0
  11. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/onboardingTarget.d.ts +7 -1
  12. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/onboardingTarget.js +5 -1
  13. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/spotlightOverlay.d.ts +13 -9
  14. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/spotlightOverlay.js +60 -15
  15. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/spotlightPresentation.d.ts +5 -1
  16. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/spotlightPresentation.js +222 -49
  17. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/spotlightTypes.d.ts +23 -5
  18. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingPresentation.d.ts +4 -0
  19. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingScenario.d.ts +9 -8
  20. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingScenarioService.d.ts +7 -0
  21. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingScenarioService.js +2 -1
  22. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingSequence.d.ts +45 -0
  23. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingSequence.js +29 -0
  24. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.contribution.d.ts +1 -0
  25. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.contribution.js +158 -0
  26. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.d.ts +105 -0
  27. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js +765 -0
  28. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/media/agentSessionsWelcome.css +564 -0
  29. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/browser/media/variationA.css +2 -149
  30. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/browser/onboardingVariationA.d.ts +5 -5
  31. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/browser/onboardingVariationA.js +61 -131
  32. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/browser/welcomeOnboarding.contribution.js +1 -1
  33. package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +10 -10
  34. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +2 -2
  35. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +8 -8
@@ -2,9 +2,10 @@
2
2
 
3
3
  const ONBOARDING_ENABLED_CONFIG = 'onboarding.enabled';
4
4
  const ONBOARDING_DEVELOPER_MODE_CONFIG = 'onboarding.developerMode';
5
+ const ONBOARDING_DEVELOPER_MODE_VARIATIONS_CONFIG = 'onboarding.developerModeVariations';
5
6
  function isOnboardingDeveloperModeEnabled(configurationService, scenarioId) {
6
7
  const value = configurationService.getValue(ONBOARDING_DEVELOPER_MODE_CONFIG);
7
8
  return typeof value === 'object' && value !== null && value[scenarioId] === true;
8
9
  }
9
10
 
10
- export { ONBOARDING_DEVELOPER_MODE_CONFIG, ONBOARDING_ENABLED_CONFIG, isOnboardingDeveloperModeEnabled };
11
+ export { ONBOARDING_DEVELOPER_MODE_CONFIG, ONBOARDING_DEVELOPER_MODE_VARIATIONS_CONFIG, ONBOARDING_ENABLED_CONFIG, isOnboardingDeveloperModeEnabled };
@@ -0,0 +1,45 @@
1
+ import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
2
+ import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { IOnboardingRunContext } from "./onboardingPresentation.js";
4
+ import { OnboardingDismissReason } from "./onboardingScenario.js";
5
+ export declare const ONBOARDING_SEQUENCE_PRESENTATION_KIND = "sequence";
6
+ /** One entry in a heterogeneous onboarding sequence. */
7
+ export interface IOnboardingSequenceStep<TPayload = unknown> {
8
+ readonly id: string;
9
+ readonly kind: string;
10
+ readonly payload: TPayload;
11
+ }
12
+ /** Payload rendered by the sequence presentation. */
13
+ export interface IOnboardingSequencePayload {
14
+ readonly steps: readonly IOnboardingSequenceStep[];
15
+ }
16
+ /** Context passed to a sequence step presentation. */
17
+ export interface IOnboardingSequenceStepContext extends IOnboardingRunContext {
18
+ readonly cancellationToken: CancellationToken;
19
+ readonly stepIndex: number;
20
+ readonly visualStepIndex: number;
21
+ readonly visualStepCount: number;
22
+ readonly canGoBack: boolean;
23
+ readonly isLastVisualStep: boolean;
24
+ }
25
+ /** Traversal result returned by one sequence step. */
26
+ export interface IOnboardingSequenceStepResult {
27
+ readonly action: "next" | "back" | "skipStep" | "skipSequence" | "abort";
28
+ readonly shown: boolean;
29
+ readonly dismissReason?: OnboardingDismissReason;
30
+ }
31
+ /** Renders one kind of sequence step. */
32
+ export interface IOnboardingSequenceStepPresentation {
33
+ readonly kind: string;
34
+ /** Whether this kind participates in visual progress counters. */
35
+ readonly countsAsVisualStep: boolean;
36
+ /** Whether a forward revisit skips a step that already ran. */
37
+ readonly runOnce?: boolean;
38
+ runStep(step: IOnboardingSequenceStep, context: IOnboardingSequenceStepContext): Promise<IOnboardingSequenceStepResult>;
39
+ }
40
+ /** Registry of sequence step presentations by kind. */
41
+ export interface IOnboardingSequenceStepPresentationRegistry {
42
+ register(presentation: IOnboardingSequenceStepPresentation): IDisposable;
43
+ get(kind: string): IOnboardingSequenceStepPresentation | undefined;
44
+ }
45
+ export declare const onboardingSequenceStepPresentationRegistry: IOnboardingSequenceStepPresentationRegistry;
@@ -0,0 +1,29 @@
1
+
2
+
3
+ const ONBOARDING_SEQUENCE_PRESENTATION_KIND = "sequence";
4
+ class OnboardingSequenceStepPresentationRegistry {
5
+ constructor() {
6
+ this._presentations = ( new Map());
7
+ }
8
+ register(presentation) {
9
+ if (( this._presentations.has(presentation.kind))) {
10
+ throw ( new Error(
11
+ `An onboarding sequence step presentation with kind '${presentation.kind}' is already registered.`
12
+ ));
13
+ }
14
+ this._presentations.set(presentation.kind, presentation);
15
+ return {
16
+ dispose: () => {
17
+ if (this._presentations.get(presentation.kind) === presentation) {
18
+ this._presentations.delete(presentation.kind);
19
+ }
20
+ }
21
+ };
22
+ }
23
+ get(kind) {
24
+ return this._presentations.get(kind);
25
+ }
26
+ }
27
+ const onboardingSequenceStepPresentationRegistry = ( new OnboardingSequenceStepPresentationRegistry());
28
+
29
+ export { ONBOARDING_SEQUENCE_PRESENTATION_KIND, onboardingSequenceStepPresentationRegistry };
@@ -0,0 +1,158 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
+ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
6
+ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
7
+ import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
8
+ import { EditorPaneDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/editor';
9
+ import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
10
+ import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
11
+ import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
12
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
13
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
14
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
15
+ import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
16
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
17
+ import { AuxiliaryBarMaximizedContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
18
+ import { StorageScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
19
+ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
20
+ import { AgentSessionsWelcomeInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput';
21
+ import { AgentSessionsWelcomeInputSerializer, AgentSessionsWelcomePage } from './agentSessionsWelcome.js';
22
+ import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
23
+ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
24
+ import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
25
+ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
26
+ import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
27
+
28
+ const agentSessionsWelcomeInputTypeId = "workbench.editors.agentSessionsWelcomeInput";
29
+ ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(agentSessionsWelcomeInputTypeId, AgentSessionsWelcomeInputSerializer);
30
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
31
+ EditorPaneDescriptor.create(AgentSessionsWelcomePage, AgentSessionsWelcomePage.ID, ( localize(18752, "Agent Sessions Welcome"))),
32
+ [( new SyncDescriptor(AgentSessionsWelcomeInput))]
33
+ );
34
+ const getWorkspaceKind = workspaceContextService => {
35
+ const state = workspaceContextService.getWorkbenchState();
36
+ switch (state) {
37
+ case WorkbenchState.EMPTY:
38
+ return "empty";
39
+ case WorkbenchState.FOLDER:
40
+ return "folder";
41
+ case WorkbenchState.WORKSPACE:
42
+ return "workspace";
43
+ default:
44
+ return "empty";
45
+ }
46
+ };
47
+ let AgentSessionsWelcomeEditorResolverContribution = class AgentSessionsWelcomeEditorResolverContribution extends Disposable {
48
+ static {
49
+ this.ID = "workbench.contrib.agentSessionsWelcomeEditorResolver";
50
+ }
51
+ constructor(editorResolverService, instantiationService, workspaceContextService) {
52
+ super();
53
+ this._register(editorResolverService.registerEditor(
54
+ `${AgentSessionsWelcomeInput.RESOURCE.scheme}:${AgentSessionsWelcomeInput.RESOURCE.authority}/**`,
55
+ {
56
+ id: AgentSessionsWelcomePage.ID,
57
+ label: ( localize(18753, "Agent Sessions Welcome")),
58
+ priority: RegisteredEditorPriority.builtin
59
+ },
60
+ {
61
+ singlePerResource: true,
62
+ canSupportResource: resource => resource.scheme === AgentSessionsWelcomeInput.RESOURCE.scheme && resource.authority === AgentSessionsWelcomeInput.RESOURCE.authority
63
+ },
64
+ {
65
+ createEditorInput: () => {
66
+ return {
67
+ editor: instantiationService.createInstance(AgentSessionsWelcomeInput, {
68
+ workspaceKind: getWorkspaceKind(workspaceContextService)
69
+ })
70
+ };
71
+ }
72
+ }
73
+ ));
74
+ }
75
+ };
76
+ AgentSessionsWelcomeEditorResolverContribution = ( __decorate([( __param(0, IEditorResolverService)), ( __param(1, IInstantiationService)), ( __param(2, IWorkspaceContextService))], AgentSessionsWelcomeEditorResolverContribution));
77
+ registerAction2(class OpenAgentSessionsWelcomeAction extends Action2 {
78
+ constructor() {
79
+ super({
80
+ id: AgentSessionsWelcomePage.COMMAND_ID,
81
+ title: ( localize(18754, "Open Agent Sessions Welcome")),
82
+ precondition: ChatContextKeys.enabled
83
+ });
84
+ }
85
+ async run(accessor) {
86
+ const editorService = accessor.get(IEditorService);
87
+ const instantiationService = accessor.get(IInstantiationService);
88
+ const workspaceContextService = accessor.get(IWorkspaceContextService);
89
+ const input = instantiationService.createInstance(AgentSessionsWelcomeInput, {
90
+ initiator: "command",
91
+ workspaceKind: getWorkspaceKind(workspaceContextService)
92
+ });
93
+ await editorService.openEditor(input, {
94
+ pinned: true
95
+ });
96
+ }
97
+ });
98
+ let AgentSessionsWelcomeRunnerContribution = class AgentSessionsWelcomeRunnerContribution extends Disposable {
99
+ static {
100
+ this.ID = "workbench.contrib.agentSessionsWelcomeRunner";
101
+ }
102
+ constructor(
103
+ configurationService,
104
+ editorService,
105
+ editorGroupsService,
106
+ instantiationService,
107
+ contextKeyService,
108
+ storageService,
109
+ workspaceContextService,
110
+ chatEntitlementService
111
+ ) {
112
+ super();
113
+ this.configurationService = configurationService;
114
+ this.editorService = editorService;
115
+ this.editorGroupsService = editorGroupsService;
116
+ this.instantiationService = instantiationService;
117
+ this.contextKeyService = contextKeyService;
118
+ this.storageService = storageService;
119
+ this.workspaceContextService = workspaceContextService;
120
+ this.chatEntitlementService = chatEntitlementService;
121
+ this.run();
122
+ }
123
+ async run() {
124
+ if (this.chatEntitlementService.sentiment.hidden) {
125
+ return;
126
+ }
127
+ const startupEditor = this.configurationService.getValue("workbench.startupEditor");
128
+ if (startupEditor !== "agentSessionsWelcomePage") {
129
+ return;
130
+ }
131
+ await this.editorGroupsService.whenReady;
132
+ if (AuxiliaryBarMaximizedContext.getValue(this.contextKeyService)) {
133
+ return;
134
+ }
135
+ const hasPrefillData = !!this.storageService.get("chat.welcomeViewPrefill", StorageScope.APPLICATION);
136
+ if (this.editorService.activeEditor && !hasPrefillData) {
137
+ return;
138
+ }
139
+ const input = this.instantiationService.createInstance(AgentSessionsWelcomeInput, {
140
+ initiator: "startup",
141
+ workspaceKind: getWorkspaceKind(this.workspaceContextService)
142
+ });
143
+ await this.editorService.openEditor(input, {
144
+ pinned: false
145
+ });
146
+ }
147
+ };
148
+ AgentSessionsWelcomeRunnerContribution = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, IEditorService)), ( __param(2, IEditorGroupsService)), ( __param(3, IInstantiationService)), ( __param(4, IContextKeyService)), ( __param(5, IStorageService)), ( __param(6, IWorkspaceContextService)), ( __param(7, IChatEntitlementService))], AgentSessionsWelcomeRunnerContribution));
149
+ registerWorkbenchContribution2(
150
+ AgentSessionsWelcomeEditorResolverContribution.ID,
151
+ AgentSessionsWelcomeEditorResolverContribution,
152
+ WorkbenchPhase.BlockStartup
153
+ );
154
+ registerWorkbenchContribution2(
155
+ AgentSessionsWelcomeRunnerContribution.ID,
156
+ AgentSessionsWelcomeRunnerContribution,
157
+ WorkbenchPhase.AfterRestored
158
+ );
@@ -0,0 +1,105 @@
1
+ import { Dimension } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
2
+ import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
3
+ import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
4
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
6
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
7
+ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
8
+ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
9
+ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
10
+ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
11
+ import { EditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane";
12
+ import { IEditorOpenContext, IEditorSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
13
+ import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
14
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
15
+ import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
16
+ import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
17
+ import { AgentSessionsWelcomeEditorOptions, AgentSessionsWelcomeInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput";
18
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
19
+ import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
20
+ import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
21
+ import { IWalkthroughsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service";
22
+ import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
23
+ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
24
+ import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
25
+ import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
26
+ import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
27
+ import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
28
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
29
+ export declare class AgentSessionsWelcomePage extends EditorPane {
30
+ private readonly storageService;
31
+ private readonly instantiationService;
32
+ private readonly layoutService;
33
+ private readonly commandService;
34
+ private readonly editorService;
35
+ private readonly agentSessionsService;
36
+ private readonly configurationService;
37
+ private readonly productService;
38
+ private readonly walkthroughsService;
39
+ private readonly chatService;
40
+ private readonly chatEntitlementService;
41
+ private readonly markdownRendererService;
42
+ private readonly workspaceContextService;
43
+ private readonly workspacesService;
44
+ private readonly hostService;
45
+ private readonly workspaceTrustManagementService;
46
+ private readonly viewDescriptorService;
47
+ private readonly chatWidgetService;
48
+ private readonly logService;
49
+ static readonly ID = "agentSessionsWelcomePage";
50
+ static readonly COMMAND_ID = "workbench.action.openAgentSessionsWelcome";
51
+ private container;
52
+ private contentContainer;
53
+ private scrollableElement;
54
+ private chatWidget;
55
+ private chatModelRef;
56
+ private sessionsControl;
57
+ private sessionsControlContainer;
58
+ private readonly sessionsControlDisposables;
59
+ private readonly contentDisposables;
60
+ private contextService;
61
+ private walkthroughs;
62
+ private _selectedSessionProvider;
63
+ private _selectedWorkspace;
64
+ private _recentTrustedWorkspaces;
65
+ private _isEmptyWorkspace;
66
+ private _workspaceKind;
67
+ private _openedAt;
68
+ private _closedBy?;
69
+ private _storedInput;
70
+ constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService, instantiationService: IInstantiationService, contextKeyService: IContextKeyService, layoutService: IWorkbenchLayoutService, commandService: ICommandService, editorService: IEditorService, agentSessionsService: IAgentSessionsService, configurationService: IConfigurationService, productService: IProductService, walkthroughsService: IWalkthroughsService, chatService: IChatService, chatEntitlementService: IChatEntitlementService, markdownRendererService: IMarkdownRendererService, workspaceContextService: IWorkspaceContextService, workspacesService: IWorkspacesService, hostService: IHostService, workspaceTrustManagementService: IWorkspaceTrustManagementService, viewDescriptorService: IViewDescriptorService, chatWidgetService: IChatWidgetService, logService: ILogService);
71
+ protected createEditor(parent: HTMLElement): void;
72
+ setInput(input: AgentSessionsWelcomeInput, options: AgentSessionsWelcomeEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
73
+ clearInput(): void;
74
+ private buildContent;
75
+ private buildStartEntries;
76
+ private buildChatWidget;
77
+ private getWorkspaceLabel;
78
+ private getWorkspaceUri;
79
+ private handleWorkspaceSubmission;
80
+ /**
81
+ * Reads and applies prefill data from storage (used when transferring chat input from another workspace).
82
+ * This is called after the chat widget is created to populate it with any pending prefill data.
83
+ */
84
+ private applyPrefillData;
85
+ private buildSessionsOrPrompts;
86
+ private buildSessionsGrid;
87
+ private buildWalkthroughs;
88
+ private static readonly PRIVACY_NOTICE_DISMISSED_KEY;
89
+ private buildPrivacyNotice;
90
+ private buildFooter;
91
+ private lastDimension;
92
+ layout(dimension: Dimension): void;
93
+ private layoutChatWidget;
94
+ private layoutSessionsControl;
95
+ focus(): void;
96
+ private revealMaximizedChat;
97
+ private openSessionInChat;
98
+ private closeEditorAndMaximizeAuxiliaryBar;
99
+ private getRecentlyOpenedWorkspaces;
100
+ }
101
+ export declare class AgentSessionsWelcomeInputSerializer implements IEditorSerializer {
102
+ canSerialize(editorInput: AgentSessionsWelcomeInput): boolean;
103
+ serialize(editorInput: AgentSessionsWelcomeInput): string;
104
+ deserialize(instantiationService: IInstantiationService, serializedEditorInput: string): AgentSessionsWelcomeInput;
105
+ }