@codingame/monaco-vscode-view-common-service-override 33.0.9 → 34.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 (48) hide show
  1. package/package.json +3 -3
  2. package/service-override/vs/workbench/contrib/webview/browser/pre/index.html +14 -8
  3. package/vscode/src/vs/sessions/common/theme.d.ts +4 -0
  4. package/vscode/src/vs/sessions/common/theme.js +44 -26
  5. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -57
  6. package/vscode/src/vs/workbench/browser/actions/helpActions.js +20 -20
  7. package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
  8. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
  9. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +168 -168
  10. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +9 -9
  11. package/vscode/src/vs/workbench/browser/parts/titlebar/menubar.contribution.js +8 -8
  12. package/vscode/src/vs/workbench/browser/workbench.zenMode.contribution.js +15 -15
  13. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
  14. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
  16. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +13 -13
  19. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
  20. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
  21. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -29
  22. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
  23. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +9 -3
  24. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
  25. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
  26. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +20 -20
  27. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
  28. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +10 -10
  29. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +3 -3
  30. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
  31. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
  32. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
  33. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
  34. package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
  35. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
  36. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +3 -3
  37. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
  38. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +2 -0
  39. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +13 -1
  40. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
  41. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -0
  42. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
  43. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
  44. package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
  45. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +10 -8
  46. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +0 -1
  47. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +8 -15
  48. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { VIEWS_LOG_ID, VIEWS_LOG_NAME, Extensions, ViewContainerLocation, WindowEnablement, ViewVisibilityState, defaultViewIcon, ViewContainerLocationToString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
3
+ import { VIEWS_LOG_ID, VIEWS_LOG_NAME, Extensions, WindowEnablement, ViewContainerLocation, ViewVisibilityState, defaultViewIcon, ViewContainerLocationToString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
4
4
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
5
5
  import { ContextKeyExpr, RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
6
6
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
@@ -290,17 +290,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
290
290
  return containerId ? this.getViewContainerById(containerId) : this.getDefaultContainerById(viewId);
291
291
  }
292
292
  getViewContainerLocation(viewContainer) {
293
- const location = this.viewContainersCustomLocations.get(viewContainer.id) ?? this.getDefaultViewContainerLocation(viewContainer);
294
- return this.getEffectiveViewContainerLocation(location);
293
+ return this.viewContainersCustomLocations.get(viewContainer.id) ?? this.getDefaultViewContainerLocation(viewContainer);
295
294
  }
296
295
  getDefaultViewContainerLocation(viewContainer) {
297
- return this.getEffectiveViewContainerLocation(this.viewContainersRegistry.getViewContainerLocation(viewContainer));
298
- }
299
- getEffectiveViewContainerLocation(location) {
300
- if (!this.isSessionsWindow && location === ViewContainerLocation.ChatBar) {
301
- return ViewContainerLocation.AuxiliaryBar;
302
- }
303
- return location;
296
+ return this.viewContainersRegistry.getViewContainerLocation(viewContainer);
304
297
  }
305
298
  getDefaultContainerById(viewId) {
306
299
  return this.viewsRegistry.getViewContainer(viewId) ?? null;
@@ -507,7 +500,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
507
500
  mergeViewWithContainerWhenSingleView: true
508
501
  }])),
509
502
  title: {
510
- value: ( localize(17392, "User View Container")),
503
+ value: ( localize(17607, "User View Container")),
511
504
  original: "User View Container"
512
505
  },
513
506
  icon: location === ViewContainerLocation.Sidebar ? defaultViewIcon : undefined,
@@ -820,7 +813,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
820
813
  title: viewDescriptor.name,
821
814
  metadata: {
822
815
  description: ( localize2(
823
- 17393,
816
+ 17608,
824
817
  "Toggles the visibility of the {0} view if the view container it is located in is visible",
825
818
  viewDescriptor.name.value
826
819
  ))
@@ -851,10 +844,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
851
844
  super({
852
845
  id: `${viewDescriptor.id}.removeView`,
853
846
  viewPaneContainerId: viewContainerModel.viewContainer.id,
854
- title: ( localize(17394, "Hide '{0}'", viewDescriptor.name.value)),
847
+ title: ( localize(17609, "Hide '{0}'", viewDescriptor.name.value)),
855
848
  metadata: {
856
849
  description: ( localize2(
857
- 17395,
850
+ 17610,
858
851
  "Hides the {0} view if it is visible and the view container it is located in is visible",
859
852
  viewDescriptor.name.value
860
853
  ))
@@ -884,7 +877,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
884
877
  constructor() {
885
878
  super({
886
879
  id: `${viewContainer.id}.resetViewContainerLocation`,
887
- title: ( localize2(17396, "Reset Location")),
880
+ title: ( localize2(17611, "Reset Location")),
888
881
  menu: [{
889
882
  id: MenuId.ViewContainerTitleContext,
890
883
  group: "1_viewActions",
@@ -285,7 +285,7 @@ let ViewsService = class ViewsService extends Disposable {
285
285
  return this.viewDescriptorService.getViewDescriptorById(( viewId.toString()));
286
286
  }
287
287
  getFocusedViewName() {
288
- const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(17397, "Text Editor")) : undefined;
288
+ const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(17612, "Text Editor")) : undefined;
289
289
  return this.getFocusedView()?.name?.value ?? textEditorFocused ?? "";
290
290
  }
291
291
  async openView(id, focus) {
@@ -391,12 +391,12 @@ let ViewsService = class ViewsService extends Disposable {
391
391
  const originalTitle = typeof title === "string" ? title : title.original;
392
392
  if (viewContainerLocation === ViewContainerLocation.Sidebar) {
393
393
  return {
394
- value: ( localize(17398, "Show {0}", localizedTitle)),
394
+ value: ( localize(17613, "Show {0}", localizedTitle)),
395
395
  original: `Show ${originalTitle}`
396
396
  };
397
397
  } else {
398
398
  return {
399
- value: ( localize(17399, "Toggle {0}", localizedTitle)),
399
+ value: ( localize(17614, "Toggle {0}", localizedTitle)),
400
400
  original: `Toggle ${originalTitle}`
401
401
  };
402
402
  }
@@ -468,12 +468,12 @@ let ViewsService = class ViewsService extends Disposable {
468
468
  const originalTitle = typeof title === "string" ? title : title.original;
469
469
  if (viewContainerLocation === ViewContainerLocation.Sidebar) {
470
470
  return {
471
- value: ( localize(17398, "Show {0}", localizedTitle)),
471
+ value: ( localize(17613, "Show {0}", localizedTitle)),
472
472
  original: `Show ${originalTitle}`
473
473
  };
474
474
  } else {
475
475
  return {
476
- value: ( localize(17399, "Toggle {0}", localizedTitle)),
476
+ value: ( localize(17614, "Toggle {0}", localizedTitle)),
477
477
  original: `Toggle ${originalTitle}`
478
478
  };
479
479
  }
@@ -486,7 +486,7 @@ let ViewsService = class ViewsService extends Disposable {
486
486
  } : undefined,
487
487
  f1: viewDescriptor.openCommandActionDescriptor ? true : undefined,
488
488
  metadata: {
489
- description: ( localize(17400, "Opens view {0}", viewDescriptor.name.value)),
489
+ description: ( localize(17615, "Opens view {0}", viewDescriptor.name.value)),
490
490
  args: [{
491
491
  name: "options",
492
492
  schema: {
@@ -495,7 +495,7 @@ let ViewsService = class ViewsService extends Disposable {
495
495
  "preserveFocus": {
496
496
  type: "boolean",
497
497
  default: false,
498
- description: ( localize(17401, "Whether to preserve the existing focus when opening the view."))
498
+ description: ( localize(17616, "Whether to preserve the existing focus when opening the view."))
499
499
  }
500
500
  }
501
501
  }
@@ -542,7 +542,7 @@ let ViewsService = class ViewsService extends Disposable {
542
542
  registerFocusViewAction(viewDescriptor, category) {
543
543
  return registerAction2(class FocusViewAction extends Action2 {
544
544
  constructor() {
545
- const title = ( localize2(17402, "Focus on {0} View", viewDescriptor.name.value));
545
+ const title = ( localize2(17617, "Focus on {0} View", viewDescriptor.name.value));
546
546
  super({
547
547
  id: viewDescriptor.focusCommand ? viewDescriptor.focusCommand.id : `${viewDescriptor.id}.focus`,
548
548
  title,
@@ -588,7 +588,7 @@ let ViewsService = class ViewsService extends Disposable {
588
588
  constructor() {
589
589
  super({
590
590
  id: `${viewDescriptor.id}.resetViewLocation`,
591
- title: ( localize2(17403, "Reset Location")),
591
+ title: ( localize2(17618, "Reset Location")),
592
592
  menu: [{
593
593
  id: MenuId.ViewTitleContext,
594
594
  when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals("view", viewDescriptor.id)), ( ContextKeyExpr.equals(`${viewDescriptor.id}.defaultViewLocation`, false)))))),