@codingame/monaco-vscode-workbench-service-override 37.3.2 → 37.3.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.
- package/package.json +10 -10
- package/session.js +11 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCheckoutOperationMeta.d.ts +18 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCheckoutOperationMeta.js +27 -0
- package/vscode/src/vs/sessions/browser/layoutActions.d.ts +1 -0
- package/vscode/src/vs/sessions/browser/layoutActions.js +146 -0
- package/vscode/src/vs/sessions/browser/parts/chatCompositeBar.js +6 -6
- package/vscode/src/vs/sessions/browser/parts/chatGroupView.js +5 -5
- package/vscode/src/vs/sessions/browser/parts/menubar.contribution.js +8 -8
- package/vscode/src/vs/sessions/browser/parts/sessionHeader.js +1 -1
- package/vscode/src/vs/sessions/browser/parts/sessionReadOnlyBanner.js +1 -1
- package/vscode/src/vs/sessions/browser/parts/sessionRemoteConnection.js +20 -20
- package/vscode/src/vs/sessions/browser/sessionsSetUpService.js +7 -7
- package/vscode/src/vs/sessions/browser/sessionsSignInDialog.js +4 -4
- package/vscode/src/vs/sessions/contrib/accountMenu/browser/account.contribution.js +42 -42
- package/vscode/src/vs/sessions/contrib/accountMenu/browser/chatPetAchievementBadges.js +11 -11
- package/vscode/src/vs/sessions/contrib/aiCustomizationTreeView/browser/aiCustomizationTreeView.contribution.js +18 -18
- package/vscode/src/vs/sessions/contrib/aiCustomizationTreeView/browser/aiCustomizationTreeViewViews.js +12 -12
- package/vscode/src/vs/sessions/contrib/applyCommitsToParentRepo/browser/applyChangesToParentRepo.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/applyCommitsToParentRepo/browser/applyChangesToParentRepo.js +149 -0
- package/vscode/src/vs/sessions/contrib/aquarium/browser/aquarium.contribution.js +12 -12
- package/vscode/src/vs/sessions/contrib/aquarium/browser/aquariumOverlay.js +10 -10
- package/vscode/src/vs/sessions/contrib/automations/browser/automationDialog.js +68 -68
- package/vscode/src/vs/sessions/contrib/automations/browser/automationDialogService.js +7 -7
- package/vscode/src/vs/sessions/contrib/automations/browser/automationRunner.js +4 -4
- package/vscode/src/vs/sessions/contrib/automations/browser/automationScheduler.js +2 -2
- package/vscode/src/vs/sessions/contrib/automations/browser/automationTools.js +38 -38
- package/vscode/src/vs/sessions/contrib/automations/browser/automations.contribution.js +2 -2
- package/vscode/src/vs/sessions/contrib/automations/browser/providerAutomationService.js +1 -1
- package/vscode/src/vs/sessions/contrib/changes/browser/changes.contribution.js +6 -6
- package/vscode/src/vs/sessions/contrib/changes/browser/changesActions.js +4 -4
- package/vscode/src/vs/sessions/contrib/changes/browser/changesViewActions.js +20 -20
- package/vscode/src/vs/sessions/contrib/changes/browser/changesetReviewActions.js +1 -1
- package/vscode/src/vs/sessions/contrib/changes/browser/sessionSyncChanges.js +9 -9
- package/vscode/src/vs/sessions/contrib/changes/browser/sessionsChangesAccessibilityHelp.js +17 -17
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionChatInputToolbarDebug.js +17 -17
- package/vscode/src/vs/sessions/contrib/chat/browser/taskCommand.d.ts +44 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/taskCommand.js +111 -0
- package/vscode/src/vs/sessions/contrib/chatDebug/browser/chatDebug.contribution.js +2 -2
- package/vscode/src/vs/sessions/contrib/codeReview/browser/codeReview.contributions.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/codeReview/browser/codeReview.contributions.js +75 -0
- package/vscode/src/vs/sessions/contrib/customViewTest/browser/customViewTest.contribution.js +7 -7
- package/vscode/src/vs/sessions/contrib/editor/browser/addTabActions.js +4 -4
- package/vscode/src/vs/sessions/contrib/editor/browser/editor.contribution.js +8 -8
- package/vscode/src/vs/sessions/contrib/editor/browser/emptyFileEditor.contribution.js +1 -1
- package/vscode/src/vs/sessions/contrib/editor/browser/emptyFileEditor.js +5 -5
- package/vscode/src/vs/sessions/contrib/editor/browser/emptyFileEditorInput.js +1 -1
- package/vscode/src/vs/sessions/contrib/files/browser/files.contribution.js +7 -7
- package/vscode/src/vs/sessions/contrib/files/browser/filesView.js +1 -1
- package/vscode/src/vs/sessions/contrib/layout/browser/baseSessionLayoutController.js +5 -5
- package/vscode/src/vs/sessions/contrib/layout/browser/sessions.layout.contribution.js +2 -2
- package/vscode/src/vs/sessions/contrib/layout/browser/singlePane/singlePaneExistingSessionStrategy.js +1 -1
- package/vscode/src/vs/sessions/contrib/onboardingTours/browser/newSessionViewV3Prompt.js +19 -19
- package/vscode/src/vs/sessions/contrib/onboardingTours/browser/tours/newSessionTour.js +4 -4
- package/vscode/src/vs/sessions/contrib/onboardingTours/browser/tours/newSessionViewTour.js +6 -6
- package/vscode/src/vs/sessions/contrib/onboardingTours/browser/tours/newSessionViewTourShared.js +2 -2
- package/vscode/src/vs/sessions/contrib/onboardingTours/browser/tours/newSessionViewV2Tour.js +4 -4
- package/vscode/src/vs/sessions/contrib/policyBlocked/browser/sessionsPolicyBlocked.js +24 -24
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostClaudePermissionModePicker.d.ts +26 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostClaudePermissionModePicker.js +98 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostCodexApprovalsPicker.d.ts +33 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostCodexApprovalsPicker.js +98 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostForkActions.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostForkActions.js +72 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostModeIcon.d.ts +2 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostModeIcon.js +13 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostModePicker.d.ts +122 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostModePicker.js +464 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostPermissionPickerActionItem.d.ts +35 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostPermissionPickerActionItem.js +90 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostPermissionPickerDelegate.d.ts +84 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostPermissionPickerDelegate.js +328 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionBranchActions.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionBranchActions.js +94 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionConfigPicker.d.ts +174 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionConfigPicker.js +1390 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentMergeActions.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentMergeActions.js +468 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/exportDebugLogsAction.d.ts +7 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/exportDebugLogsAction.js +48 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/media/agentHostSessionConfigPicker.css +44 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileAgentHostModePicker.d.ts +30 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileAgentHostModePicker.js +78 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatInputConfigPicker.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatInputConfigPicker.js +345 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatPhoneInputTarget.d.ts +11 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatPhoneInputTarget.js +26 -0
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/devContainerAgentHostService.js +6 -6
- package/vscode/src/vs/sessions/contrib/search/browser/search.contribution.js +3 -3
- package/vscode/src/vs/sessions/contrib/search/browser/searchEditorEmptyState.contribution.js +1 -1
- package/vscode/src/vs/sessions/contrib/sessions/browser/blockedSessionsIndicatorModel.js +4 -4
- package/vscode/src/vs/sessions/contrib/sessions/browser/blockedSessionsList.js +5 -5
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionDetailsAction.js +2 -2
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessions.contribution.js +8 -8
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsActions.js +58 -58
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsTitleBarWidget.js +8 -8
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsWindowNotifier.js +5 -5
- package/vscode/src/vs/sessions/contrib/sessions/browser/views/automationTemplates.js +10 -10
- package/vscode/src/vs/sessions/contrib/sessions/browser/views/automationsAccessibility.js +38 -38
- package/vscode/src/vs/sessions/contrib/sessions/browser/views/automationsView.js +118 -118
- package/vscode/src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.js +53 -53
- package/vscode/src/vs/sessions/contrib/terminal/browser/agentHostSessionTaskRunner.d.ts +42 -0
- package/vscode/src/vs/sessions/contrib/terminal/browser/agentHostSessionTaskRunner.js +139 -0
- package/vscode/src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.d.ts +120 -0
- package/vscode/src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.js +741 -0
- package/vscode/src/vs/sessions/services/sessions/browser/sessionsManagementService.js +2 -2
- package/vscode/src/vs/sessions/services/sessions/browser/sessionsService.js +2 -2
- package/vscode/src/vs/workbench/browser/layout.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workbench-service-override",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - workbench service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.3.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "37.3.
|
|
20
|
-
"@codingame/monaco-vscode-katex-common": "37.3.
|
|
21
|
-
"@codingame/monaco-vscode-keybindings-service-override": "37.3.
|
|
22
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "37.3.
|
|
23
|
-
"@codingame/monaco-vscode-view-banner-service-override": "37.3.
|
|
24
|
-
"@codingame/monaco-vscode-view-common-service-override": "37.3.
|
|
25
|
-
"@codingame/monaco-vscode-view-status-bar-service-override": "37.3.
|
|
26
|
-
"@codingame/monaco-vscode-view-title-bar-service-override": "37.3.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.4",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "37.3.4",
|
|
20
|
+
"@codingame/monaco-vscode-katex-common": "37.3.4",
|
|
21
|
+
"@codingame/monaco-vscode-keybindings-service-override": "37.3.4",
|
|
22
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "37.3.4",
|
|
23
|
+
"@codingame/monaco-vscode-view-banner-service-override": "37.3.4",
|
|
24
|
+
"@codingame/monaco-vscode-view-common-service-override": "37.3.4",
|
|
25
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "37.3.4",
|
|
26
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "37.3.4"
|
|
27
27
|
},
|
|
28
28
|
"main": "index.js",
|
|
29
29
|
"module": "index.js",
|
package/session.js
CHANGED
|
@@ -146,6 +146,17 @@ import '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser
|
|
|
146
146
|
import './vscode/src/vs/sessions/contrib/sessions/browser/sessions.contribution.js';
|
|
147
147
|
import './vscode/src/vs/sessions/contrib/sessions/browser/sessionsTelemetry.contribution.js';
|
|
148
148
|
import './vscode/src/vs/sessions/contrib/workspace/browser/workspace.contribution.js';
|
|
149
|
+
import './vscode/src/vs/sessions/browser/layoutActions.js';
|
|
150
|
+
import './vscode/src/vs/sessions/contrib/codeReview/browser/codeReview.contributions.js';
|
|
151
|
+
import './vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostForkActions.js';
|
|
152
|
+
import './vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionConfigPicker.js';
|
|
153
|
+
import './vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentMergeActions.js';
|
|
154
|
+
import './vscode/src/vs/sessions/contrib/providers/agentHost/browser/exportDebugLogsAction.js';
|
|
155
|
+
import './vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatInputConfigPicker.js';
|
|
156
|
+
import './vscode/src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.js';
|
|
157
|
+
import './vscode/src/vs/sessions/contrib/applyCommitsToParentRepo/browser/applyChangesToParentRepo.js';
|
|
158
|
+
import './vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionBranchActions.js';
|
|
159
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/sidebar/sidebarActions';
|
|
149
160
|
import { observableFromPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/utils';
|
|
150
161
|
export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
151
162
|
export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface IHasCheckoutOperationMeta {
|
|
2
|
+
readonly _meta?: Record<string, unknown>;
|
|
3
|
+
}
|
|
4
|
+
export declare enum CheckoutOperationPreAction {
|
|
5
|
+
Stash = "stash",
|
|
6
|
+
Commit = "commit"
|
|
7
|
+
}
|
|
8
|
+
/** Creates request metadata for a Checkout changeset operation. */
|
|
9
|
+
export declare function checkoutOperationMeta(treeish: string, preCheckoutAction?: CheckoutOperationPreAction): Record<string, unknown>;
|
|
10
|
+
/** Reads and validates the treeish requested by a Checkout changeset operation. */
|
|
11
|
+
export declare function readCheckoutOperationTreeish(source: IHasCheckoutOperationMeta): string | undefined;
|
|
12
|
+
/** Reads and validates the action requested before a Checkout changeset operation. */
|
|
13
|
+
export declare function readCheckoutOperationPreAction(source: IHasCheckoutOperationMeta): CheckoutOperationPreAction | undefined;
|
|
14
|
+
/** Creates structured error data for a Checkout operation blocked by a dirty working tree. */
|
|
15
|
+
export declare function checkoutOperationDirtyWorkingTreeErrorData(): Record<string, unknown>;
|
|
16
|
+
/** Returns whether error data identifies a Checkout operation blocked by a dirty working tree. */
|
|
17
|
+
export declare function isCheckoutOperationDirtyWorkingTreeErrorData(data: unknown): boolean;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
import { hasKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
3
|
+
|
|
4
|
+
const TREEISH_META_KEY = 'treeish';
|
|
5
|
+
const PRE_CHECKOUT_ACTION_META_KEY = 'preCheckoutAction';
|
|
6
|
+
const DIRTY_WORKING_TREE_ERROR_REASON = 'dirtyWorkingTree';
|
|
7
|
+
var CheckoutOperationPreAction;
|
|
8
|
+
(function (CheckoutOperationPreAction) {
|
|
9
|
+
CheckoutOperationPreAction["Stash"] = "stash";
|
|
10
|
+
CheckoutOperationPreAction["Commit"] = "commit";
|
|
11
|
+
})(CheckoutOperationPreAction || (CheckoutOperationPreAction = {}));
|
|
12
|
+
function checkoutOperationMeta(treeish, preCheckoutAction) {
|
|
13
|
+
return {
|
|
14
|
+
[TREEISH_META_KEY]: treeish,
|
|
15
|
+
...(preCheckoutAction
|
|
16
|
+
? { [PRE_CHECKOUT_ACTION_META_KEY]: preCheckoutAction }
|
|
17
|
+
: {}),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function hasErrorReason(data) {
|
|
21
|
+
return typeof data === 'object' && data !== null && hasKey(data, { reason: true });
|
|
22
|
+
}
|
|
23
|
+
function isCheckoutOperationDirtyWorkingTreeErrorData(data) {
|
|
24
|
+
return hasErrorReason(data) && data.reason === DIRTY_WORKING_TREE_ERROR_REASON;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { CheckoutOperationPreAction, checkoutOperationMeta, isCheckoutOperationDirtyWorkingTreeErrorData };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
|
|
2
|
+
import { alert } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
3
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
4
|
+
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
5
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
7
|
+
import { Action2, registerAction2, MenuRegistry, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { Menus } from '@codingame/monaco-vscode-api/vscode/vs/sessions/browser/menus';
|
|
10
|
+
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
11
|
+
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
12
|
+
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility';
|
|
13
|
+
import { TogglePanelAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/panel/panelActions';
|
|
14
|
+
import { IsAuxiliaryWindowContext, SideBarVisibleContext, PanelVisibleContext, IsSessionsWindowContext, IsTopRightEditorGroupContext, AuxiliaryBarVisibleContext, IsWindowAlwaysOnTopContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
15
|
+
import { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
16
|
+
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
17
|
+
import { SessionsWelcomeVisibleContext, IsPhoneLayoutContext, CustomViewVisibleContext, SinglePaneLayoutEnabledContext } from '@codingame/monaco-vscode-api/vscode/vs/sessions/common/contextkeys';
|
|
18
|
+
|
|
19
|
+
const panelCloseIcon = registerIcon("agent-panel-close", Codicon.close, ( localize(2952, "Icon to close the panel.")));
|
|
20
|
+
const sidebarToggleClosedIcon = registerIcon(
|
|
21
|
+
"agent-sidebar-toggle-closed",
|
|
22
|
+
Codicon.layoutSidebarLeftOff,
|
|
23
|
+
( localize(2953, "Icon for the sessions sidebar when closed."))
|
|
24
|
+
);
|
|
25
|
+
const sidebarToggleOpenIcon = registerIcon("agent-sidebar-toggle-open", Codicon.layoutSidebarLeft, ( localize(2954, "Icon for the sessions sidebar when open.")));
|
|
26
|
+
class ToggleSidebarVisibilityAction extends Action2 {
|
|
27
|
+
static {
|
|
28
|
+
this.ID = "workbench.action.agentToggleSidebarVisibility";
|
|
29
|
+
}
|
|
30
|
+
constructor() {
|
|
31
|
+
super({
|
|
32
|
+
id: ToggleSidebarVisibilityAction.ID,
|
|
33
|
+
title: ( localize2(2955, "Toggle Side Bar")),
|
|
34
|
+
icon: sidebarToggleClosedIcon,
|
|
35
|
+
toggled: {
|
|
36
|
+
condition: SideBarVisibleContext,
|
|
37
|
+
icon: sidebarToggleOpenIcon
|
|
38
|
+
},
|
|
39
|
+
metadata: {
|
|
40
|
+
description: ( localize(2956, "Open/Show and Close/Hide Sidebar"))
|
|
41
|
+
},
|
|
42
|
+
category: Categories.View,
|
|
43
|
+
f1: true,
|
|
44
|
+
keybinding: {
|
|
45
|
+
weight: KeybindingWeight.SessionsContrib,
|
|
46
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyB
|
|
47
|
+
},
|
|
48
|
+
menu: [{
|
|
49
|
+
id: Menus.TitleBarLeftLayout,
|
|
50
|
+
group: "navigation",
|
|
51
|
+
order: 0,
|
|
52
|
+
when: ( ContextKeyExpr.and(( IsAuxiliaryWindowContext.toNegated()), ( SessionsWelcomeVisibleContext.toNegated())))
|
|
53
|
+
}]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
run(accessor) {
|
|
57
|
+
const layoutService = accessor.get(IWorkbenchLayoutService);
|
|
58
|
+
const isCurrentlyVisible = layoutService.isVisible(Parts.SIDEBAR_PART);
|
|
59
|
+
layoutService.setPartHidden(isCurrentlyVisible, Parts.SIDEBAR_PART);
|
|
60
|
+
const alertMessage = isCurrentlyVisible ? ( localize(2957, "Primary Side Bar hidden")) : ( localize(2958, "Primary Side Bar shown"));
|
|
61
|
+
alert(alertMessage);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
registerAction2(ToggleSidebarVisibilityAction);
|
|
65
|
+
MenuRegistry.appendMenuItem(Menus.TitleBarAccessibility, {
|
|
66
|
+
command: {
|
|
67
|
+
id: "editor.action.toggleScreenReaderAccessibilityMode",
|
|
68
|
+
title: ( localize(2959, "Screen Reader Optimized")),
|
|
69
|
+
tooltip: ( localize(2960, "Disable Screen Reader Optimized Mode"))
|
|
70
|
+
},
|
|
71
|
+
group: "navigation",
|
|
72
|
+
order: 0,
|
|
73
|
+
when: ( ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED, ( IsPhoneLayoutContext.negate())))
|
|
74
|
+
});
|
|
75
|
+
const titleBarPanelWhen = ( ContextKeyExpr.and(( IsAuxiliaryWindowContext.toNegated()), ( SessionsWelcomeVisibleContext.toNegated()), ( IsPhoneLayoutContext.negate())));
|
|
76
|
+
MenuRegistry.appendMenuItem(Menus.TitleBarSessionMenu, {
|
|
77
|
+
command: {
|
|
78
|
+
id: TogglePanelAction.ID,
|
|
79
|
+
title: ( localize(2961, "Show Panel")),
|
|
80
|
+
icon: Codicon.layoutPanelOff,
|
|
81
|
+
precondition: ( CustomViewVisibleContext.negate())
|
|
82
|
+
},
|
|
83
|
+
group: "navigation",
|
|
84
|
+
order: 10,
|
|
85
|
+
when: ( ContextKeyExpr.and(titleBarPanelWhen, ( PanelVisibleContext.toNegated())))
|
|
86
|
+
});
|
|
87
|
+
MenuRegistry.appendMenuItem(Menus.TitleBarSessionMenu, {
|
|
88
|
+
command: {
|
|
89
|
+
id: TogglePanelAction.ID,
|
|
90
|
+
title: ( localize(2962, "Hide Panel")),
|
|
91
|
+
icon: Codicon.layoutPanel,
|
|
92
|
+
precondition: ( CustomViewVisibleContext.negate())
|
|
93
|
+
},
|
|
94
|
+
group: "navigation",
|
|
95
|
+
order: 10,
|
|
96
|
+
when: ( ContextKeyExpr.and(titleBarPanelWhen, PanelVisibleContext))
|
|
97
|
+
});
|
|
98
|
+
const editorTitleAuxiliaryBarWhen = ( ContextKeyExpr.and(IsSessionsWindowContext, ( IsAuxiliaryWindowContext.toNegated()), ( CustomViewVisibleContext.negate()), IsTopRightEditorGroupContext));
|
|
99
|
+
const isSinglePaneDetailPanelDisabled = ( SinglePaneLayoutEnabledContext.negate());
|
|
100
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleLayout, {
|
|
101
|
+
command: {
|
|
102
|
+
id: "workbench.action.toggleAuxiliaryBar",
|
|
103
|
+
title: ( localize(2963, "Hide Secondary Side Bar")),
|
|
104
|
+
icon: Codicon.rightPanelHide
|
|
105
|
+
},
|
|
106
|
+
group: "navigation",
|
|
107
|
+
order: 99.5,
|
|
108
|
+
when: ( ContextKeyExpr.and(
|
|
109
|
+
editorTitleAuxiliaryBarWhen,
|
|
110
|
+
AuxiliaryBarVisibleContext,
|
|
111
|
+
isSinglePaneDetailPanelDisabled
|
|
112
|
+
))
|
|
113
|
+
});
|
|
114
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleLayout, {
|
|
115
|
+
command: {
|
|
116
|
+
id: "workbench.action.toggleAuxiliaryBar",
|
|
117
|
+
title: ( localize(2964, "Show Secondary Side Bar")),
|
|
118
|
+
icon: Codicon.rightPanelShow
|
|
119
|
+
},
|
|
120
|
+
group: "navigation",
|
|
121
|
+
order: 99.5,
|
|
122
|
+
when: ( ContextKeyExpr.and(editorTitleAuxiliaryBarWhen, ( AuxiliaryBarVisibleContext.toNegated()), isSinglePaneDetailPanelDisabled))
|
|
123
|
+
});
|
|
124
|
+
MenuRegistry.appendMenuItem(Menus.PanelTitle, {
|
|
125
|
+
command: {
|
|
126
|
+
id: "workbench.action.closePanel",
|
|
127
|
+
title: ( localize(2965, "Hide Panel")),
|
|
128
|
+
icon: panelCloseIcon
|
|
129
|
+
},
|
|
130
|
+
group: "navigation",
|
|
131
|
+
order: 2
|
|
132
|
+
});
|
|
133
|
+
MenuRegistry.appendMenuItem(Menus.TitleBarRightLayout, {
|
|
134
|
+
command: {
|
|
135
|
+
id: "workbench.action.toggleWindowAlwaysOnTop",
|
|
136
|
+
title: ( localize(2966, "Toggle Always on Top")),
|
|
137
|
+
icon: Codicon.pin,
|
|
138
|
+
toggled: {
|
|
139
|
+
condition: IsWindowAlwaysOnTopContext,
|
|
140
|
+
icon: Codicon.pinned
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
when: IsAuxiliaryWindowContext,
|
|
144
|
+
group: "navigation",
|
|
145
|
+
order: 0
|
|
146
|
+
});
|
|
@@ -96,7 +96,7 @@ let ChatCompositeBar = class ChatCompositeBar extends Disposable {
|
|
|
96
96
|
this._container.appendChild(this._tabsRow);
|
|
97
97
|
this._tabsContainer = $(".chat-composite-bar-tabs");
|
|
98
98
|
this._tabsContainer.setAttribute("role", "tablist");
|
|
99
|
-
this._tabsContainer.setAttribute("aria-label", ( localize(
|
|
99
|
+
this._tabsContainer.setAttribute("aria-label", ( localize(2968, "Chats")));
|
|
100
100
|
this._tabsScrollbar = this._register(( new ScrollableElement(this._tabsContainer, {
|
|
101
101
|
horizontal: ScrollbarVisibility.Hidden,
|
|
102
102
|
vertical: ScrollbarVisibility.Hidden,
|
|
@@ -233,7 +233,7 @@ let ChatCompositeBar = class ChatCompositeBar extends Disposable {
|
|
|
233
233
|
const title = chat.title.read(reader);
|
|
234
234
|
const status = chat.status.read(reader);
|
|
235
235
|
labelEl.textContent = title;
|
|
236
|
-
tab.setAttribute("aria-label", ( localize(
|
|
236
|
+
tab.setAttribute("aria-label", ( localize(2969, "{0}, {1}", title, getSessionConversationStatusAriaLabel(status))));
|
|
237
237
|
}));
|
|
238
238
|
const lockIcon = $(".chat-composite-bar-tab-lock");
|
|
239
239
|
lockIcon.classList.add(...ThemeIcon.asClassNameArray(Codicon.lock));
|
|
@@ -393,10 +393,10 @@ let ChatCompositeBar = class ChatCompositeBar extends Disposable {
|
|
|
393
393
|
clearChatReferenceDragData();
|
|
394
394
|
this._delegate?.onTabDragEnd?.();
|
|
395
395
|
}));
|
|
396
|
-
const renameAction = this._tabDisposables.add(( new Action("sessionCompositeBar.renameChat", ( localize(
|
|
396
|
+
const renameAction = this._tabDisposables.add(( new Action("sessionCompositeBar.renameChat", ( localize(2970, "Rename")), undefined, true, async () => {
|
|
397
397
|
this._startTabEditing(chatTab);
|
|
398
398
|
})));
|
|
399
|
-
const copyLinkAction = this._tabDisposables.add(( new Action(COPY_AGENT_HOST_CHAT_LINK_COMMAND_ID, ( localize(
|
|
399
|
+
const copyLinkAction = this._tabDisposables.add(( new Action(COPY_AGENT_HOST_CHAT_LINK_COMMAND_ID, ( localize(2971, "Copy Link")), undefined, true, async () => {
|
|
400
400
|
if (session) {
|
|
401
401
|
await this._commandService.executeCommand(COPY_AGENT_HOST_CHAT_LINK_COMMAND_ID, {
|
|
402
402
|
session,
|
|
@@ -404,7 +404,7 @@ let ChatCompositeBar = class ChatCompositeBar extends Disposable {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
})));
|
|
407
|
-
const deleteAction = this._tabDisposables.add(( new Action("sessionCompositeBar.deleteChat", ( localize(
|
|
407
|
+
const deleteAction = this._tabDisposables.add(( new Action("sessionCompositeBar.deleteChat", ( localize(2972, "Delete Chat")), undefined, true, async () => {
|
|
408
408
|
if (delegate) {
|
|
409
409
|
await this._sessionsManagementService.deleteChat(delegate.session, chat.resource);
|
|
410
410
|
}
|
|
@@ -467,7 +467,7 @@ let ChatCompositeBar = class ChatCompositeBar extends Disposable {
|
|
|
467
467
|
const store = ( new DisposableStore());
|
|
468
468
|
this._editingDisposables.value = store;
|
|
469
469
|
const inputBox = store.add(( new InputBox(inputContainer, this._contextViewService, {
|
|
470
|
-
ariaLabel: ( localize(
|
|
470
|
+
ariaLabel: ( localize(2973, "Rename chat")),
|
|
471
471
|
inputBoxStyles: defaultInputBoxStyles
|
|
472
472
|
})));
|
|
473
473
|
inputBox.element.classList.add("chat-composite-bar-tab-input");
|
|
@@ -91,12 +91,12 @@ let ChatGroupView = class ChatGroupView extends Disposable {
|
|
|
91
91
|
if (count <= 1) {
|
|
92
92
|
this.element.removeAttribute("role");
|
|
93
93
|
this.element.removeAttribute("aria-label");
|
|
94
|
-
this._compositeBar.setAriaLabel(( localize(
|
|
94
|
+
this._compositeBar.setAriaLabel(( localize(2974, "Chats")));
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
this.element.setAttribute("role", "region");
|
|
98
|
-
this.element.setAttribute("aria-label", ( localize(
|
|
99
|
-
this._compositeBar.setAriaLabel(( localize(
|
|
98
|
+
this.element.setAttribute("aria-label", ( localize(2975, "Chat Group {0} of {1}", index + 1, count)));
|
|
99
|
+
this._compositeBar.setAriaLabel(( localize(2976, "Chats, Group {0} of {1}", index + 1, count)));
|
|
100
100
|
}
|
|
101
101
|
setContext(context) {
|
|
102
102
|
this._contextDisposables.clear();
|
|
@@ -142,7 +142,7 @@ let ChatGroupView = class ChatGroupView extends Disposable {
|
|
|
142
142
|
return {
|
|
143
143
|
archived: true,
|
|
144
144
|
content: {
|
|
145
|
-
message: ( localize(
|
|
145
|
+
message: ( localize(2977, "Archived sessions are read-only.")),
|
|
146
146
|
action: {
|
|
147
147
|
label: action.title.value,
|
|
148
148
|
run: () => this._commandService.executeCommand(UNARCHIVE_SESSION_COMMAND_ID, context.session)
|
|
@@ -153,7 +153,7 @@ let ChatGroupView = class ChatGroupView extends Disposable {
|
|
|
153
153
|
return {
|
|
154
154
|
archived: false,
|
|
155
155
|
content: {
|
|
156
|
-
message: ( localize(
|
|
156
|
+
message: ( localize(2978, "This chat is read-only"))
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
});
|
|
@@ -9,7 +9,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
9
9
|
title: {
|
|
10
10
|
value: "File",
|
|
11
11
|
original: "File",
|
|
12
|
-
mnemonicTitle: ( localize(
|
|
12
|
+
mnemonicTitle: ( localize(2982, "&&File"))
|
|
13
13
|
},
|
|
14
14
|
order: 1
|
|
15
15
|
});
|
|
@@ -18,7 +18,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
18
18
|
title: {
|
|
19
19
|
value: "Edit",
|
|
20
20
|
original: "Edit",
|
|
21
|
-
mnemonicTitle: ( localize(
|
|
21
|
+
mnemonicTitle: ( localize(2983, "&&Edit"))
|
|
22
22
|
},
|
|
23
23
|
order: 2
|
|
24
24
|
});
|
|
@@ -27,7 +27,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
27
27
|
title: {
|
|
28
28
|
value: "Selection",
|
|
29
29
|
original: "Selection",
|
|
30
|
-
mnemonicTitle: ( localize(
|
|
30
|
+
mnemonicTitle: ( localize(2984, "&&Selection"))
|
|
31
31
|
},
|
|
32
32
|
order: 3
|
|
33
33
|
});
|
|
@@ -36,7 +36,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
36
36
|
title: {
|
|
37
37
|
value: "View",
|
|
38
38
|
original: "View",
|
|
39
|
-
mnemonicTitle: ( localize(
|
|
39
|
+
mnemonicTitle: ( localize(2985, "&&View"))
|
|
40
40
|
},
|
|
41
41
|
order: 4
|
|
42
42
|
});
|
|
@@ -45,7 +45,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
45
45
|
title: {
|
|
46
46
|
value: "Go",
|
|
47
47
|
original: "Go",
|
|
48
|
-
mnemonicTitle: ( localize(
|
|
48
|
+
mnemonicTitle: ( localize(2986, "&&Go"))
|
|
49
49
|
},
|
|
50
50
|
order: 5
|
|
51
51
|
});
|
|
@@ -54,7 +54,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
54
54
|
title: {
|
|
55
55
|
value: "Terminal",
|
|
56
56
|
original: "Terminal",
|
|
57
|
-
mnemonicTitle: ( localize(
|
|
57
|
+
mnemonicTitle: ( localize(2987, "&&Terminal"))
|
|
58
58
|
},
|
|
59
59
|
order: 7
|
|
60
60
|
});
|
|
@@ -63,7 +63,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
63
63
|
title: {
|
|
64
64
|
value: "Help",
|
|
65
65
|
original: "Help",
|
|
66
|
-
mnemonicTitle: ( localize(
|
|
66
|
+
mnemonicTitle: ( localize(2988, "&&Help"))
|
|
67
67
|
},
|
|
68
68
|
order: 8
|
|
69
69
|
});
|
|
@@ -72,7 +72,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
72
72
|
title: {
|
|
73
73
|
value: "Preferences",
|
|
74
74
|
original: "Preferences",
|
|
75
|
-
mnemonicTitle: ( localize(
|
|
75
|
+
mnemonicTitle: ( localize(2989, "&&Preferences"))
|
|
76
76
|
},
|
|
77
77
|
when: IsMacNativeContext,
|
|
78
78
|
order: 9
|
|
@@ -240,7 +240,7 @@ let SessionHeader = class SessionHeader extends Disposable {
|
|
|
240
240
|
input.className = "chat-composite-bar-session-title-input";
|
|
241
241
|
input.value = initialTitle;
|
|
242
242
|
input.placeholder = fallbackTitle;
|
|
243
|
-
input.setAttribute("aria-label", ( localize(
|
|
243
|
+
input.setAttribute("aria-label", ( localize(3035, "Rename session")));
|
|
244
244
|
input.spellcheck = false;
|
|
245
245
|
this._titleTextEl.style.display = "none";
|
|
246
246
|
this._titleEl.appendChild(input);
|
|
@@ -24,7 +24,7 @@ class SessionReadOnlyBanner extends Disposable {
|
|
|
24
24
|
this._announcement = append(this.domNode, $("span.session-readonly-banner-announcement"));
|
|
25
25
|
this._actionContainer = append(this.domNode, $("span.session-readonly-banner-action"));
|
|
26
26
|
this.setContent({
|
|
27
|
-
message: ( localize(
|
|
27
|
+
message: ( localize(3036, "This chat is read-only"))
|
|
28
28
|
});
|
|
29
29
|
this.setVisible(false);
|
|
30
30
|
}
|
|
@@ -210,19 +210,19 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
210
210
|
if (provider && isAgentHostProvider(provider) && provider.connectionLabels) {
|
|
211
211
|
return provider.connectionLabels;
|
|
212
212
|
}
|
|
213
|
-
const hostLabel = provider?.label ?? ( localize(
|
|
213
|
+
const hostLabel = provider?.label ?? ( localize(3037, "The remote host"));
|
|
214
214
|
return {
|
|
215
|
-
unavailableTitle: ( localize(
|
|
216
|
-
unavailableDescription: ( localize(
|
|
217
|
-
unavailable: ( localize(
|
|
218
|
-
connectingTitle: ( localize(
|
|
219
|
-
connectingDescription: ( localize(
|
|
220
|
-
connecting: ( localize(
|
|
221
|
-
reconnecting: ( localize(
|
|
222
|
-
reconnectingIn: seconds => ( localize(
|
|
223
|
-
incompatibleTitle: ( localize(
|
|
215
|
+
unavailableTitle: ( localize(3038, "Cannot Connect to {0}", hostLabel)),
|
|
216
|
+
unavailableDescription: ( localize(3039, "Cannot reach {0}.", hostLabel)),
|
|
217
|
+
unavailable: ( localize(3039, "Cannot reach {0}.", hostLabel)),
|
|
218
|
+
connectingTitle: ( localize(3040, "Connecting to {0}", hostLabel)),
|
|
219
|
+
connectingDescription: ( localize(3041, "Starting {0}.", hostLabel)),
|
|
220
|
+
connecting: ( localize(3042, "Waiting for agent host connection...")),
|
|
221
|
+
reconnecting: ( localize(3043, "Reconnecting to {0}...", hostLabel)),
|
|
222
|
+
reconnectingIn: seconds => ( localize(3044, "Reconnecting to {0} in {1}s", hostLabel, seconds)),
|
|
223
|
+
incompatibleTitle: ( localize(3045, "Cannot Connect to {0}", hostLabel)),
|
|
224
224
|
incompatible: ( localize(
|
|
225
|
-
|
|
225
|
+
3046,
|
|
226
226
|
"{0} is incompatible with this version of Visual Studio Code.",
|
|
227
227
|
hostLabel
|
|
228
228
|
))
|
|
@@ -246,7 +246,7 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
246
246
|
}
|
|
247
247
|
const status = this._getEffectiveStatus(reader);
|
|
248
248
|
const provider = this._sessionsProvidersService.getProvider(session.providerId);
|
|
249
|
-
const hostLabel = provider?.label ?? ( localize(
|
|
249
|
+
const hostLabel = provider?.label ?? ( localize(3037, "The remote host"));
|
|
250
250
|
const labels = this._getConnectionLabels(provider);
|
|
251
251
|
if (status?.kind === "connected") {
|
|
252
252
|
return undefined;
|
|
@@ -280,10 +280,10 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
280
280
|
}
|
|
281
281
|
if (status.reason === SessionRemoteConnectionFailureReason.HostNotRunning) {
|
|
282
282
|
return {
|
|
283
|
-
title: ( localize(
|
|
284
|
-
description: ( localize(
|
|
283
|
+
title: ( localize(3047, "Unable to Connect to {0}", hostLabel)),
|
|
284
|
+
description: ( localize(3048, "{0} is not running.", hostLabel)),
|
|
285
285
|
action: provider && isAgentHostProvider(provider) && provider.connect ? {
|
|
286
|
-
label: ( localize(
|
|
286
|
+
label: ( localize(3049, "Start {0}", hostLabel)),
|
|
287
287
|
run: () => this.connect()
|
|
288
288
|
} : undefined,
|
|
289
289
|
autoConnect
|
|
@@ -305,7 +305,7 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
305
305
|
}
|
|
306
306
|
const status = this._getEffectiveStatus(reader);
|
|
307
307
|
const provider = this._sessionsProvidersService.getProvider(session.providerId);
|
|
308
|
-
const hostLabel = provider?.label ?? ( localize(
|
|
308
|
+
const hostLabel = provider?.label ?? ( localize(3037, "The remote host"));
|
|
309
309
|
const labels = this._getConnectionLabels(provider);
|
|
310
310
|
const progressMessage = this._getRemoteHostConnectProgress(session, status, labels, reader);
|
|
311
311
|
if (progressMessage || this._autoConnectPending.read(reader) || status?.kind === "connecting") {
|
|
@@ -330,7 +330,7 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
330
330
|
message: seconds === undefined ? labels.reconnecting : labels.reconnectingIn(seconds),
|
|
331
331
|
ariaLabel: labels.reconnecting,
|
|
332
332
|
action: seconds !== undefined && provider && isAgentHostProvider(provider) && provider.reconnectNow ? {
|
|
333
|
-
label: ( localize(
|
|
333
|
+
label: ( localize(3050, "Try Now")),
|
|
334
334
|
run: () => provider.reconnectNow?.()
|
|
335
335
|
} : undefined
|
|
336
336
|
} : undefined;
|
|
@@ -338,9 +338,9 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
338
338
|
if (status.reason === SessionRemoteConnectionFailureReason.HostNotRunning) {
|
|
339
339
|
return {
|
|
340
340
|
icon: Codicon.debugDisconnect,
|
|
341
|
-
message: ( localize(
|
|
341
|
+
message: ( localize(3048, "{0} is not running.", hostLabel)),
|
|
342
342
|
action: provider && isAgentHostProvider(provider) && provider.connect ? {
|
|
343
|
-
label: ( localize(
|
|
343
|
+
label: ( localize(3049, "Start {0}", hostLabel)),
|
|
344
344
|
run: () => this.connect()
|
|
345
345
|
} : undefined
|
|
346
346
|
};
|
|
@@ -355,7 +355,7 @@ let SessionRemoteConnection = class SessionRemoteConnection extends Disposable {
|
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
_connectActionLabel(session, reader) {
|
|
358
|
-
return this._connectAttempted.read(reader) === session ? ( localize(
|
|
358
|
+
return this._connectAttempted.read(reader) === session ? ( localize(3051, "Retry")) : ( localize(3052, "Connect"));
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
SessionRemoteConnection = ( __decorate([( __param(0, ISessionsProvidersService)), ( __param(1, ILogService))], SessionRemoteConnection));
|
|
@@ -296,10 +296,10 @@ let SessionsSetUpWidget = class SessionsSetUpWidget extends Disposable {
|
|
|
296
296
|
const welcomeVisibleKey = SessionsWelcomeVisibleContext.bindTo(this.contextKeyService);
|
|
297
297
|
welcomeVisibleKey.set(true);
|
|
298
298
|
disposables.add(toDisposable(() => welcomeVisibleKey.reset()));
|
|
299
|
-
const dialog = disposables.add(( new Dialog(this.layoutService.activeContainer, "", [( localize(
|
|
299
|
+
const dialog = disposables.add(( new Dialog(this.layoutService.activeContainer, "", [( localize(3059, "Enable AI Features"))], createWorkbenchDialogOptions({
|
|
300
300
|
type: "none",
|
|
301
301
|
extraClasses: ["chat-setup-dialog", "sessions-welcome-dialog"],
|
|
302
|
-
detail: ( localize(
|
|
302
|
+
detail: ( localize(3060, "Enable AI features to continue using Agents.")),
|
|
303
303
|
icon: Codicon.agent,
|
|
304
304
|
alignment: DialogContentsAlignment.Vertical,
|
|
305
305
|
cancelId: 1,
|
|
@@ -389,7 +389,7 @@ let SessionsSetUpWidget = class SessionsSetUpWidget extends Disposable {
|
|
|
389
389
|
const overlay = append(this.layoutService.mainContainer, $("div.sessions-loading-overlay"));
|
|
390
390
|
overlay.setAttribute("role", "status");
|
|
391
391
|
overlay.setAttribute("aria-busy", "true");
|
|
392
|
-
overlay.setAttribute("aria-label", ( localize(
|
|
392
|
+
overlay.setAttribute("aria-label", ( localize(3061, "Loading")));
|
|
393
393
|
append(overlay, $("div.sessions-loading-icon.codicon.codicon-agent"));
|
|
394
394
|
return {
|
|
395
395
|
element: overlay,
|
|
@@ -471,8 +471,8 @@ let SessionsSetUpWidget = class SessionsSetUpWidget extends Disposable {
|
|
|
471
471
|
async _showWelcomeDialog() {
|
|
472
472
|
this.logService.info("[sessions welcome] Showing welcome dialog");
|
|
473
473
|
const disposables = ( new DisposableStore());
|
|
474
|
-
const productName = ( localize(
|
|
475
|
-
const dialog = disposables.add(( new Dialog(this.layoutService.activeContainer, ( localize(
|
|
474
|
+
const productName = ( localize(3062, "{0} - Agents", this.productService.nameLong));
|
|
475
|
+
const dialog = disposables.add(( new Dialog(this.layoutService.activeContainer, ( localize(3063, "Welcome to {0}", productName)), [( localize(3064, "Get Started"))], createWorkbenchDialogOptions({
|
|
476
476
|
type: "none",
|
|
477
477
|
extraClasses: [
|
|
478
478
|
"chat-setup-dialog",
|
|
@@ -480,7 +480,7 @@ let SessionsSetUpWidget = class SessionsSetUpWidget extends Disposable {
|
|
|
480
480
|
"sessions-main-welcome-dialog"
|
|
481
481
|
],
|
|
482
482
|
detail: ( localize(
|
|
483
|
-
|
|
483
|
+
3065,
|
|
484
484
|
"Your AI-powered coding experience where agents explore, build, and iterate with you."
|
|
485
485
|
)),
|
|
486
486
|
icon: Codicon.agent,
|
|
@@ -508,7 +508,7 @@ let SessionsSetUpWidget = class SessionsSetUpWidget extends Disposable {
|
|
|
508
508
|
const publicCodeUrl = defaultChatAgent?.publicCodeMatchesUrl ?? "";
|
|
509
509
|
const settingsUrl = this.defaultAccountService.resolveGitHubUrl(GitHubPaths.copilotSettings);
|
|
510
510
|
const footer = ( localize(
|
|
511
|
-
|
|
511
|
+
3066,
|
|
512
512
|
"By continuing, you agree to {0}'s [Terms]({1}) and [Privacy Statement]({2}). {3} Copilot may show [public code]({4}) suggestions and use your data to improve the product. You can change these [settings]({5}) anytime.",
|
|
513
513
|
providerName,
|
|
514
514
|
termsUrl,
|
|
@@ -24,11 +24,11 @@ function createSessionsSignInDialogOptions(
|
|
|
24
24
|
return {
|
|
25
25
|
forceSignInDialog: true,
|
|
26
26
|
dialogIcon: Codicon.agent,
|
|
27
|
-
dialogTitle: ( localize(
|
|
27
|
+
dialogTitle: ( localize(3067, "Sign in to use Agents")),
|
|
28
28
|
disableCloseButton: !allowContinueWithoutSignIn,
|
|
29
29
|
dialogExtraClasses: ["sessions-welcome-dialog"],
|
|
30
30
|
allowContinueWithoutSignIn,
|
|
31
|
-
renderDialogFooter: showReturnToVSCodeEditor ? footer => createDialogAction(footer, ( localize(
|
|
31
|
+
renderDialogFooter: showReturnToVSCodeEditor ? footer => createDialogAction(footer, ( localize(3068, "Return to VS Code Editor")), () => {
|
|
32
32
|
void commandService.executeCommand(RETURN_TO_VSCODE_EDITOR_COMMAND_ID).catch(onUnexpectedError);
|
|
33
33
|
}) : undefined,
|
|
34
34
|
onDidDismissDialog: allowContinueWithoutSignIn ? onContinueWithoutSignIn : undefined
|
|
@@ -40,11 +40,11 @@ let SessionsSigningInDialog = class SessionsSigningInDialog extends Disposable {
|
|
|
40
40
|
this.onCancel = onCancel;
|
|
41
41
|
this.isDisposed = false;
|
|
42
42
|
this.didCancel = false;
|
|
43
|
-
this.dialog = this._register(( new Dialog(layoutService.activeContainer, ( localize(
|
|
43
|
+
this.dialog = this._register(( new Dialog(layoutService.activeContainer, ( localize(3069, "Signing in…")), [], createWorkbenchDialogOptions({
|
|
44
44
|
type: "none",
|
|
45
45
|
extraClasses: ["chat-setup-dialog", "sessions-welcome-dialog"],
|
|
46
46
|
modalBlockExtraClasses: ["sessions-signing-in-dialog-modal-block"],
|
|
47
|
-
detail: ( localize(
|
|
47
|
+
detail: ( localize(3070, "Please complete sign-in in the browser.")),
|
|
48
48
|
icon: Codicon.agent,
|
|
49
49
|
alignment: DialogContentsAlignment.Vertical,
|
|
50
50
|
cancelId: 0,
|