@codingame/monaco-vscode-scm-service-override 17.2.0 → 18.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 +15 -13
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +10 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css +33 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffDecorator.js +7 -7
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.js +53 -32
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.js +57 -52
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +89 -82
- package/vscode/src/vs/workbench/contrib/scm/browser/scmAccessibilityHelp.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +185 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +414 -158
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.d.ts +5 -8
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +82 -45
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +6 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/workingSet.js +3 -3
- package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-
|
|
1
|
+
import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
2
2
|
import { ISCMViewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
4
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
@@ -4,7 +4,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
4
4
|
import * as scm from './media/scm.css';
|
|
5
5
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
6
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
|
-
import { ViewPane } from '@codingame/monaco-vscode-
|
|
7
|
+
import { ViewPane } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
8
8
|
import { append, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
9
9
|
import { ISCMViewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
10
10
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -17,7 +17,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
17
17
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
18
18
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
19
19
|
import { RepositoryRenderer, RepositoryActionRunner } from './scmRepositoryRenderer.js';
|
|
20
|
-
import { getActionViewItemProvider, collectContextMenuActions } from '@codingame/monaco-vscode-
|
|
20
|
+
import { getActionViewItemProvider, collectContextMenuActions } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
21
21
|
import { Orientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/sash/sash';
|
|
22
22
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
23
23
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -61,7 +61,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
61
61
|
return r.provider.label;
|
|
62
62
|
},
|
|
63
63
|
getWidgetAriaLabel() {
|
|
64
|
-
return localize(
|
|
64
|
+
return localize(9474, "Source Control Repositories");
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
});
|
|
@@ -5,7 +5,7 @@ import { CountBadge } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
|
5
5
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
6
6
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
7
7
|
import { ActionRunner, IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
8
|
-
import { ITreeNode } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
8
|
+
import { ITreeNode, ITreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
9
9
|
import { ICompressibleTreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/objectTree";
|
|
10
10
|
import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
|
|
11
11
|
import { IListRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
|
|
@@ -34,7 +34,7 @@ interface RepositoryTemplate {
|
|
|
34
34
|
readonly elementDisposables: DisposableStore;
|
|
35
35
|
readonly templateDisposable: IDisposable;
|
|
36
36
|
}
|
|
37
|
-
export declare class RepositoryRenderer implements ICompressibleTreeRenderer<ISCMRepository, FuzzyScore, RepositoryTemplate>, IListRenderer<ISCMRepository, RepositoryTemplate> {
|
|
37
|
+
export declare class RepositoryRenderer implements ICompressibleTreeRenderer<ISCMRepository, FuzzyScore, RepositoryTemplate>, IListRenderer<ISCMRepository, RepositoryTemplate>, ITreeRenderer<ISCMRepository, FuzzyScore, RepositoryTemplate> {
|
|
38
38
|
private readonly toolbarMenuId;
|
|
39
39
|
private readonly actionViewItemProvider;
|
|
40
40
|
private commandService;
|
|
@@ -49,7 +49,7 @@ export declare class RepositoryRenderer implements ICompressibleTreeRenderer<ISC
|
|
|
49
49
|
get templateId(): string;
|
|
50
50
|
constructor(toolbarMenuId: MenuId, actionViewItemProvider: IActionViewItemProvider, commandService: ICommandService, contextKeyService: IContextKeyService, contextMenuService: IContextMenuService, hoverService: IHoverService, keybindingService: IKeybindingService, menuService: IMenuService, scmViewService: ISCMViewService, telemetryService: ITelemetryService);
|
|
51
51
|
renderTemplate(container: HTMLElement): RepositoryTemplate;
|
|
52
|
-
renderElement(arg: ISCMRepository | ITreeNode<ISCMRepository, FuzzyScore>, index: number, templateData: RepositoryTemplate
|
|
52
|
+
renderElement(arg: ISCMRepository | ITreeNode<ISCMRepository, FuzzyScore>, index: number, templateData: RepositoryTemplate): void;
|
|
53
53
|
renderCompressedElements(): void;
|
|
54
54
|
disposeElement(group: ISCMRepository | ITreeNode<ISCMRepository, FuzzyScore>, index: number, template: RepositoryTemplate): void;
|
|
55
55
|
disposeTemplate(templateData: RepositoryTemplate): void;
|
|
@@ -10,7 +10,7 @@ import { CountBadge } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
|
10
10
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
11
11
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
12
12
|
import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
13
|
-
import { isSCMRepository, StatusBarAction, getRepositoryResourceCount, connectPrimaryMenu } from '@codingame/monaco-vscode-
|
|
13
|
+
import { isSCMRepository, StatusBarAction, getRepositoryResourceCount, connectPrimaryMenu } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
14
14
|
import { defaultCountBadgeStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
15
15
|
import { WorkbenchToolBar } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
16
16
|
import { MenuItemAction, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
@@ -20,7 +20,7 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
20
20
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
21
21
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
22
22
|
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
23
|
-
import { autorunWithStore, autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
|
|
23
|
+
import { autorunWithStore, autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
24
24
|
|
|
25
25
|
var RepositoryRenderer_1;
|
|
26
26
|
registerCss(scm);
|
|
@@ -80,7 +80,7 @@ let RepositoryRenderer = class RepositoryRenderer {
|
|
|
80
80
|
const templateDisposable = combinedDisposable(labelCustomHover, visibilityDisposable, toolBar);
|
|
81
81
|
return { label, labelCustomHover, name, description, countContainer, count, toolBar, elementDisposables: ( new DisposableStore()), templateDisposable };
|
|
82
82
|
}
|
|
83
|
-
renderElement(arg, index, templateData
|
|
83
|
+
renderElement(arg, index, templateData) {
|
|
84
84
|
const repository = isSCMRepository(arg) ? arg : arg.element;
|
|
85
85
|
templateData.name.textContent = repository.provider.name;
|
|
86
86
|
if (repository.provider.rootUri) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
2
|
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-
|
|
4
|
-
import { ISCMResourceGroup, ISCMResource, ISCMRepository, ISCMInput, ISCMActionButton, ISCMActionButtonDescriptor } from "@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm";
|
|
3
|
+
import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
4
|
+
import { ISCMResourceGroup, ISCMResource, ISCMRepository, ISCMInput, ISCMActionButton, ISCMActionButtonDescriptor, ViewMode } from "@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm";
|
|
5
5
|
import { ISCMViewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
6
6
|
import { ISCMService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
7
7
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -15,7 +15,7 @@ import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/ac
|
|
|
15
15
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
16
16
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
17
17
|
import { ITreeNode, ITreeSorter } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
18
|
-
import { IResourceNode } from "@codingame/monaco-vscode-
|
|
18
|
+
import { IResourceNode } from "@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/base/common/resourceTree";
|
|
19
19
|
import { ICompressibleTreeRenderer, ICompressibleKeyboardNavigationLabelProvider } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/objectTree";
|
|
20
20
|
import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
|
|
21
21
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
@@ -43,7 +43,7 @@ export declare class ActionButtonRenderer implements ICompressibleTreeRenderer<I
|
|
|
43
43
|
private actionButtons;
|
|
44
44
|
constructor(commandService: ICommandService, contextMenuService: IContextMenuService, notificationService: INotificationService);
|
|
45
45
|
renderTemplate(container: HTMLElement): ActionButtonTemplate;
|
|
46
|
-
renderElement(node: ITreeNode<ISCMActionButton, FuzzyScore>, index: number, templateData: ActionButtonTemplate
|
|
46
|
+
renderElement(node: ITreeNode<ISCMActionButton, FuzzyScore>, index: number, templateData: ActionButtonTemplate): void;
|
|
47
47
|
renderCompressedElements(): void;
|
|
48
48
|
focusActionButton(actionButton: ISCMActionButton): void;
|
|
49
49
|
disposeElement(node: ITreeNode<ISCMActionButton, FuzzyScore>, index: number, template: ActionButtonTemplate): void;
|
|
@@ -77,10 +77,6 @@ export declare class SCMAccessibilityProvider implements IListAccessibilityProvi
|
|
|
77
77
|
getWidgetAriaLabel(): string;
|
|
78
78
|
getAriaLabel(element: TreeElement): string;
|
|
79
79
|
}
|
|
80
|
-
declare enum ViewMode {
|
|
81
|
-
List = "list",
|
|
82
|
-
Tree = "tree"
|
|
83
|
-
}
|
|
84
80
|
declare enum ViewSortKey {
|
|
85
81
|
Path = "path",
|
|
86
82
|
Name = "name",
|
|
@@ -95,6 +91,7 @@ export declare const ContextKeys: {
|
|
|
95
91
|
SCMProviderRootUri: RawContextKey<string | undefined>;
|
|
96
92
|
SCMProviderHasRootUri: RawContextKey<boolean>;
|
|
97
93
|
SCMHistoryItemCount: RawContextKey<number>;
|
|
94
|
+
SCMHistoryViewMode: RawContextKey<ViewMode>;
|
|
98
95
|
SCMCurrentHistoryItemRefHasRemote: RawContextKey<boolean>;
|
|
99
96
|
SCMCurrentHistoryItemRefInFilter: RawContextKey<boolean>;
|
|
100
97
|
RepositoryCount: RawContextKey<number>;
|
|
@@ -5,12 +5,12 @@ import * as scm from './media/scm.css';
|
|
|
5
5
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { basename, dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
7
7
|
import { Disposable, DisposableStore, toDisposable, combinedDisposable, MutableDisposable, dispose, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
-
import { ViewAction, ViewPane } from '@codingame/monaco-vscode-
|
|
8
|
+
import { ViewAction, ViewPane } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
9
9
|
import { append, $, Dimension, trackFocus, isPointerEvent, isActiveElement, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
10
10
|
import { asCSSUrl } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/cssValue';
|
|
11
|
-
import { VIEW_PANE_ID, ISCMRepositorySortKey, InputValidationType, SCMInputChangeReason } from '@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm';
|
|
11
|
+
import { ViewMode, VIEW_PANE_ID, ISCMRepositorySortKey, InputValidationType, SCMInputChangeReason } from '@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm';
|
|
12
12
|
import { ISCMViewService, ISCMService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
13
|
-
import { ResourceLabels } from '@codingame/monaco-vscode-
|
|
13
|
+
import { ResourceLabels } from '@codingame/monaco-vscode-f24b7f0a-ceeb-5877-9148-81eb98a4f5d7-common/vscode/vs/workbench/browser/labels';
|
|
14
14
|
import { CountBadge } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/countBadge/countBadge';
|
|
15
15
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
16
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -24,12 +24,12 @@ import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/ac
|
|
|
24
24
|
import { ActionRunner, Action, toAction, Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
25
25
|
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
26
26
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
27
|
-
import { isSCMResource, connectPrimaryMenu, isSCMResourceGroup, isSCMInput, isSCMActionButton, isSCMRepository, isSCMResourceNode, getActionViewItemProvider, collectContextMenuActions, isSCMViewService } from '@codingame/monaco-vscode-
|
|
27
|
+
import { isSCMResource, connectPrimaryMenu, isSCMResourceGroup, isSCMInput, isSCMActionButton, isSCMRepository, isSCMResourceNode, getActionViewItemProvider, collectContextMenuActions, isSCMViewService } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
28
28
|
import { WorkbenchCompressibleAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
29
29
|
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
30
30
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
31
31
|
import { disposableTimeout, ThrottledDelayer, Sequencer, Throttler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
32
|
-
import { ResourceTree } from '@codingame/monaco-vscode-
|
|
32
|
+
import { ResourceTree } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/base/common/resourceTree';
|
|
33
33
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
34
34
|
import { FileKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
35
35
|
import { compareFileNames, comparePaths } from '@codingame/monaco-vscode-api/vscode/vs/base/common/comparers';
|
|
@@ -40,7 +40,7 @@ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode
|
|
|
40
40
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
41
41
|
import { EditorResourceAccessor, SideBySideEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
42
42
|
import { CodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
43
|
-
import { getSimpleEditorOptions, setupSimpleEditorSelectionStyling } from '@codingame/monaco-vscode-
|
|
43
|
+
import { getSimpleEditorOptions, setupSimpleEditorSelectionStyling } from '@codingame/monaco-vscode-8d39d04c-3201-5bd6-be79-eed8d17a5ad0-common/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions';
|
|
44
44
|
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
45
45
|
import { EditorExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
46
46
|
import { MenuPreventer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/menuPreventer';
|
|
@@ -78,7 +78,7 @@ import { defaultCountBadgeStyles, defaultButtonStyles } from '@codingame/monaco-
|
|
|
78
78
|
import { InlineCompletionsController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController';
|
|
79
79
|
import { CodeActionController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/codeAction/browser/codeActionController';
|
|
80
80
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
81
|
-
import { fillEditorsDragData } from '@codingame/monaco-vscode-
|
|
81
|
+
import { fillEditorsDragData } from '@codingame/monaco-vscode-924e8f00-6faf-5059-b518-e43427d29ab3-common/vscode/vs/workbench/browser/dnd';
|
|
82
82
|
import { CodeDataTransfers } from '@codingame/monaco-vscode-api/vscode/vs/platform/dnd/browser/dnd';
|
|
83
83
|
import { FormatOnType } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/format/browser/formatActions';
|
|
84
84
|
import { EditorOptions, EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
@@ -86,7 +86,7 @@ import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
86
86
|
import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
|
|
87
87
|
import { WorkbenchToolBar } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
88
88
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
89
|
-
import { DropdownWithPrimaryActionViewItem } from '@codingame/monaco-vscode-
|
|
89
|
+
import { DropdownWithPrimaryActionViewItem } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem';
|
|
90
90
|
import { clamp, rot } from '@codingame/monaco-vscode-api/vscode/vs/base/common/numbers';
|
|
91
91
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
92
92
|
import { OpenScmGroupAction } from '@codingame/monaco-vscode-f99b74f5-fcb7-512f-8c6c-35f5a107577d-common/vscode/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver';
|
|
@@ -98,8 +98,11 @@ import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
98
98
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
99
99
|
import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
100
100
|
import { AccessibilityCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/common/accessibilityCommands';
|
|
101
|
-
import {
|
|
102
|
-
import
|
|
101
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
102
|
+
import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
|
|
103
|
+
import { CHAT_SETUP_ACTION_ID } from '@codingame/monaco-vscode-3a35f433-1297-5707-ab58-c261b8180e6d-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
104
|
+
import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/runOnChange';
|
|
105
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
103
106
|
|
|
104
107
|
var ActionButtonRenderer_1, InputRenderer_1, ResourceGroupRenderer_1, ResourceRenderer_1, SCMInputWidget_1;
|
|
105
108
|
registerCss(scm);
|
|
@@ -166,7 +169,7 @@ let ActionButtonRenderer = class ActionButtonRenderer {
|
|
|
166
169
|
));
|
|
167
170
|
return { actionButton, disposable: Disposable.None, templateDisposable: actionButton };
|
|
168
171
|
}
|
|
169
|
-
renderElement(node, index, templateData
|
|
172
|
+
renderElement(node, index, templateData) {
|
|
170
173
|
templateData.disposable.dispose();
|
|
171
174
|
const disposables = ( new DisposableStore());
|
|
172
175
|
const actionButton = node.element;
|
|
@@ -368,7 +371,7 @@ let ResourceGroupRenderer = class ResourceGroupRenderer {
|
|
|
368
371
|
}, 'inline'));
|
|
369
372
|
template.actionBar.context = group;
|
|
370
373
|
}
|
|
371
|
-
renderCompressedElements(node
|
|
374
|
+
renderCompressedElements(node) {
|
|
372
375
|
throw ( new Error('Should never happen since node is incompressible'));
|
|
373
376
|
}
|
|
374
377
|
disposeElement(group, index, template) {
|
|
@@ -483,7 +486,7 @@ let ResourceRenderer = class ResourceRenderer {
|
|
|
483
486
|
disposeElement(resource, index, template) {
|
|
484
487
|
template.elementDisposables.clear();
|
|
485
488
|
}
|
|
486
|
-
renderCompressedElements(node, index, template
|
|
489
|
+
renderCompressedElements(node, index, template) {
|
|
487
490
|
const compressed = node.element;
|
|
488
491
|
const folder = compressed.elements[compressed.elements.length - 1];
|
|
489
492
|
const label = ( compressed.elements.map(e => e.name));
|
|
@@ -503,7 +506,7 @@ let ResourceRenderer = class ResourceRenderer {
|
|
|
503
506
|
template.decorationIcon.style.backgroundImage = '';
|
|
504
507
|
template.element.setAttribute('data-tooltip', '');
|
|
505
508
|
}
|
|
506
|
-
disposeCompressedElements(node, index, template
|
|
509
|
+
disposeCompressedElements(node, index, template) {
|
|
507
510
|
template.elementDisposables.clear();
|
|
508
511
|
}
|
|
509
512
|
disposeTemplate(template) {
|
|
@@ -756,7 +759,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
756
759
|
this.labelService = labelService;
|
|
757
760
|
}
|
|
758
761
|
getWidgetAriaLabel() {
|
|
759
|
-
return localize(
|
|
762
|
+
return localize(9475, "Source Control Management");
|
|
760
763
|
}
|
|
761
764
|
getAriaLabel(element) {
|
|
762
765
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -768,17 +771,17 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
768
771
|
else if (isSCMInput(element)) {
|
|
769
772
|
const verbosity = this.configurationService.getValue(AccessibilityVerbositySettingId.SourceControl) === true;
|
|
770
773
|
if (!verbosity || !this.accessibilityService.isScreenReaderOptimized()) {
|
|
771
|
-
return localize(
|
|
774
|
+
return localize(9476, "Source Control Input");
|
|
772
775
|
}
|
|
773
776
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
774
777
|
return kbLabel
|
|
775
778
|
? ( localize(
|
|
776
|
-
|
|
779
|
+
9477,
|
|
777
780
|
"Source Control Input, Use {0} to open Source Control Accessibility Help.",
|
|
778
781
|
kbLabel
|
|
779
782
|
))
|
|
780
783
|
: ( localize(
|
|
781
|
-
|
|
784
|
+
9478,
|
|
782
785
|
"Source Control Input, Run the Open Accessibility Help command for more information."
|
|
783
786
|
));
|
|
784
787
|
}
|
|
@@ -808,11 +811,6 @@ SCMAccessibilityProvider = ( __decorate([
|
|
|
808
811
|
( __param(2, IKeybindingService)),
|
|
809
812
|
( __param(3, ILabelService))
|
|
810
813
|
], SCMAccessibilityProvider));
|
|
811
|
-
var ViewMode;
|
|
812
|
-
(function (ViewMode) {
|
|
813
|
-
ViewMode["List"] = "list";
|
|
814
|
-
ViewMode["Tree"] = "tree";
|
|
815
|
-
})(ViewMode || (ViewMode = {}));
|
|
816
814
|
var ViewSortKey;
|
|
817
815
|
(function (ViewSortKey) {
|
|
818
816
|
ViewSortKey["Path"] = "path";
|
|
@@ -831,6 +829,7 @@ const ContextKeys = {
|
|
|
831
829
|
SCMProviderRootUri: ( new RawContextKey('scmProviderRootUri', undefined)),
|
|
832
830
|
SCMProviderHasRootUri: ( new RawContextKey('scmProviderHasRootUri', undefined)),
|
|
833
831
|
SCMHistoryItemCount: ( new RawContextKey('scmHistoryItemCount', 0)),
|
|
832
|
+
SCMHistoryViewMode: ( new RawContextKey('scmHistoryViewMode', ViewMode.List)),
|
|
834
833
|
SCMCurrentHistoryItemRefHasRemote: ( new RawContextKey('scmCurrentHistoryItemRefHasRemote', false)),
|
|
835
834
|
SCMCurrentHistoryItemRefInFilter: ( new RawContextKey('scmCurrentHistoryItemRefInFilter', false)),
|
|
836
835
|
RepositoryCount: ( new RawContextKey('scmRepositoryCount', 0)),
|
|
@@ -840,14 +839,14 @@ const ContextKeys = {
|
|
|
840
839
|
}
|
|
841
840
|
};
|
|
842
841
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
843
|
-
title: ( localize(
|
|
842
|
+
title: ( localize(9479, "View & Sort")),
|
|
844
843
|
submenu: Menus.ViewSort,
|
|
845
844
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_PANE_ID)), ( ContextKeys.RepositoryCount.notEqualsTo(0)))),
|
|
846
845
|
group: '0_view&sort',
|
|
847
846
|
order: 1
|
|
848
847
|
});
|
|
849
848
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
850
|
-
title: ( localize(
|
|
849
|
+
title: ( localize(9480, "Repositories")),
|
|
851
850
|
submenu: Menus.Repositories,
|
|
852
851
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
853
852
|
group: '0_repositories'
|
|
@@ -937,7 +936,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
937
936
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
938
937
|
super({
|
|
939
938
|
id,
|
|
940
|
-
title: ( localize(
|
|
939
|
+
title: ( localize(9481, "View as List")),
|
|
941
940
|
viewId: VIEW_PANE_ID,
|
|
942
941
|
f1: false,
|
|
943
942
|
icon: Codicon.listTree,
|
|
@@ -963,7 +962,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
963
962
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
964
963
|
super({
|
|
965
964
|
id,
|
|
966
|
-
title: ( localize(
|
|
965
|
+
title: ( localize(9482, "View as Tree")),
|
|
967
966
|
viewId: VIEW_PANE_ID,
|
|
968
967
|
f1: false,
|
|
969
968
|
icon: Codicon.listFlat,
|
|
@@ -1016,17 +1015,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
1016
1015
|
}
|
|
1017
1016
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
1018
1017
|
constructor() {
|
|
1019
|
-
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(
|
|
1018
|
+
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(9483, "Sort by Discovery Time")));
|
|
1020
1019
|
}
|
|
1021
1020
|
}
|
|
1022
1021
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
1023
1022
|
constructor() {
|
|
1024
|
-
super(ISCMRepositorySortKey.Name, ( localize(
|
|
1023
|
+
super(ISCMRepositorySortKey.Name, ( localize(9484, "Sort by Name")));
|
|
1025
1024
|
}
|
|
1026
1025
|
}
|
|
1027
1026
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
1028
1027
|
constructor() {
|
|
1029
|
-
super(ISCMRepositorySortKey.Path, ( localize(
|
|
1028
|
+
super(ISCMRepositorySortKey.Path, ( localize(9485, "Sort by Path")));
|
|
1030
1029
|
}
|
|
1031
1030
|
}
|
|
1032
1031
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -1051,17 +1050,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
1051
1050
|
}
|
|
1052
1051
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1053
1052
|
constructor() {
|
|
1054
|
-
super(ViewSortKey.Name, ( localize(
|
|
1053
|
+
super(ViewSortKey.Name, ( localize(9486, "Sort Changes by Name")));
|
|
1055
1054
|
}
|
|
1056
1055
|
}
|
|
1057
1056
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1058
1057
|
constructor() {
|
|
1059
|
-
super(ViewSortKey.Path, ( localize(
|
|
1058
|
+
super(ViewSortKey.Path, ( localize(9487, "Sort Changes by Path")));
|
|
1060
1059
|
}
|
|
1061
1060
|
}
|
|
1062
1061
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1063
1062
|
constructor() {
|
|
1064
|
-
super(ViewSortKey.Status, ( localize(
|
|
1063
|
+
super(ViewSortKey.Status, ( localize(9488, "Sort Changes by Status")));
|
|
1065
1064
|
}
|
|
1066
1065
|
}
|
|
1067
1066
|
registerAction2(SetSortByNameAction);
|
|
@@ -1071,7 +1070,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1071
1070
|
constructor() {
|
|
1072
1071
|
super({
|
|
1073
1072
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1074
|
-
title: ( localize(
|
|
1073
|
+
title: ( localize(9489, "Collapse All Repositories")),
|
|
1075
1074
|
viewId: VIEW_PANE_ID,
|
|
1076
1075
|
f1: false,
|
|
1077
1076
|
icon: Codicon.collapseAll,
|
|
@@ -1090,7 +1089,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1090
1089
|
constructor() {
|
|
1091
1090
|
super({
|
|
1092
1091
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1093
|
-
title: ( localize(
|
|
1092
|
+
title: ( localize(9490, "Expand All Repositories")),
|
|
1094
1093
|
viewId: VIEW_PANE_ID,
|
|
1095
1094
|
f1: false,
|
|
1096
1095
|
icon: Codicon.expandAll,
|
|
@@ -1110,11 +1109,40 @@ registerAction2(ExpandAllRepositoriesAction);
|
|
|
1110
1109
|
var SCMInputWidgetCommandId;
|
|
1111
1110
|
(function (SCMInputWidgetCommandId) {
|
|
1112
1111
|
SCMInputWidgetCommandId["CancelAction"] = "scm.input.cancelAction";
|
|
1112
|
+
SCMInputWidgetCommandId["SetupAction"] = "scm.input.triggerSetup";
|
|
1113
1113
|
})(SCMInputWidgetCommandId || (SCMInputWidgetCommandId = {}));
|
|
1114
1114
|
var SCMInputWidgetStorageKey;
|
|
1115
1115
|
(function (SCMInputWidgetStorageKey) {
|
|
1116
1116
|
SCMInputWidgetStorageKey["LastActionId"] = "scm.input.lastActionId";
|
|
1117
1117
|
})(SCMInputWidgetStorageKey || (SCMInputWidgetStorageKey = {}));
|
|
1118
|
+
registerAction2(class extends Action2 {
|
|
1119
|
+
constructor() {
|
|
1120
|
+
super({
|
|
1121
|
+
id: SCMInputWidgetCommandId.SetupAction,
|
|
1122
|
+
title: ( localize(9491, "Generate Commit Message with Copilot")),
|
|
1123
|
+
icon: Codicon.sparkle,
|
|
1124
|
+
f1: false,
|
|
1125
|
+
menu: {
|
|
1126
|
+
id: MenuId.SCMInputBox,
|
|
1127
|
+
when: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabled.negate()), ( ChatContextKeys.Setup.installed.negate()), ( ContextKeyExpr.equals('scmProvider', 'git'))))
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
async run(accessor, ...args) {
|
|
1132
|
+
const commandService = accessor.get(ICommandService);
|
|
1133
|
+
const telemetryService = accessor.get(ITelemetryService);
|
|
1134
|
+
telemetryService.publicLog2('workbenchActionExecuted', { id: CHAT_SETUP_ACTION_ID, from: 'scmInput' });
|
|
1135
|
+
const result = await commandService.executeCommand(CHAT_SETUP_ACTION_ID);
|
|
1136
|
+
if (!result) {
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
const command = product.defaultChatAgent?.generateCommitMessageCommand;
|
|
1140
|
+
if (!command) {
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1143
|
+
await commandService.executeCommand(command, ...args);
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1118
1146
|
let SCMInputWidgetActionRunner = class SCMInputWidgetActionRunner extends ActionRunner {
|
|
1119
1147
|
get runningActions() { return this._runningActions; }
|
|
1120
1148
|
constructor(input, storageService) {
|
|
@@ -1145,7 +1173,10 @@ let SCMInputWidgetActionRunner = class SCMInputWidgetActionRunner extends Action
|
|
|
1145
1173
|
finally {
|
|
1146
1174
|
this._runningActions.delete(action);
|
|
1147
1175
|
if (this._runningActions.size === 0) {
|
|
1148
|
-
|
|
1176
|
+
const actionId = action.id === SCMInputWidgetCommandId.SetupAction
|
|
1177
|
+
? product.defaultChatAgent?.generateCommitMessageCommand ?? action.id
|
|
1178
|
+
: action.id;
|
|
1179
|
+
this.storageService.store(SCMInputWidgetStorageKey.LastActionId, actionId, StorageScope.PROFILE, StorageTarget.USER);
|
|
1149
1180
|
}
|
|
1150
1181
|
}
|
|
1151
1182
|
}
|
|
@@ -1165,10 +1196,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1165
1196
|
this._onDidChange = ( new Emitter());
|
|
1166
1197
|
this.onDidChange = this._onDidChange.event;
|
|
1167
1198
|
this._disposables = this._register(( new MutableDisposable()));
|
|
1168
|
-
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(
|
|
1199
|
+
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(9492, "More Actions...")), 'codicon-chevron-down'));
|
|
1169
1200
|
this._cancelAction = ( new MenuItemAction({
|
|
1170
1201
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
1171
|
-
title: ( localize(
|
|
1202
|
+
title: ( localize(9493, "Cancel")),
|
|
1172
1203
|
icon: Codicon.stopCircle,
|
|
1173
1204
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService));
|
|
1174
1205
|
}
|
|
@@ -1190,7 +1221,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1190
1221
|
}
|
|
1191
1222
|
this._dropdownAction.enabled = isEnabled();
|
|
1192
1223
|
let primaryAction = undefined;
|
|
1193
|
-
if (
|
|
1224
|
+
if (this.actionRunner.runningActions.size !== 0) {
|
|
1225
|
+
primaryAction = this._cancelAction;
|
|
1226
|
+
}
|
|
1227
|
+
else if (actions.length === 1) {
|
|
1194
1228
|
primaryAction = actions[0];
|
|
1195
1229
|
}
|
|
1196
1230
|
else if (actions.length > 1) {
|
|
@@ -1379,13 +1413,13 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1379
1413
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
1380
1414
|
return kbLabel
|
|
1381
1415
|
? ( localize(
|
|
1382
|
-
|
|
1416
|
+
9494,
|
|
1383
1417
|
"{0}, Use {1} to open Source Control Accessibility Help.",
|
|
1384
1418
|
placeholder,
|
|
1385
1419
|
kbLabel
|
|
1386
1420
|
))
|
|
1387
1421
|
: ( localize(
|
|
1388
|
-
|
|
1422
|
+
9495,
|
|
1389
1423
|
"{0}, Run the Open Accessibility Help command for more information.",
|
|
1390
1424
|
placeholder
|
|
1391
1425
|
));
|
|
@@ -1440,7 +1474,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1440
1474
|
setValidation(validation, options) {
|
|
1441
1475
|
if (this._validationTimer) {
|
|
1442
1476
|
clearTimeout(this._validationTimer);
|
|
1443
|
-
this._validationTimer =
|
|
1477
|
+
this._validationTimer = undefined;
|
|
1444
1478
|
}
|
|
1445
1479
|
this.validation = validation;
|
|
1446
1480
|
this.renderValidation();
|
|
@@ -1644,7 +1678,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1644
1678
|
}
|
|
1645
1679
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1646
1680
|
const actionbar = ( new ActionBar(actionsContainer));
|
|
1647
|
-
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1681
|
+
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(9496, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1648
1682
|
this.contextViewService.hideContextView();
|
|
1649
1683
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1650
1684
|
this.element.style.borderBottomRightRadius = '2px';
|
|
@@ -2054,12 +2088,15 @@ let SCMViewPane = class SCMViewPane extends ViewPane {
|
|
|
2054
2088
|
const element = e.element;
|
|
2055
2089
|
let context = element;
|
|
2056
2090
|
let actions = [];
|
|
2091
|
+
const disposables = ( new DisposableStore());
|
|
2057
2092
|
let actionRunner = ( new RepositoryPaneActionRunner(() => this.getSelectedResources()));
|
|
2093
|
+
disposables.add(actionRunner);
|
|
2058
2094
|
if (isSCMRepository(element)) {
|
|
2059
2095
|
const menus = this.scmViewService.menus.getRepositoryMenus(element.provider);
|
|
2060
2096
|
const menu = menus.repositoryContextMenu;
|
|
2061
2097
|
context = element.provider;
|
|
2062
2098
|
actionRunner = ( new RepositoryActionRunner(() => this.getSelectedRepositories()));
|
|
2099
|
+
disposables.add(actionRunner);
|
|
2063
2100
|
actions = collectContextMenuActions(menu);
|
|
2064
2101
|
}
|
|
2065
2102
|
else if (isSCMInput(element) || isSCMActionButton(element)) ;
|
|
@@ -2085,13 +2122,13 @@ let SCMViewPane = class SCMViewPane extends ViewPane {
|
|
|
2085
2122
|
actions = collectContextMenuActions(menu);
|
|
2086
2123
|
}
|
|
2087
2124
|
}
|
|
2088
|
-
actionRunner.onWillRun(() => this.tree.domFocus());
|
|
2125
|
+
disposables.add(actionRunner.onWillRun(() => this.tree.domFocus()));
|
|
2089
2126
|
this.contextMenuService.showContextMenu({
|
|
2090
2127
|
actionRunner,
|
|
2091
2128
|
getAnchor: () => e.anchor,
|
|
2092
2129
|
getActions: () => actions,
|
|
2093
2130
|
getActionsContext: () => context,
|
|
2094
|
-
onHide: () =>
|
|
2131
|
+
onHide: () => disposables.dispose()
|
|
2095
2132
|
});
|
|
2096
2133
|
}
|
|
2097
2134
|
getSelectedRepositories() {
|
|
@@ -8,7 +8,7 @@ import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
8
8
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
9
9
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
10
10
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
11
|
-
import { ViewPaneContainer } from "@codingame/monaco-vscode-
|
|
11
|
+
import { ViewPaneContainer } from "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer";
|
|
12
12
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
13
13
|
export declare class SCMViewPaneContainer extends ViewPaneContainer {
|
|
14
14
|
constructor(layoutService: IWorkbenchLayoutService, telemetryService: ITelemetryService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, themeService: IThemeService, storageService: IStorageService, configurationService: IConfigurationService, extensionService: IExtensionService, contextService: IWorkspaceContextService, viewDescriptorService: IViewDescriptorService, logService: ILogService);
|
|
@@ -13,7 +13,7 @@ import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
13
13
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
14
14
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
15
15
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
16
|
-
import { ViewPaneContainer } from '@codingame/monaco-vscode-
|
|
16
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
17
17
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
18
18
|
|
|
19
19
|
registerCss(scm);
|
|
@@ -25,9 +25,11 @@ import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
25
25
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
26
26
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
27
27
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
28
|
+
import { latestChangedValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/experimental/utils';
|
|
29
|
+
import { observableFromEventOpts } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
30
|
+
import { derivedObservableWithCache } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/utils';
|
|
31
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
32
|
+
import { derivedOpts } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
31
33
|
|
|
32
34
|
function getProviderStorageKey(provider) {
|
|
33
35
|
return `${provider.contextValue}:${provider.label}${provider.rootUri ? `:${( provider.rootUri.toString())}` : ''}`;
|
|
@@ -49,7 +51,7 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
49
51
|
this._quickInputService = _quickInputService;
|
|
50
52
|
this._scmViewService = _scmViewService;
|
|
51
53
|
this._autoQuickPickItem = {
|
|
52
|
-
label: ( localize(
|
|
54
|
+
label: ( localize(9497, "Auto")),
|
|
53
55
|
description: this._autoQuickItemDescription,
|
|
54
56
|
repository: 'auto'
|
|
55
57
|
};
|
|
@@ -6,13 +6,13 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
6
6
|
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
7
7
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
8
8
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
9
|
-
import { getProviderKey } from '@codingame/monaco-vscode-
|
|
9
|
+
import { getProviderKey } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
10
10
|
import { ISCMService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
11
11
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
12
|
import { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
13
13
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
14
|
-
import { autorunWithStore, autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
|
|
15
|
-
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/derived';
|
|
14
|
+
import { autorunWithStore, autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
15
|
+
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
16
16
|
|
|
17
17
|
let SCMWorkingSetController = class SCMWorkingSetController extends Disposable {
|
|
18
18
|
static { this.ID = 'workbench.contrib.scmWorkingSets'; }
|
|
@@ -15,7 +15,7 @@ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
15
15
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
16
16
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
17
17
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
18
|
-
import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils';
|
|
18
|
+
import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/runOnChange';
|
|
19
19
|
|
|
20
20
|
class SCMInput extends Disposable {
|
|
21
21
|
get value() {
|