@codingame/monaco-vscode-multi-diff-editor-service-override 38.0.7 → 39.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 +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js +9 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorAccessibilityHelp.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorAccessibilityHelp.js +44 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-multi-diff-editor-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "39.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": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "39.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js
CHANGED
|
@@ -8,16 +8,23 @@ import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monac
|
|
|
8
8
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
9
9
|
import { MultiDiffEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor';
|
|
10
10
|
import { MultiDiffEditorResolverContribution, MultiDiffEditorInput, MultiDiffEditorSerializer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
|
|
11
|
-
import { GoToFileAction, GoToNextChangeAction, GoToPreviousChangeAction, CollapseAllAction, ExpandAllAction, OpenMultiDiffEditorLayoutDebugAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/actions';
|
|
11
|
+
import { GoToFileAction, GoToNextChangeAction, GoToPreviousChangeAction, FocusFileListAction, ToggleFileListAction, ViewFileListAsTreeAction, ViewFileListAsListAction, PositionFileListLeftAction, PositionFileListRightAction, CollapseAllAction, ExpandAllAction, OpenMultiDiffEditorLayoutDebugAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/actions';
|
|
12
12
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
13
13
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
14
14
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
15
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
16
16
|
import { OpenScmGroupAction, ScmMultiDiffSourceResolverContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver';
|
|
17
|
+
import './multiDiffEditorAccessibilityHelp.js';
|
|
17
18
|
|
|
18
19
|
registerAction2(GoToFileAction);
|
|
19
20
|
registerAction2(GoToNextChangeAction);
|
|
20
21
|
registerAction2(GoToPreviousChangeAction);
|
|
22
|
+
registerAction2(FocusFileListAction);
|
|
23
|
+
registerAction2(ToggleFileListAction);
|
|
24
|
+
registerAction2(ViewFileListAsTreeAction);
|
|
25
|
+
registerAction2(ViewFileListAsListAction);
|
|
26
|
+
registerAction2(PositionFileListLeftAction);
|
|
27
|
+
registerAction2(PositionFileListRightAction);
|
|
21
28
|
registerAction2(CollapseAllAction);
|
|
22
29
|
registerAction2(ExpandAllAction);
|
|
23
30
|
registerAction2(OpenMultiDiffEditorLayoutDebugAction);
|
|
@@ -27,7 +34,7 @@ registerWorkbenchContribution2(
|
|
|
27
34
|
WorkbenchPhase.BlockStartup
|
|
28
35
|
);
|
|
29
36
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
30
|
-
EditorPaneDescriptor.create(MultiDiffEditor, MultiDiffEditor.ID, ( localize(
|
|
37
|
+
EditorPaneDescriptor.create(MultiDiffEditor, MultiDiffEditor.ID, ( localize(21972, "Multi Diff Editor"))),
|
|
31
38
|
[( new SyncDescriptor(MultiDiffEditorInput))]
|
|
32
39
|
);
|
|
33
40
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(MultiDiffEditorInput.ID, MultiDiffEditorSerializer);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorAccessibilityHelp.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
|
+
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
4
|
+
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
5
|
+
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
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';
|
|
10
|
+
|
|
11
|
+
class MultiDiffEditorFileListAccessibilityHelp {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.priority = 105;
|
|
14
|
+
this.name = "multi-diff-editor-file-list";
|
|
15
|
+
this.type = AccessibleViewType.Help;
|
|
16
|
+
this.when = MultiDiffEditorFileListFocusedContext;
|
|
17
|
+
}
|
|
18
|
+
getProvider(accessor) {
|
|
19
|
+
const editorService = accessor.get(IEditorService);
|
|
20
|
+
const editor = editorService.activeEditorPane;
|
|
21
|
+
if (!(editor instanceof MultiDiffEditor)) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
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
|
+
)),
|
|
31
|
+
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.",
|
|
34
|
+
"<keybinding:workbench.action.agentSessions.toggleDetails>"
|
|
35
|
+
)) : ( 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");
|
|
39
|
+
return ( new AccessibleContentProvider(AccessibleViewProviderId.MultiDiffEditorFileList, {
|
|
40
|
+
type: AccessibleViewType.Help
|
|
41
|
+
}, () => content, () => editor.focusFileList(), AccessibilityVerbositySettingId.MultiDiffEditorFileList));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
AccessibleViewRegistry.register(( new MultiDiffEditorFileListAccessibilityHelp()));
|