@codingame/monaco-vscode-walkthrough-service-override 30.0.0 → 31.0.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 (26) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +29 -0
  3. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +34 -0
  4. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js +31 -20
  5. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/media/agentSessionsWelcome.css +30 -6
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +33 -20
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +52 -43
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +2 -2
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +7 -7
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +1 -1
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +19 -0
  17. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.d.ts +4 -1
  18. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +31 -4
  19. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +156 -156
  20. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
  21. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
  22. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
  23. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
  24. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
  25. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +2 -2
  26. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +1 -1
@@ -6,8 +6,8 @@ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/th
6
6
  const gettingStartedUncheckedCodicon = registerIcon(
7
7
  "getting-started-step-unchecked",
8
8
  Codicon.circleLargeOutline,
9
- ( localize(15336, "Used to represent walkthrough steps which have not been completed"))
9
+ ( localize(15473, "Used to represent walkthrough steps which have not been completed"))
10
10
  );
11
- const gettingStartedCheckedCodicon = registerIcon("getting-started-step-checked", Codicon.passFilled, ( localize(15337, "Used to represent walkthrough steps which have been completed")));
11
+ const gettingStartedCheckedCodicon = registerIcon("getting-started-step-checked", Codicon.passFilled, ( localize(15474, "Used to represent walkthrough steps which have been completed")));
12
12
 
13
13
  export { gettingStartedCheckedCodicon, gettingStartedUncheckedCodicon };
@@ -52,7 +52,7 @@ class GettingStartedInput extends EditorInput {
52
52
  this._returnToCommand = options.returnToCommand;
53
53
  }
54
54
  getName() {
55
- return this.walkthroughPageTitle ? ( localize(15338, "Walkthrough: {0}", this.walkthroughPageTitle)) : ( localize(15339, "Welcome"));
55
+ return this.walkthroughPageTitle ? ( localize(15475, "Walkthrough: {0}", this.walkthroughPageTitle)) : ( localize(15476, "Welcome"));
56
56
  }
57
57
  get selectedCategory() {
58
58
  return this._selectedCategory;
@@ -11,12 +11,12 @@ registerAction2(class extends Action2 {
11
11
  constructor() {
12
12
  super({
13
13
  id: "resetGettingStartedProgress",
14
- category: ( localize2(15340, "Developer")),
15
- title: ( localize2(15341, "Reset Welcome Page Walkthrough Progress")),
14
+ category: ( localize2(15477, "Developer")),
15
+ title: ( localize2(15478, "Reset Welcome Page Walkthrough Progress")),
16
16
  f1: true,
17
17
  metadata: {
18
18
  description: ( localize2(
19
- 15342,
19
+ 15479,
20
20
  "Reset the progress of all Walkthrough steps on the Welcome Page to make them appear as if they are being viewed for the first time, providing a fresh start to the getting started experience."
21
21
  ))
22
22
  }
@@ -40,7 +40,7 @@ import { GettingStartedInput } from './gettingStartedInput.js';
40
40
  const HasMultipleNewFileEntries = ( new RawContextKey("hasMultipleNewFileEntries", false));
41
41
  const hiddenEntriesConfigurationKey = "workbench.welcomePage.hiddenCategories";
42
42
  const walkthroughMetadataConfigurationKey = "workbench.welcomePage.walkthroughMetadata";
43
- const BUILT_IN_SOURCE = ( localize(15343, "Built-In"));
43
+ const BUILT_IN_SOURCE = ( localize(15480, "Built-In"));
44
44
  const DAYS = 24 * 60 * 60 * 1000;
45
45
  const NEW_WALKTHROUGH_TIME = 7 * DAYS;
46
46
  let WalkthroughsService = class WalkthroughsService extends Disposable {
@@ -916,6 +916,25 @@
916
916
  margin: 0;
917
917
  }
918
918
 
919
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories > .gettingStartedCategoriesContainer > .footer > .agents-banner {
920
+ display: flex;
921
+ align-items: center;
922
+ justify-content: center;
923
+ gap: 8px;
924
+ margin-bottom: 12px;
925
+ }
926
+
927
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories > .gettingStartedCategoriesContainer > .footer > .agents-banner .agents-banner-button {
928
+ display: flex;
929
+ align-items: center;
930
+ padding: 6px 12px;
931
+ border-radius: 50px;
932
+ cursor: pointer;
933
+ font-family: inherit;
934
+ font-size: 13px;
935
+ margin-bottom: 20px;
936
+ }
937
+
919
938
  .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories > .gettingStartedCategoriesContainer .index-list.start-container {
920
939
  min-height: 156px;
921
940
  margin-bottom: 16px;
@@ -14,6 +14,7 @@ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform
14
14
  import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
15
15
  import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service";
16
16
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
17
+ import { IOnboardingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeOnboarding/common/onboardingService.service";
17
18
  export declare const restoreWalkthroughsConfigurationKey = "workbench.welcomePage.restorableWalkthroughs";
18
19
  export type RestoreWalkthroughsConfigurationValue = {
19
20
  folder: string;
@@ -38,11 +39,13 @@ export declare class StartupPageRunnerContribution extends Disposable implements
38
39
  private readonly storageService;
39
40
  private readonly notificationService;
40
41
  private readonly contextKeyService;
42
+ private readonly onboardingService;
41
43
  static readonly ID = "workbench.contrib.startupPageRunner";
42
- constructor(configurationService: IConfigurationService, editorService: IEditorService, fileService: IFileService, contextService: IWorkspaceContextService, lifecycleService: ILifecycleService, layoutService: IWorkbenchLayoutService, productService: IProductService, commandService: ICommandService, environmentService: IWorkbenchEnvironmentService, storageService: IStorageService, notificationService: INotificationService, contextKeyService: IContextKeyService);
44
+ constructor(configurationService: IConfigurationService, editorService: IEditorService, fileService: IFileService, contextService: IWorkspaceContextService, lifecycleService: ILifecycleService, layoutService: IWorkbenchLayoutService, productService: IProductService, commandService: ICommandService, environmentService: IWorkbenchEnvironmentService, storageService: IStorageService, notificationService: INotificationService, contextKeyService: IContextKeyService, onboardingService: IOnboardingService);
43
45
  private run;
44
46
  private tryOpenWalkthroughForFolder;
45
47
  private openReadme;
46
48
  private openGettingStarted;
47
49
  private shouldPreserveFocus;
50
+ private tryShowOnboarding;
48
51
  }
@@ -31,6 +31,9 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
31
31
  import { AuxiliaryBarMaximizedContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
32
32
  import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
33
33
  import { getActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
34
+ import { isWeb } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
35
+ import { IOnboardingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeOnboarding/common/onboardingService.service';
36
+ import { ONBOARDING_STORAGE_KEY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes';
34
37
 
35
38
  const restoreWalkthroughsConfigurationKey = "workbench.welcomePage.restorableWalkthroughs";
36
39
  const configurationKey = "workbench.startupEditor";
@@ -46,7 +49,7 @@ let StartupPageEditorResolverContribution = class StartupPageEditorResolverContr
46
49
  this._register(
47
50
  editorResolverService.registerEditor(`${GettingStartedInput.RESOURCE.scheme}:/**`, {
48
51
  id: GettingStartedInput.ID,
49
- label: ( localize(15344, "Welcome Page")),
52
+ label: ( localize(15481, "Welcome Page")),
50
53
  priority: RegisteredEditorPriority.builtin
51
54
  }, {
52
55
  singlePerResource: true,
@@ -86,7 +89,8 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
86
89
  environmentService,
87
90
  storageService,
88
91
  notificationService,
89
- contextKeyService
92
+ contextKeyService,
93
+ onboardingService
90
94
  ) {
91
95
  super();
92
96
  this.configurationService = configurationService;
@@ -101,6 +105,8 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
101
105
  this.storageService = storageService;
102
106
  this.notificationService = notificationService;
103
107
  this.contextKeyService = contextKeyService;
108
+ this.onboardingService = onboardingService;
109
+ this.tryShowOnboarding();
104
110
  this.run().then(undefined, onUnexpectedError);
105
111
  this._register(this.editorService.onDidCloseEditor(e => {
106
112
  if (e.editor instanceof GettingStartedInput) {
@@ -178,7 +184,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
178
184
  locked: true
179
185
  }).catch(error => {
180
186
  this.notificationService.error(( localize(
181
- 15345,
187
+ 15482,
182
188
  "Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.",
183
189
  error.message
184
190
  )));
@@ -222,8 +228,29 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
222
228
  }
223
229
  return true;
224
230
  }
231
+ tryShowOnboarding() {
232
+ if (this.environmentService.skipWelcome) {
233
+ return;
234
+ }
235
+ if (isWeb) {
236
+ return;
237
+ }
238
+ if (!this.configurationService.getValue("workbench.welcomePage.experimentalOnboarding")) {
239
+ return;
240
+ }
241
+ if (!this.storageService.isNew(StorageScope.APPLICATION)) {
242
+ return;
243
+ }
244
+ if (this.storageService.getBoolean(ONBOARDING_STORAGE_KEY, StorageScope.APPLICATION)) {
245
+ return;
246
+ }
247
+ this.onboardingService.show();
248
+ this._register(this.onboardingService.onDidDismiss(() => {
249
+ this.storageService.store(ONBOARDING_STORAGE_KEY, true, StorageScope.APPLICATION, StorageTarget.USER);
250
+ }));
251
+ }
225
252
  };
226
- StartupPageRunnerContribution = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, IEditorService)), ( __param(2, IFileService)), ( __param(3, IWorkspaceContextService)), ( __param(4, ILifecycleService)), ( __param(5, IWorkbenchLayoutService)), ( __param(6, IProductService)), ( __param(7, ICommandService)), ( __param(8, IWorkbenchEnvironmentService)), ( __param(9, IStorageService)), ( __param(10, INotificationService)), ( __param(11, IContextKeyService))], StartupPageRunnerContribution));
253
+ StartupPageRunnerContribution = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, IEditorService)), ( __param(2, IFileService)), ( __param(3, IWorkspaceContextService)), ( __param(4, ILifecycleService)), ( __param(5, IWorkbenchLayoutService)), ( __param(6, IProductService)), ( __param(7, ICommandService)), ( __param(8, IWorkbenchEnvironmentService)), ( __param(9, IStorageService)), ( __param(10, INotificationService)), ( __param(11, IContextKeyService)), ( __param(12, IOnboardingService))], StartupPageRunnerContribution));
227
254
  function isStartupPageEnabled(configurationService, contextService, environmentService) {
228
255
  if (environmentService.skipWelcome) {
229
256
  return false;