@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.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 (142) hide show
  1. package/index.d.ts +3 -1
  2. package/index.js +110 -1
  3. package/package.json +64 -10
  4. package/service-override/tools/editorAssets.d.ts +1 -0
  5. package/service-override/tools/editorAssets.js +5 -0
  6. package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
  7. package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
  8. package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
  9. package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
  10. package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
  11. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
  12. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
  13. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
  14. package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
  15. package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
  16. package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
  17. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
  18. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
  19. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
  20. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
  21. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
  22. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
  23. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
  24. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
  25. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
  26. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
  27. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
  28. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
  29. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
  30. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
  31. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
  32. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
  33. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
  34. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
  35. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
  36. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
  37. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
  38. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
  39. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
  40. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
  41. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
  42. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
  43. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
  44. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
  45. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
  46. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
  47. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
  48. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
  49. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
  50. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
  51. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
  52. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
  53. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
  54. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
  55. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
  56. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
  57. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
  58. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
  59. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
  60. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
  61. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
  62. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
  63. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
  64. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
  65. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
  66. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
  67. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
  68. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
  69. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
  70. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
  71. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
  72. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
  73. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
  85. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
  86. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
  87. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
  88. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
  89. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
  90. package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
  91. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
  92. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
  93. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
  94. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
  95. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
  96. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
  97. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
  98. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
  99. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
  100. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
  101. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
  102. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
  103. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
  104. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
  105. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
  106. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
  107. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
  108. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
  109. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
  110. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
  111. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
  112. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
  113. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
  114. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
  115. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
  116. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
  117. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
  118. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
  119. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
  120. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
  121. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
  122. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
  123. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
  124. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
  125. package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
  126. package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
  127. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
  128. package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
  129. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
  130. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
  131. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
  132. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
  133. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
  134. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
  135. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
  136. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
  137. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
  138. package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
  139. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
  140. package/tools/editorAssets.js +0 -4
  141. package/tools/url.js +0 -10
  142. package/viewCommon.js +0 -109
@@ -1,10 +1,17 @@
1
+
1
2
  import { localize2 } from 'vscode/vscode/vs/nls';
3
+ import { GroupLocation, GroupDirection } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
2
4
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
5
+ import { Parts } from '@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common/vscode/vs/workbench/services/layout/browser/layoutService';
3
6
  import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
4
7
  import { Action2, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
5
8
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
9
+ import { Direction } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/base/browser/ui/grid/grid';
10
+ import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
6
11
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
7
12
  import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
13
+ import { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
14
+ import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
8
15
  import { getActiveWindow } from 'vscode/vscode/vs/base/browser/dom';
9
16
  import { isAuxiliaryWindow } from 'vscode/vscode/vs/base/browser/window';
10
17
 
@@ -17,79 +24,79 @@ class BaseNavigationAction extends Action2 {
17
24
  const layoutService = accessor.get(IWorkbenchLayoutService);
18
25
  const editorGroupService = accessor.get(IEditorGroupsService);
19
26
  const paneCompositeService = accessor.get(IPaneCompositePartService);
20
- const isEditorFocus = layoutService.hasFocus("workbench.parts.editor" );
21
- const isPanelFocus = layoutService.hasFocus("workbench.parts.panel" );
22
- const isSidebarFocus = layoutService.hasFocus("workbench.parts.sidebar" );
23
- const isAuxiliaryBarFocus = layoutService.hasFocus("workbench.parts.auxiliarybar" );
27
+ const isEditorFocus = layoutService.hasFocus(Parts.EDITOR_PART);
28
+ const isPanelFocus = layoutService.hasFocus(Parts.PANEL_PART);
29
+ const isSidebarFocus = layoutService.hasFocus(Parts.SIDEBAR_PART);
30
+ const isAuxiliaryBarFocus = layoutService.hasFocus(Parts.AUXILIARYBAR_PART);
24
31
  let neighborPart;
25
32
  if (isEditorFocus) {
26
33
  const didNavigate = this.navigateAcrossEditorGroup(this.toGroupDirection(this.direction), editorGroupService);
27
34
  if (didNavigate) {
28
35
  return;
29
36
  }
30
- neighborPart = layoutService.getVisibleNeighborPart("workbench.parts.editor" , this.direction);
37
+ neighborPart = layoutService.getVisibleNeighborPart(Parts.EDITOR_PART, this.direction);
31
38
  }
32
39
  if (isPanelFocus) {
33
- neighborPart = layoutService.getVisibleNeighborPart("workbench.parts.panel" , this.direction);
40
+ neighborPart = layoutService.getVisibleNeighborPart(Parts.PANEL_PART, this.direction);
34
41
  }
35
42
  if (isSidebarFocus) {
36
- neighborPart = layoutService.getVisibleNeighborPart("workbench.parts.sidebar" , this.direction);
43
+ neighborPart = layoutService.getVisibleNeighborPart(Parts.SIDEBAR_PART, this.direction);
37
44
  }
38
45
  if (isAuxiliaryBarFocus) {
39
- neighborPart = neighborPart = layoutService.getVisibleNeighborPart("workbench.parts.auxiliarybar" , this.direction);
46
+ neighborPart = neighborPart = layoutService.getVisibleNeighborPart(Parts.AUXILIARYBAR_PART, this.direction);
40
47
  }
41
- if (neighborPart === "workbench.parts.editor" ) {
48
+ if (neighborPart === Parts.EDITOR_PART) {
42
49
  if (!this.navigateBackToEditorGroup(this.toGroupDirection(this.direction), editorGroupService)) {
43
- this.navigateToEditorGroup(this.direction === 3 ? 0 : 1 , editorGroupService);
50
+ this.navigateToEditorGroup(this.direction === Direction.Right ? GroupLocation.FIRST : GroupLocation.LAST, editorGroupService);
44
51
  }
45
52
  }
46
- else if (neighborPart === "workbench.parts.sidebar" ) {
53
+ else if (neighborPart === Parts.SIDEBAR_PART) {
47
54
  this.navigateToSidebar(layoutService, paneCompositeService);
48
55
  }
49
- else if (neighborPart === "workbench.parts.panel" ) {
56
+ else if (neighborPart === Parts.PANEL_PART) {
50
57
  this.navigateToPanel(layoutService, paneCompositeService);
51
58
  }
52
- else if (neighborPart === "workbench.parts.auxiliarybar" ) {
59
+ else if (neighborPart === Parts.AUXILIARYBAR_PART) {
53
60
  this.navigateToAuxiliaryBar(layoutService, paneCompositeService);
54
61
  }
55
62
  }
56
63
  async navigateToPanel(layoutService, paneCompositeService) {
57
- if (!layoutService.isVisible("workbench.parts.panel" )) {
64
+ if (!layoutService.isVisible(Parts.PANEL_PART)) {
58
65
  return false;
59
66
  }
60
- const activePanel = paneCompositeService.getActivePaneComposite(1 );
67
+ const activePanel = paneCompositeService.getActivePaneComposite(ViewContainerLocation.Panel);
61
68
  if (!activePanel) {
62
69
  return false;
63
70
  }
64
71
  const activePanelId = activePanel.getId();
65
- const res = await paneCompositeService.openPaneComposite(activePanelId, 1 , true);
72
+ const res = await paneCompositeService.openPaneComposite(activePanelId, ViewContainerLocation.Panel, true);
66
73
  if (!res) {
67
74
  return false;
68
75
  }
69
76
  return res;
70
77
  }
71
78
  async navigateToSidebar(layoutService, paneCompositeService) {
72
- if (!layoutService.isVisible("workbench.parts.sidebar" )) {
79
+ if (!layoutService.isVisible(Parts.SIDEBAR_PART)) {
73
80
  return false;
74
81
  }
75
- const activeViewlet = paneCompositeService.getActivePaneComposite(0 );
82
+ const activeViewlet = paneCompositeService.getActivePaneComposite(ViewContainerLocation.Sidebar);
76
83
  if (!activeViewlet) {
77
84
  return false;
78
85
  }
79
86
  const activeViewletId = activeViewlet.getId();
80
- const viewlet = await paneCompositeService.openPaneComposite(activeViewletId, 0 , true);
87
+ const viewlet = await paneCompositeService.openPaneComposite(activeViewletId, ViewContainerLocation.Sidebar, true);
81
88
  return !!viewlet;
82
89
  }
83
90
  async navigateToAuxiliaryBar(layoutService, paneCompositeService) {
84
- if (!layoutService.isVisible("workbench.parts.auxiliarybar" )) {
91
+ if (!layoutService.isVisible(Parts.AUXILIARYBAR_PART)) {
85
92
  return false;
86
93
  }
87
- const activePanel = paneCompositeService.getActivePaneComposite(2 );
94
+ const activePanel = paneCompositeService.getActivePaneComposite(ViewContainerLocation.AuxiliaryBar);
88
95
  if (!activePanel) {
89
96
  return false;
90
97
  }
91
98
  const activePanelId = activePanel.getId();
92
- const res = await paneCompositeService.openPaneComposite(activePanelId, 2 , true);
99
+ const res = await paneCompositeService.openPaneComposite(activePanelId, ViewContainerLocation.AuxiliaryBar, true);
93
100
  if (!res) {
94
101
  return false;
95
102
  }
@@ -115,18 +122,18 @@ class BaseNavigationAction extends Action2 {
115
122
  }
116
123
  toGroupDirection(direction) {
117
124
  switch (direction) {
118
- case 1 : return 1 ;
119
- case 2 : return 2 ;
120
- case 3 : return 3 ;
121
- case 0 : return 0 ;
125
+ case Direction.Down: return GroupDirection.DOWN;
126
+ case Direction.Left: return GroupDirection.LEFT;
127
+ case Direction.Right: return GroupDirection.RIGHT;
128
+ case Direction.Up: return GroupDirection.UP;
122
129
  }
123
130
  }
124
131
  toOppositeDirection(direction) {
125
132
  switch (direction) {
126
- case 0 : return 1 ;
127
- case 3 : return 2 ;
128
- case 2 : return 3 ;
129
- case 1 : return 0 ;
133
+ case GroupDirection.UP: return GroupDirection.DOWN;
134
+ case GroupDirection.RIGHT: return GroupDirection.LEFT;
135
+ case GroupDirection.LEFT: return GroupDirection.RIGHT;
136
+ case GroupDirection.DOWN: return GroupDirection.UP;
130
137
  }
131
138
  }
132
139
  doNavigateToEditorGroup(scope, editorGroupService) {
@@ -142,40 +149,40 @@ registerAction2(class extends BaseNavigationAction {
142
149
  constructor() {
143
150
  super({
144
151
  id: 'workbench.action.navigateLeft',
145
- title: ( localize2(4466, 'Navigate to the View on the Left')),
152
+ title: ( localize2(2605, 'Navigate to the View on the Left')),
146
153
  category: Categories.View,
147
154
  f1: true
148
- }, 2 );
155
+ }, Direction.Left);
149
156
  }
150
157
  });
151
158
  registerAction2(class extends BaseNavigationAction {
152
159
  constructor() {
153
160
  super({
154
161
  id: 'workbench.action.navigateRight',
155
- title: ( localize2(4467, 'Navigate to the View on the Right')),
162
+ title: ( localize2(2606, 'Navigate to the View on the Right')),
156
163
  category: Categories.View,
157
164
  f1: true
158
- }, 3 );
165
+ }, Direction.Right);
159
166
  }
160
167
  });
161
168
  registerAction2(class extends BaseNavigationAction {
162
169
  constructor() {
163
170
  super({
164
171
  id: 'workbench.action.navigateUp',
165
- title: ( localize2(4468, 'Navigate to the View Above')),
172
+ title: ( localize2(2607, 'Navigate to the View Above')),
166
173
  category: Categories.View,
167
174
  f1: true
168
- }, 0 );
175
+ }, Direction.Up);
169
176
  }
170
177
  });
171
178
  registerAction2(class extends BaseNavigationAction {
172
179
  constructor() {
173
180
  super({
174
181
  id: 'workbench.action.navigateDown',
175
- title: ( localize2(4469, 'Navigate to the View Below')),
182
+ title: ( localize2(2608, 'Navigate to the View Below')),
176
183
  category: Categories.View,
177
184
  f1: true
178
- }, 1 );
185
+ }, Direction.Down);
179
186
  }
180
187
  });
181
188
  class BaseFocusAction extends Action2 {
@@ -194,75 +201,75 @@ class BaseFocusAction extends Action2 {
194
201
  let neighbour;
195
202
  if (windowIsAuxiliary) {
196
203
  switch (part) {
197
- case "workbench.parts.editor" :
198
- neighbour = "workbench.parts.statusbar" ;
204
+ case Parts.EDITOR_PART:
205
+ neighbour = Parts.STATUSBAR_PART;
199
206
  break;
200
207
  default:
201
- neighbour = "workbench.parts.editor" ;
208
+ neighbour = Parts.EDITOR_PART;
202
209
  }
203
210
  }
204
211
  else {
205
212
  switch (part) {
206
- case "workbench.parts.editor" :
207
- neighbour = next ? "workbench.parts.panel" : "workbench.parts.sidebar" ;
213
+ case Parts.EDITOR_PART:
214
+ neighbour = next ? Parts.PANEL_PART : Parts.SIDEBAR_PART;
208
215
  break;
209
- case "workbench.parts.panel" :
210
- neighbour = next ? "workbench.parts.auxiliarybar" : "workbench.parts.editor" ;
216
+ case Parts.PANEL_PART:
217
+ neighbour = next ? Parts.AUXILIARYBAR_PART : Parts.EDITOR_PART;
211
218
  break;
212
- case "workbench.parts.auxiliarybar" :
213
- neighbour = next ? "workbench.parts.statusbar" : "workbench.parts.panel" ;
219
+ case Parts.AUXILIARYBAR_PART:
220
+ neighbour = next ? Parts.STATUSBAR_PART : Parts.PANEL_PART;
214
221
  break;
215
- case "workbench.parts.statusbar" :
216
- neighbour = next ? "workbench.parts.activitybar" : "workbench.parts.auxiliarybar" ;
222
+ case Parts.STATUSBAR_PART:
223
+ neighbour = next ? Parts.ACTIVITYBAR_PART : Parts.AUXILIARYBAR_PART;
217
224
  break;
218
- case "workbench.parts.activitybar" :
219
- neighbour = next ? "workbench.parts.sidebar" : "workbench.parts.statusbar" ;
225
+ case Parts.ACTIVITYBAR_PART:
226
+ neighbour = next ? Parts.SIDEBAR_PART : Parts.STATUSBAR_PART;
220
227
  break;
221
- case "workbench.parts.sidebar" :
222
- neighbour = next ? "workbench.parts.editor" : "workbench.parts.activitybar" ;
228
+ case Parts.SIDEBAR_PART:
229
+ neighbour = next ? Parts.EDITOR_PART : Parts.ACTIVITYBAR_PART;
223
230
  break;
224
231
  default:
225
- neighbour = "workbench.parts.editor" ;
232
+ neighbour = Parts.EDITOR_PART;
226
233
  }
227
234
  }
228
- if (layoutService.isVisible(neighbour, activeWindow) || neighbour === "workbench.parts.editor" ) {
235
+ if (layoutService.isVisible(neighbour, activeWindow) || neighbour === Parts.EDITOR_PART) {
229
236
  return neighbour;
230
237
  }
231
238
  return this.findVisibleNeighbour(layoutService, neighbour, next);
232
239
  }
233
240
  focusNextOrPreviousPart(layoutService, editorService, next) {
234
241
  let currentlyFocusedPart;
235
- if (editorService.activeEditorPane?.hasFocus() || layoutService.hasFocus("workbench.parts.editor" )) {
236
- currentlyFocusedPart = "workbench.parts.editor" ;
242
+ if (editorService.activeEditorPane?.hasFocus() || layoutService.hasFocus(Parts.EDITOR_PART)) {
243
+ currentlyFocusedPart = Parts.EDITOR_PART;
237
244
  }
238
- else if (layoutService.hasFocus("workbench.parts.activitybar" )) {
239
- currentlyFocusedPart = "workbench.parts.activitybar" ;
245
+ else if (layoutService.hasFocus(Parts.ACTIVITYBAR_PART)) {
246
+ currentlyFocusedPart = Parts.ACTIVITYBAR_PART;
240
247
  }
241
- else if (layoutService.hasFocus("workbench.parts.statusbar" )) {
242
- currentlyFocusedPart = "workbench.parts.statusbar" ;
248
+ else if (layoutService.hasFocus(Parts.STATUSBAR_PART)) {
249
+ currentlyFocusedPart = Parts.STATUSBAR_PART;
243
250
  }
244
- else if (layoutService.hasFocus("workbench.parts.sidebar" )) {
245
- currentlyFocusedPart = "workbench.parts.sidebar" ;
251
+ else if (layoutService.hasFocus(Parts.SIDEBAR_PART)) {
252
+ currentlyFocusedPart = Parts.SIDEBAR_PART;
246
253
  }
247
- else if (layoutService.hasFocus("workbench.parts.auxiliarybar" )) {
248
- currentlyFocusedPart = "workbench.parts.auxiliarybar" ;
254
+ else if (layoutService.hasFocus(Parts.AUXILIARYBAR_PART)) {
255
+ currentlyFocusedPart = Parts.AUXILIARYBAR_PART;
249
256
  }
250
- else if (layoutService.hasFocus("workbench.parts.panel" )) {
251
- currentlyFocusedPart = "workbench.parts.panel" ;
257
+ else if (layoutService.hasFocus(Parts.PANEL_PART)) {
258
+ currentlyFocusedPart = Parts.PANEL_PART;
252
259
  }
253
- layoutService.focusPart(currentlyFocusedPart ? this.findVisibleNeighbour(layoutService, currentlyFocusedPart, next) : "workbench.parts.editor" , getActiveWindow());
260
+ layoutService.focusPart(currentlyFocusedPart ? this.findVisibleNeighbour(layoutService, currentlyFocusedPart, next) : Parts.EDITOR_PART, getActiveWindow());
254
261
  }
255
262
  }
256
263
  registerAction2(class extends BaseFocusAction {
257
264
  constructor() {
258
265
  super({
259
266
  id: 'workbench.action.focusNextPart',
260
- title: ( localize2(4470, 'Focus Next Part')),
267
+ title: ( localize2(2609, 'Focus Next Part')),
261
268
  category: Categories.View,
262
269
  f1: true,
263
270
  keybinding: {
264
- primary: 64 ,
265
- weight: 200
271
+ primary: KeyCode.F6,
272
+ weight: KeybindingWeight.WorkbenchContrib
266
273
  }
267
274
  }, true);
268
275
  }
@@ -271,12 +278,12 @@ registerAction2(class extends BaseFocusAction {
271
278
  constructor() {
272
279
  super({
273
280
  id: 'workbench.action.focusPreviousPart',
274
- title: ( localize2(4471, 'Focus Previous Part')),
281
+ title: ( localize2(2610, 'Focus Previous Part')),
275
282
  category: Categories.View,
276
283
  f1: true,
277
284
  keybinding: {
278
- primary: 1024 | 64 ,
279
- weight: 200
285
+ primary: KeyMod.Shift | KeyCode.F6,
286
+ weight: KeybindingWeight.WorkbenchContrib
280
287
  }
281
288
  }, false);
282
289
  }