@codingame/monaco-vscode-multi-diff-editor-service-override 40.1.1 → 41.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-multi-diff-editor-service-override",
3
- "version": "40.1.1",
3
+ "version": "41.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - multi-diff-editor service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "40.1.1"
18
+ "@codingame/monaco-vscode-api": "41.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -34,7 +34,7 @@ registerWorkbenchContribution2(
34
34
  WorkbenchPhase.BlockStartup
35
35
  );
36
36
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
37
- EditorPaneDescriptor.create(MultiDiffEditor, MultiDiffEditor.ID, ( localize(21972, "Multi Diff Editor"))),
37
+ EditorPaneDescriptor.create(MultiDiffEditor, MultiDiffEditor.ID, ( localize(21031, "Multi Diff Editor"))),
38
38
  [( new SyncDescriptor(MultiDiffEditorInput))]
39
39
  );
40
40
  ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(MultiDiffEditorInput.ID, MultiDiffEditorSerializer);
@@ -5,8 +5,7 @@ import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/p
5
5
  import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
6
6
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
7
7
  import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
8
- import { MultiDiffEditorFileListFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/common/multiDiffEditor';
9
- import { MultiDiffEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor';
8
+ import { MultiDiffEditorFileListFocusedContext, isMultiDiffEditorFileListHost } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/common/multiDiffEditor';
10
9
 
11
10
  class MultiDiffEditorFileListAccessibilityHelp {
12
11
  constructor() {
@@ -18,24 +17,28 @@ class MultiDiffEditorFileListAccessibilityHelp {
18
17
  getProvider(accessor) {
19
18
  const editorService = accessor.get(IEditorService);
20
19
  const editor = editorService.activeEditorPane;
21
- if (!(editor instanceof MultiDiffEditor)) {
20
+ if (!isMultiDiffEditorFileListHost(editor)) {
22
21
  return undefined;
23
22
  }
24
- const content = [( localize(21973, "You are in the changed files list of a multi diff editor.")), ( localize(
25
- 21974,
26
- "Use the Up and Down Arrow keys to navigate files. In tree mode, use the Left and Right Arrow keys to collapse or expand folders."
27
- )), ( localize(
28
- 21975,
29
- "Press Enter to reveal the selected file and move focus to its diff."
30
- )),
23
+ const actionsHelp = editor.togglesFileListFromEditorHeader ? ( localize(
24
+ 21032,
25
+ "Use Toggle Files, the last action in the header row above the diffs, to show or hide the changed files."
26
+ )) :
31
27
  accessor.get(IWorkbenchEnvironmentService).isSessionsWindow ? ( localize(
32
- 21976,
33
- "Use Toggle Details in the editor toolbar{0} to show or hide the changed files. The Files View & Position submenu in the tab bar's More Actions menu switches between a list and a folder tree, and moves the files to the left or right of the diffs.",
28
+ 21033,
29
+ "Use Toggle Details in the editor toolbar{0} to show or hide the changed files, and the dropdown beside it to switch between a list and a folder tree, or to move them to the left or right of the diffs. In a chat window, the Files View & Position submenu in the tab bar's More Actions menu offers the same options.",
34
30
  "<keybinding:workbench.action.agentSessions.toggleDetails>"
35
31
  )) : ( localize(
36
- 21977,
37
- "Use Toggle Files in the editor toolbar or Command Palette to show or hide the changed files. The Files View & Position submenu in the editor toolbar's More Actions menu switches between a list and a folder tree, and moves the files to the left or right of the diffs."
38
- ))].join("\n");
32
+ 21034,
33
+ "Use Toggle Files in the editor toolbar or Command Palette to show or hide the changed files, and the dropdown beside it to switch between a list and a folder tree, or to move them to the left or right of the diffs."
34
+ ));
35
+ const content = [( localize(21035, "You are in the changed files list of a multi diff editor.")), ( localize(
36
+ 21036,
37
+ "Use the Up and Down Arrow keys to navigate files. In tree mode, use the Left and Right Arrow keys to collapse or expand folders."
38
+ )), ( localize(
39
+ 21037,
40
+ "Press Enter to reveal the selected file and move focus to its diff."
41
+ )), actionsHelp].join("\n");
39
42
  return ( new AccessibleContentProvider(AccessibleViewProviderId.MultiDiffEditorFileList, {
40
43
  type: AccessibleViewType.Help
41
44
  }, () => content, () => editor.focusFileList(), AccessibilityVerbositySettingId.MultiDiffEditorFileList));