@theia/scm 1.34.3 → 1.34.4

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 (95) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +31 -31
  3. package/lib/browser/decorations/scm-decorations-service.d.ts +14 -14
  4. package/lib/browser/decorations/scm-decorations-service.js +101 -101
  5. package/lib/browser/decorations/scm-navigator-decorator.d.ts +25 -25
  6. package/lib/browser/decorations/scm-navigator-decorator.js +132 -132
  7. package/lib/browser/decorations/scm-tab-bar-decorator.d.ts +17 -17
  8. package/lib/browser/decorations/scm-tab-bar-decorator.js +93 -93
  9. package/lib/browser/dirty-diff/content-lines.d.ts +12 -12
  10. package/lib/browser/dirty-diff/content-lines.js +106 -106
  11. package/lib/browser/dirty-diff/content-lines.spec.d.ts +1 -1
  12. package/lib/browser/dirty-diff/content-lines.spec.js +39 -39
  13. package/lib/browser/dirty-diff/diff-computer.d.ts +29 -29
  14. package/lib/browser/dirty-diff/diff-computer.js +102 -102
  15. package/lib/browser/dirty-diff/diff-computer.spec.d.ts +1 -1
  16. package/lib/browser/dirty-diff/diff-computer.spec.js +315 -315
  17. package/lib/browser/dirty-diff/dirty-diff-decorator.d.ts +14 -14
  18. package/lib/browser/dirty-diff/dirty-diff-decorator.js +98 -98
  19. package/lib/browser/dirty-diff/dirty-diff-module.d.ts +3 -3
  20. package/lib/browser/dirty-diff/dirty-diff-module.js +24 -24
  21. package/lib/browser/scm-amend-component.d.ts +123 -123
  22. package/lib/browser/scm-amend-component.js +423 -423
  23. package/lib/browser/scm-amend-widget.d.ts +20 -20
  24. package/lib/browser/scm-amend-widget.js +101 -101
  25. package/lib/browser/scm-avatar-service.d.ts +3 -3
  26. package/lib/browser/scm-avatar-service.js +36 -36
  27. package/lib/browser/scm-commit-widget.d.ts +52 -52
  28. package/lib/browser/scm-commit-widget.js +199 -199
  29. package/lib/browser/scm-context-key-service.d.ts +10 -10
  30. package/lib/browser/scm-context-key-service.js +58 -58
  31. package/lib/browser/scm-contribution.d.ts +83 -83
  32. package/lib/browser/scm-contribution.js +353 -353
  33. package/lib/browser/scm-frontend-module.d.ts +6 -6
  34. package/lib/browser/scm-frontend-module.js +130 -130
  35. package/lib/browser/scm-groups-tree-model.d.ts +14 -14
  36. package/lib/browser/scm-groups-tree-model.js +97 -97
  37. package/lib/browser/scm-input.d.ts +53 -53
  38. package/lib/browser/scm-input.js +127 -127
  39. package/lib/browser/scm-layout-migrations.d.ts +9 -9
  40. package/lib/browser/scm-layout-migrations.js +79 -79
  41. package/lib/browser/scm-no-repository-widget.d.ts +8 -8
  42. package/lib/browser/scm-no-repository-widget.js +49 -49
  43. package/lib/browser/scm-preferences.d.ts +11 -11
  44. package/lib/browser/scm-preferences.js +51 -51
  45. package/lib/browser/scm-provider.d.ts +56 -56
  46. package/lib/browser/scm-provider.js +19 -19
  47. package/lib/browser/scm-quick-open-service.d.ts +11 -11
  48. package/lib/browser/scm-quick-open-service.js +73 -73
  49. package/lib/browser/scm-repository.d.ts +17 -17
  50. package/lib/browser/scm-repository.js +41 -41
  51. package/lib/browser/scm-service.d.ts +26 -26
  52. package/lib/browser/scm-service.js +108 -108
  53. package/lib/browser/scm-tree-label-provider.d.ts +7 -7
  54. package/lib/browser/scm-tree-label-provider.js +57 -57
  55. package/lib/browser/scm-tree-model.d.ts +74 -74
  56. package/lib/browser/scm-tree-model.js +348 -348
  57. package/lib/browser/scm-tree-widget.d.ts +201 -201
  58. package/lib/browser/scm-tree-widget.js +664 -664
  59. package/lib/browser/scm-widget.d.ts +40 -40
  60. package/lib/browser/scm-widget.js +218 -218
  61. package/package.json +6 -6
  62. package/src/browser/decorations/scm-decorations-service.ts +78 -78
  63. package/src/browser/decorations/scm-navigator-decorator.ts +121 -121
  64. package/src/browser/decorations/scm-tab-bar-decorator.ts +83 -83
  65. package/src/browser/dirty-diff/content-lines.spec.ts +42 -42
  66. package/src/browser/dirty-diff/content-lines.ts +112 -112
  67. package/src/browser/dirty-diff/diff-computer.spec.ts +387 -387
  68. package/src/browser/dirty-diff/diff-computer.ts +129 -129
  69. package/src/browser/dirty-diff/dirty-diff-decorator.ts +107 -107
  70. package/src/browser/dirty-diff/dirty-diff-module.ts +24 -24
  71. package/src/browser/scm-amend-component.tsx +600 -600
  72. package/src/browser/scm-amend-widget.tsx +77 -77
  73. package/src/browser/scm-avatar-service.ts +27 -27
  74. package/src/browser/scm-commit-widget.tsx +215 -215
  75. package/src/browser/scm-context-key-service.ts +46 -46
  76. package/src/browser/scm-contribution.ts +361 -361
  77. package/src/browser/scm-frontend-module.ts +149 -149
  78. package/src/browser/scm-groups-tree-model.ts +78 -78
  79. package/src/browser/scm-input.ts +164 -164
  80. package/src/browser/scm-layout-migrations.ts +64 -64
  81. package/src/browser/scm-no-repository-widget.tsx +41 -41
  82. package/src/browser/scm-preferences.ts +63 -63
  83. package/src/browser/scm-provider.ts +89 -89
  84. package/src/browser/scm-quick-open-service.ts +48 -48
  85. package/src/browser/scm-repository.ts +52 -52
  86. package/src/browser/scm-service.ts +108 -108
  87. package/src/browser/scm-tree-label-provider.ts +44 -44
  88. package/src/browser/scm-tree-model.ts +405 -405
  89. package/src/browser/scm-tree-widget.tsx +809 -809
  90. package/src/browser/scm-widget.tsx +204 -204
  91. package/src/browser/style/dirty-diff-decorator.css +52 -52
  92. package/src/browser/style/dirty-diff.css +50 -50
  93. package/src/browser/style/index.css +267 -267
  94. package/src/browser/style/scm-amend-component.css +94 -94
  95. package/src/browser/style/scm.svg +4 -4
@@ -1,202 +1,202 @@
1
- /// <reference types="react" />
2
- import * as React from '@theia/core/shared/react';
3
- import URI from '@theia/core/lib/common/uri';
4
- import { DisposableCollection } from '@theia/core/lib/common/disposable';
5
- import { TreeWidget, TreeNode, SelectableTreeNode, TreeProps, NodeProps } from '@theia/core/lib/browser/tree';
6
- import { ScmTreeModel, ScmFileChangeGroupNode, ScmFileChangeFolderNode, ScmFileChangeNode } from './scm-tree-model';
7
- import { MenuModelRegistry, ActionMenuNode, CompoundMenuNode, MenuPath } from '@theia/core/lib/common/menu';
8
- import { ScmResource } from './scm-provider';
9
- import { CommandRegistry } from '@theia/core/lib/common/command';
10
- import { ContextMenuRenderer, LabelProvider, CorePreferences } from '@theia/core/lib/browser';
11
- import { ScmContextKeyService } from './scm-context-key-service';
12
- import { EditorWidget, EditorManager, DiffNavigatorProvider } from '@theia/editor/lib/browser';
13
- import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
14
- import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
15
- import { Decoration, DecorationsService } from '@theia/core/lib/browser/decorations-service';
16
- export declare class ScmTreeWidget extends TreeWidget {
17
- static ID: string;
18
- static RESOURCE_GROUP_CONTEXT_MENU: string[];
19
- static RESOURCE_GROUP_INLINE_MENU: string[];
20
- static RESOURCE_FOLDER_CONTEXT_MENU: string[];
21
- static RESOURCE_FOLDER_INLINE_MENU: string[];
22
- static RESOURCE_CONTEXT_MENU: string[];
23
- static RESOURCE_INLINE_MENU: string[];
24
- protected readonly menus: MenuModelRegistry;
25
- protected readonly commands: CommandRegistry;
26
- protected readonly contextKeys: ScmContextKeyService;
27
- protected readonly editorManager: EditorManager;
28
- protected readonly diffNavigatorProvider: DiffNavigatorProvider;
29
- protected readonly iconThemeService: IconThemeService;
30
- protected readonly decorationsService: DecorationsService;
31
- protected readonly colors: ColorRegistry;
32
- readonly model: ScmTreeModel;
33
- constructor(props: TreeProps, treeModel: ScmTreeModel, contextMenuRenderer: ContextMenuRenderer);
34
- set viewMode(id: 'tree' | 'list');
35
- get viewMode(): 'tree' | 'list';
36
- /**
37
- * Render the node given the tree node and node properties.
38
- * @param node the tree node.
39
- * @param props the node properties.
40
- */
41
- protected renderNode(node: TreeNode, props: NodeProps): React.ReactNode;
42
- protected createContainerAttributes(): React.HTMLAttributes<HTMLElement>;
43
- /**
44
- * The ARROW_LEFT key controls both the movement around the file tree and also
45
- * the movement through the change chunks within a file.
46
- *
47
- * If the selected tree node is a folder then the ARROW_LEFT key behaves exactly
48
- * as it does in explorer. It collapses the tree node if the folder is expanded and
49
- * it moves the selection up to the parent folder if the folder is collapsed (no-op if no parent folder, as
50
- * group headers are not selectable). This behavior is the default behavior implemented
51
- * in the TreeWidget super class.
52
- *
53
- * If the selected tree node is a file then the ARROW_LEFT key moves up through the
54
- * change chunks within each file. If the selected chunk is the first chunk in the file
55
- * then the file selection is moved to the previous file (no-op if no previous file).
56
- *
57
- * Note that when cursoring through change chunks, the ARROW_LEFT key cannot be used to
58
- * move up through the parent folders of the file tree. If users want to do this, using
59
- * keys only, then they must press ARROW_UP repeatedly until the selected node is the folder
60
- * node and then press ARROW_LEFT.
61
- */
62
- protected handleLeft(event: KeyboardEvent): Promise<void>;
63
- /**
64
- * The ARROW_RIGHT key controls both the movement around the file tree and also
65
- * the movement through the change chunks within a file.
66
- *
67
- * If the selected tree node is a folder then the ARROW_RIGHT key behaves exactly
68
- * as it does in explorer. It expands the tree node if the folder is collapsed and
69
- * it moves the selection to the first child node if the folder is expanded.
70
- * This behavior is the default behavior implemented
71
- * in the TreeWidget super class.
72
- *
73
- * If the selected tree node is a file then the ARROW_RIGHT key moves down through the
74
- * change chunks within each file. If the selected chunk is the last chunk in the file
75
- * then the file selection is moved to the next file (no-op if no next file).
76
- */
77
- protected handleRight(event: KeyboardEvent): Promise<void>;
78
- protected handleEnter(event: KeyboardEvent): void;
79
- goToPreviousChange(): Promise<void>;
80
- goToNextChange(): Promise<void>;
81
- selectNodeByUri(uri: URI): void;
82
- protected getFirstSelectableNode(): SelectableTreeNode | undefined;
83
- protected moveToPreviousFileNode(): ScmFileChangeNode | undefined;
84
- protected moveToNextFileNode(): ScmFileChangeNode | undefined;
85
- protected openResource(resource: ScmResource): Promise<EditorWidget | undefined>;
86
- protected getPaddingLeft(node: TreeNode, props: NodeProps): number;
87
- protected needsExpansionTogglePadding(node: TreeNode): boolean;
88
- }
89
- export declare namespace ScmTreeWidget {
90
- namespace Styles {
91
- const NO_SELECT = "no-select";
92
- }
93
- interface Props {
94
- treeNode: TreeNode;
95
- model: ScmTreeModel;
96
- commands: CommandRegistry;
97
- menus: MenuModelRegistry;
98
- contextKeys: ScmContextKeyService;
99
- labelProvider: LabelProvider;
100
- contextMenuRenderer: ContextMenuRenderer;
101
- corePreferences?: CorePreferences;
102
- caption: React.ReactNode;
103
- }
104
- }
105
- export declare abstract class ScmElement<P extends ScmElement.Props = ScmElement.Props> extends React.Component<P, ScmElement.State> {
106
- constructor(props: P);
107
- protected readonly toDisposeOnUnmount: DisposableCollection;
108
- componentDidMount(): void;
109
- componentWillUnmount(): void;
110
- protected detectHover: (element: HTMLElement | null) => void;
111
- protected showHover: () => void;
112
- protected hideHover: () => void;
113
- protected renderContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
114
- protected abstract get contextMenuPath(): MenuPath;
115
- protected abstract get contextMenuArgs(): any[];
116
- }
117
- export declare namespace ScmElement {
118
- interface Props extends ScmTreeWidget.Props {
119
- renderExpansionToggle: () => React.ReactNode;
120
- }
121
- interface State {
122
- hover: boolean;
123
- }
124
- }
125
- export declare class ScmResourceComponent extends ScmElement<ScmResourceComponent.Props> {
126
- render(): JSX.Element | undefined;
127
- protected open: () => void;
128
- protected readonly contextMenuPath: string[];
129
- protected get contextMenuArgs(): any[];
130
- protected get singleNodeArgs(): any[];
131
- protected hasCtrlCmdOrShiftMask(event: TreeWidget.ModifierAwareEvent): boolean;
132
- /**
133
- * Handle the single clicking of nodes present in the widget.
134
- */
135
- protected handleClick: (event: React.MouseEvent) => void;
136
- /**
137
- * Handle the double clicking of nodes present in the widget.
138
- */
139
- protected handleDoubleClick: () => void;
140
- }
141
- export declare namespace ScmResourceComponent {
142
- interface Props extends ScmElement.Props {
143
- treeNode: ScmFileChangeNode;
144
- parentPath: URI;
145
- sourceUri: string;
146
- decoration: Decoration | undefined;
147
- colors: ColorRegistry;
148
- }
149
- }
150
- export declare class ScmResourceGroupElement extends ScmElement<ScmResourceGroupComponent.Props> {
151
- render(): JSX.Element;
152
- protected renderChangeCount(): React.ReactNode;
153
- protected readonly contextMenuPath: string[];
154
- protected get contextMenuArgs(): any[];
155
- }
156
- export declare namespace ScmResourceGroupComponent {
157
- interface Props extends ScmElement.Props {
158
- treeNode: ScmFileChangeGroupNode;
159
- }
160
- }
161
- export declare class ScmResourceFolderElement extends ScmElement<ScmResourceFolderElement.Props> {
162
- render(): JSX.Element;
163
- protected readonly contextMenuPath: string[];
164
- protected get contextMenuArgs(): any[];
165
- protected get singleNodeArgs(): any[];
166
- }
167
- export declare namespace ScmResourceFolderElement {
168
- interface Props extends ScmElement.Props {
169
- treeNode: ScmFileChangeFolderNode;
170
- sourceUri: string;
171
- }
172
- }
173
- export declare class ScmInlineActions extends React.Component<ScmInlineActions.Props> {
174
- render(): React.ReactNode;
175
- }
176
- export declare namespace ScmInlineActions {
177
- interface Props {
178
- hover: boolean;
179
- menu: CompoundMenuNode;
180
- commands: CommandRegistry;
181
- model: ScmTreeModel;
182
- treeNode: TreeNode;
183
- contextKeys: ScmContextKeyService;
184
- args: any[];
185
- children?: React.ReactNode;
186
- }
187
- }
188
- export declare class ScmInlineAction extends React.Component<ScmInlineAction.Props> {
189
- render(): React.ReactNode;
190
- protected execute: (event: React.MouseEvent) => void;
191
- }
192
- export declare namespace ScmInlineAction {
193
- interface Props {
194
- node: ActionMenuNode;
195
- commands: CommandRegistry;
196
- model: ScmTreeModel;
197
- treeNode: TreeNode;
198
- contextKeys: ScmContextKeyService;
199
- args: any[];
200
- }
201
- }
1
+ /// <reference types="react" />
2
+ import * as React from '@theia/core/shared/react';
3
+ import URI from '@theia/core/lib/common/uri';
4
+ import { DisposableCollection } from '@theia/core/lib/common/disposable';
5
+ import { TreeWidget, TreeNode, SelectableTreeNode, TreeProps, NodeProps } from '@theia/core/lib/browser/tree';
6
+ import { ScmTreeModel, ScmFileChangeGroupNode, ScmFileChangeFolderNode, ScmFileChangeNode } from './scm-tree-model';
7
+ import { MenuModelRegistry, ActionMenuNode, CompoundMenuNode, MenuPath } from '@theia/core/lib/common/menu';
8
+ import { ScmResource } from './scm-provider';
9
+ import { CommandRegistry } from '@theia/core/lib/common/command';
10
+ import { ContextMenuRenderer, LabelProvider, CorePreferences } from '@theia/core/lib/browser';
11
+ import { ScmContextKeyService } from './scm-context-key-service';
12
+ import { EditorWidget, EditorManager, DiffNavigatorProvider } from '@theia/editor/lib/browser';
13
+ import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
14
+ import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
15
+ import { Decoration, DecorationsService } from '@theia/core/lib/browser/decorations-service';
16
+ export declare class ScmTreeWidget extends TreeWidget {
17
+ static ID: string;
18
+ static RESOURCE_GROUP_CONTEXT_MENU: string[];
19
+ static RESOURCE_GROUP_INLINE_MENU: string[];
20
+ static RESOURCE_FOLDER_CONTEXT_MENU: string[];
21
+ static RESOURCE_FOLDER_INLINE_MENU: string[];
22
+ static RESOURCE_CONTEXT_MENU: string[];
23
+ static RESOURCE_INLINE_MENU: string[];
24
+ protected readonly menus: MenuModelRegistry;
25
+ protected readonly commands: CommandRegistry;
26
+ protected readonly contextKeys: ScmContextKeyService;
27
+ protected readonly editorManager: EditorManager;
28
+ protected readonly diffNavigatorProvider: DiffNavigatorProvider;
29
+ protected readonly iconThemeService: IconThemeService;
30
+ protected readonly decorationsService: DecorationsService;
31
+ protected readonly colors: ColorRegistry;
32
+ readonly model: ScmTreeModel;
33
+ constructor(props: TreeProps, treeModel: ScmTreeModel, contextMenuRenderer: ContextMenuRenderer);
34
+ set viewMode(id: 'tree' | 'list');
35
+ get viewMode(): 'tree' | 'list';
36
+ /**
37
+ * Render the node given the tree node and node properties.
38
+ * @param node the tree node.
39
+ * @param props the node properties.
40
+ */
41
+ protected renderNode(node: TreeNode, props: NodeProps): React.ReactNode;
42
+ protected createContainerAttributes(): React.HTMLAttributes<HTMLElement>;
43
+ /**
44
+ * The ARROW_LEFT key controls both the movement around the file tree and also
45
+ * the movement through the change chunks within a file.
46
+ *
47
+ * If the selected tree node is a folder then the ARROW_LEFT key behaves exactly
48
+ * as it does in explorer. It collapses the tree node if the folder is expanded and
49
+ * it moves the selection up to the parent folder if the folder is collapsed (no-op if no parent folder, as
50
+ * group headers are not selectable). This behavior is the default behavior implemented
51
+ * in the TreeWidget super class.
52
+ *
53
+ * If the selected tree node is a file then the ARROW_LEFT key moves up through the
54
+ * change chunks within each file. If the selected chunk is the first chunk in the file
55
+ * then the file selection is moved to the previous file (no-op if no previous file).
56
+ *
57
+ * Note that when cursoring through change chunks, the ARROW_LEFT key cannot be used to
58
+ * move up through the parent folders of the file tree. If users want to do this, using
59
+ * keys only, then they must press ARROW_UP repeatedly until the selected node is the folder
60
+ * node and then press ARROW_LEFT.
61
+ */
62
+ protected handleLeft(event: KeyboardEvent): Promise<void>;
63
+ /**
64
+ * The ARROW_RIGHT key controls both the movement around the file tree and also
65
+ * the movement through the change chunks within a file.
66
+ *
67
+ * If the selected tree node is a folder then the ARROW_RIGHT key behaves exactly
68
+ * as it does in explorer. It expands the tree node if the folder is collapsed and
69
+ * it moves the selection to the first child node if the folder is expanded.
70
+ * This behavior is the default behavior implemented
71
+ * in the TreeWidget super class.
72
+ *
73
+ * If the selected tree node is a file then the ARROW_RIGHT key moves down through the
74
+ * change chunks within each file. If the selected chunk is the last chunk in the file
75
+ * then the file selection is moved to the next file (no-op if no next file).
76
+ */
77
+ protected handleRight(event: KeyboardEvent): Promise<void>;
78
+ protected handleEnter(event: KeyboardEvent): void;
79
+ goToPreviousChange(): Promise<void>;
80
+ goToNextChange(): Promise<void>;
81
+ selectNodeByUri(uri: URI): void;
82
+ protected getFirstSelectableNode(): SelectableTreeNode | undefined;
83
+ protected moveToPreviousFileNode(): ScmFileChangeNode | undefined;
84
+ protected moveToNextFileNode(): ScmFileChangeNode | undefined;
85
+ protected openResource(resource: ScmResource): Promise<EditorWidget | undefined>;
86
+ protected getPaddingLeft(node: TreeNode, props: NodeProps): number;
87
+ protected needsExpansionTogglePadding(node: TreeNode): boolean;
88
+ }
89
+ export declare namespace ScmTreeWidget {
90
+ namespace Styles {
91
+ const NO_SELECT = "no-select";
92
+ }
93
+ interface Props {
94
+ treeNode: TreeNode;
95
+ model: ScmTreeModel;
96
+ commands: CommandRegistry;
97
+ menus: MenuModelRegistry;
98
+ contextKeys: ScmContextKeyService;
99
+ labelProvider: LabelProvider;
100
+ contextMenuRenderer: ContextMenuRenderer;
101
+ corePreferences?: CorePreferences;
102
+ caption: React.ReactNode;
103
+ }
104
+ }
105
+ export declare abstract class ScmElement<P extends ScmElement.Props = ScmElement.Props> extends React.Component<P, ScmElement.State> {
106
+ constructor(props: P);
107
+ protected readonly toDisposeOnUnmount: DisposableCollection;
108
+ componentDidMount(): void;
109
+ componentWillUnmount(): void;
110
+ protected detectHover: (element: HTMLElement | null) => void;
111
+ protected showHover: () => void;
112
+ protected hideHover: () => void;
113
+ protected renderContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
114
+ protected abstract get contextMenuPath(): MenuPath;
115
+ protected abstract get contextMenuArgs(): any[];
116
+ }
117
+ export declare namespace ScmElement {
118
+ interface Props extends ScmTreeWidget.Props {
119
+ renderExpansionToggle: () => React.ReactNode;
120
+ }
121
+ interface State {
122
+ hover: boolean;
123
+ }
124
+ }
125
+ export declare class ScmResourceComponent extends ScmElement<ScmResourceComponent.Props> {
126
+ render(): JSX.Element | undefined;
127
+ protected open: () => void;
128
+ protected readonly contextMenuPath: string[];
129
+ protected get contextMenuArgs(): any[];
130
+ protected get singleNodeArgs(): any[];
131
+ protected hasCtrlCmdOrShiftMask(event: TreeWidget.ModifierAwareEvent): boolean;
132
+ /**
133
+ * Handle the single clicking of nodes present in the widget.
134
+ */
135
+ protected handleClick: (event: React.MouseEvent) => void;
136
+ /**
137
+ * Handle the double clicking of nodes present in the widget.
138
+ */
139
+ protected handleDoubleClick: () => void;
140
+ }
141
+ export declare namespace ScmResourceComponent {
142
+ interface Props extends ScmElement.Props {
143
+ treeNode: ScmFileChangeNode;
144
+ parentPath: URI;
145
+ sourceUri: string;
146
+ decoration: Decoration | undefined;
147
+ colors: ColorRegistry;
148
+ }
149
+ }
150
+ export declare class ScmResourceGroupElement extends ScmElement<ScmResourceGroupComponent.Props> {
151
+ render(): JSX.Element;
152
+ protected renderChangeCount(): React.ReactNode;
153
+ protected readonly contextMenuPath: string[];
154
+ protected get contextMenuArgs(): any[];
155
+ }
156
+ export declare namespace ScmResourceGroupComponent {
157
+ interface Props extends ScmElement.Props {
158
+ treeNode: ScmFileChangeGroupNode;
159
+ }
160
+ }
161
+ export declare class ScmResourceFolderElement extends ScmElement<ScmResourceFolderElement.Props> {
162
+ render(): JSX.Element;
163
+ protected readonly contextMenuPath: string[];
164
+ protected get contextMenuArgs(): any[];
165
+ protected get singleNodeArgs(): any[];
166
+ }
167
+ export declare namespace ScmResourceFolderElement {
168
+ interface Props extends ScmElement.Props {
169
+ treeNode: ScmFileChangeFolderNode;
170
+ sourceUri: string;
171
+ }
172
+ }
173
+ export declare class ScmInlineActions extends React.Component<ScmInlineActions.Props> {
174
+ render(): React.ReactNode;
175
+ }
176
+ export declare namespace ScmInlineActions {
177
+ interface Props {
178
+ hover: boolean;
179
+ menu: CompoundMenuNode;
180
+ commands: CommandRegistry;
181
+ model: ScmTreeModel;
182
+ treeNode: TreeNode;
183
+ contextKeys: ScmContextKeyService;
184
+ args: any[];
185
+ children?: React.ReactNode;
186
+ }
187
+ }
188
+ export declare class ScmInlineAction extends React.Component<ScmInlineAction.Props> {
189
+ render(): React.ReactNode;
190
+ protected execute: (event: React.MouseEvent) => void;
191
+ }
192
+ export declare namespace ScmInlineAction {
193
+ interface Props {
194
+ node: ActionMenuNode;
195
+ commands: CommandRegistry;
196
+ model: ScmTreeModel;
197
+ treeNode: TreeNode;
198
+ contextKeys: ScmContextKeyService;
199
+ args: any[];
200
+ }
201
+ }
202
202
  //# sourceMappingURL=scm-tree-widget.d.ts.map