@codingame/monaco-vscode-api 25.0.0 → 25.1.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 +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/jumpToView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/terminal.js +1 -0
- package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +47 -47
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +32 -32
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +9 -9
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +86 -86
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +10 -0
|
@@ -27,19 +27,19 @@ var TestExplorerViewSorting;
|
|
|
27
27
|
TestExplorerViewSorting["ByDuration"] = "duration";
|
|
28
28
|
})(TestExplorerViewSorting || (TestExplorerViewSorting = {}));
|
|
29
29
|
const testStateNames = {
|
|
30
|
-
[TestResultState.Errored]: ( localize(
|
|
31
|
-
[TestResultState.Failed]: ( localize(
|
|
32
|
-
[TestResultState.Passed]: ( localize(
|
|
33
|
-
[TestResultState.Queued]: ( localize(
|
|
34
|
-
[TestResultState.Running]: ( localize(
|
|
35
|
-
[TestResultState.Skipped]: ( localize(
|
|
36
|
-
[TestResultState.Unset]: ( localize(
|
|
30
|
+
[TestResultState.Errored]: ( localize(12709, 'Errored')),
|
|
31
|
+
[TestResultState.Failed]: ( localize(12710, 'Failed')),
|
|
32
|
+
[TestResultState.Passed]: ( localize(12711, 'Passed')),
|
|
33
|
+
[TestResultState.Queued]: ( localize(12712, 'Queued')),
|
|
34
|
+
[TestResultState.Running]: ( localize(12713, 'Running')),
|
|
35
|
+
[TestResultState.Skipped]: ( localize(12714, 'Skipped')),
|
|
36
|
+
[TestResultState.Unset]: ( localize(12715, 'Not yet run')),
|
|
37
37
|
};
|
|
38
|
-
const labelForTestInState = (label, state) => ( localize(
|
|
38
|
+
const labelForTestInState = (label, state) => ( localize(12716, '{0} ({1})', stripIcons(label), testStateNames[state]));
|
|
39
39
|
const testConfigurationGroupNames = {
|
|
40
|
-
[TestRunProfileBitset.Debug]: ( localize(
|
|
41
|
-
[TestRunProfileBitset.Run]: ( localize(
|
|
42
|
-
[TestRunProfileBitset.Coverage]: ( localize(
|
|
40
|
+
[TestRunProfileBitset.Debug]: ( localize(12717, 'Debug')),
|
|
41
|
+
[TestRunProfileBitset.Run]: ( localize(12718, 'Run')),
|
|
42
|
+
[TestRunProfileBitset.Coverage]: ( localize(12719, 'Coverage')),
|
|
43
43
|
};
|
|
44
44
|
var TestCommandId;
|
|
45
45
|
(function (TestCommandId) {
|
|
@@ -12,7 +12,7 @@ import { ITelemetryService } from '../../../../platform/telemetry/common/telemet
|
|
|
12
12
|
import { refreshComputedState } from './getComputedState.js';
|
|
13
13
|
import { TestId } from './testId.js';
|
|
14
14
|
import { statesInOrder, makeEmptyCounts, terminalStatePriorities, maxPriority } from './testingStates.js';
|
|
15
|
-
import {
|
|
15
|
+
import { TestResultState, getMarkId, TestItemExpandState, TestResultItem, TestMessageType } from './testTypes.js';
|
|
16
16
|
import { observableValue } from '../../../../base/common/observableInternal/observables/observableValue.js';
|
|
17
17
|
|
|
18
18
|
const emptyRawOutput = {
|
|
@@ -160,7 +160,7 @@ let LiveTestResult = class LiveTestResult extends Disposable {
|
|
|
160
160
|
this.onNewTask = this.newTaskEmitter.event;
|
|
161
161
|
this.onEndTask = this.endTaskEmitter.event;
|
|
162
162
|
this.tasks = [];
|
|
163
|
-
this.name = ( localize(
|
|
163
|
+
this.name = ( localize(12720, 'Test run at {0}', ( new Date()).toLocaleString(language)));
|
|
164
164
|
this.counts = makeEmptyCounts();
|
|
165
165
|
this.computedStateAccessor = {
|
|
166
166
|
getOwnState: i => i.ownComputedState,
|
|
@@ -384,7 +384,7 @@ class HydratedTestResult {
|
|
|
384
384
|
this.completedAt = serialized.completedAt;
|
|
385
385
|
this.tasks = ( serialized.tasks.map((task, i) => ({
|
|
386
386
|
id: task.id,
|
|
387
|
-
name: task.name || ( localize(
|
|
387
|
+
name: task.name || ( localize(12721, 'Unnamed Task')),
|
|
388
388
|
ctrlId: task.ctrlId,
|
|
389
389
|
running: false,
|
|
390
390
|
coverage: observableValue(this, undefined),
|
|
@@ -46,9 +46,9 @@ var TestRunProfileBitset;
|
|
|
46
46
|
TestRunProfileBitset[TestRunProfileBitset["SupportsContinuousRun"] = 64] = "SupportsContinuousRun";
|
|
47
47
|
})(TestRunProfileBitset || (TestRunProfileBitset = {}));
|
|
48
48
|
const testProfileBitset = {
|
|
49
|
-
[TestRunProfileBitset.Run]: ( localize(
|
|
50
|
-
[TestRunProfileBitset.Debug]: ( localize(
|
|
51
|
-
[TestRunProfileBitset.Coverage]: ( localize(
|
|
49
|
+
[TestRunProfileBitset.Run]: ( localize(12724, 'Run')),
|
|
50
|
+
[TestRunProfileBitset.Debug]: ( localize(12725, 'Debug')),
|
|
51
|
+
[TestRunProfileBitset.Coverage]: ( localize(12726, 'Coverage')),
|
|
52
52
|
};
|
|
53
53
|
const testRunProfileBitsetList = [
|
|
54
54
|
TestRunProfileBitset.Run,
|
|
@@ -48,7 +48,7 @@ async function openInEditor(editorService, resource) {
|
|
|
48
48
|
const manageTrustedDomainSettingsCommand = {
|
|
49
49
|
id: 'workbench.action.manageTrustedDomain',
|
|
50
50
|
description: {
|
|
51
|
-
description: ( localize2(
|
|
51
|
+
description: ( localize2(12912, 'Manage Trusted Domains')),
|
|
52
52
|
args: []
|
|
53
53
|
},
|
|
54
54
|
handler: async (accessor) => {
|
|
@@ -65,7 +65,7 @@ async function configureOpenerTrustedDomainsHandler(trustedDomains, domainToConf
|
|
|
65
65
|
const options = [];
|
|
66
66
|
options.push({
|
|
67
67
|
type: 'item',
|
|
68
|
-
label: ( localize(
|
|
68
|
+
label: ( localize(12913, 'Trust {0}', domainToConfigure)),
|
|
69
69
|
id: 'trust',
|
|
70
70
|
toTrust: domainToConfigure,
|
|
71
71
|
picked: true
|
|
@@ -77,7 +77,7 @@ async function configureOpenerTrustedDomainsHandler(trustedDomains, domainToConf
|
|
|
77
77
|
const base = parsedDomainToConfigure.authority.split(':')[0];
|
|
78
78
|
options.push({
|
|
79
79
|
type: 'item',
|
|
80
|
-
label: ( localize(
|
|
80
|
+
label: ( localize(12914, 'Trust {0} on all ports', base)),
|
|
81
81
|
toTrust: base + ':*',
|
|
82
82
|
id: 'trust'
|
|
83
83
|
});
|
|
@@ -86,20 +86,20 @@ async function configureOpenerTrustedDomainsHandler(trustedDomains, domainToConf
|
|
|
86
86
|
else {
|
|
87
87
|
options.push({
|
|
88
88
|
type: 'item',
|
|
89
|
-
label: ( localize(
|
|
89
|
+
label: ( localize(12915, 'Trust {0} and all its subdomains', domainEnd)),
|
|
90
90
|
toTrust: topLevelDomain,
|
|
91
91
|
id: 'trust'
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
options.push({
|
|
95
95
|
type: 'item',
|
|
96
|
-
label: ( localize(
|
|
96
|
+
label: ( localize(12916, 'Trust all domains (disables link protection)')),
|
|
97
97
|
toTrust: '*',
|
|
98
98
|
id: 'trust'
|
|
99
99
|
});
|
|
100
100
|
options.push({
|
|
101
101
|
type: 'item',
|
|
102
|
-
label: ( localize(
|
|
102
|
+
label: ( localize(12917, 'Manage Trusted Domains')),
|
|
103
103
|
id: 'manage'
|
|
104
104
|
});
|
|
105
105
|
const pickedResult = await quickInputService.pick(options, { activeItem: options[0] });
|
|
@@ -39,7 +39,7 @@ if (CutAction) {
|
|
|
39
39
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
|
40
40
|
command: {
|
|
41
41
|
id: CutAction.id,
|
|
42
|
-
title: ( localize(
|
|
42
|
+
title: ( localize(13155, "Cut")),
|
|
43
43
|
},
|
|
44
44
|
group: '5_cutcopypaste',
|
|
45
45
|
order: 1,
|
|
@@ -50,7 +50,7 @@ if (CopyAction) {
|
|
|
50
50
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
|
51
51
|
command: {
|
|
52
52
|
id: CopyAction.id,
|
|
53
|
-
title: ( localize(
|
|
53
|
+
title: ( localize(13156, "Copy")),
|
|
54
54
|
},
|
|
55
55
|
group: '5_cutcopypaste',
|
|
56
56
|
order: 2,
|
|
@@ -61,7 +61,7 @@ if (PasteAction) {
|
|
|
61
61
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
|
62
62
|
command: {
|
|
63
63
|
id: PasteAction.id,
|
|
64
|
-
title: ( localize(
|
|
64
|
+
title: ( localize(13157, "Paste")),
|
|
65
65
|
},
|
|
66
66
|
group: '5_cutcopypaste',
|
|
67
67
|
order: 3,
|
|
@@ -23,7 +23,7 @@ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layout
|
|
|
23
23
|
var WebviewEditor_1;
|
|
24
24
|
const CONTEXT_ACTIVE_WEBVIEW_PANEL_ID = ( new RawContextKey('activeWebviewPanelId', '', {
|
|
25
25
|
type: 'string',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(13164, "The viewType of the currently active webview panel.")),
|
|
27
27
|
}));
|
|
28
28
|
let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
29
29
|
static { WebviewEditor_1 = this; }
|
|
@@ -3,8 +3,8 @@ import { localize } from '../../../../nls.js';
|
|
|
3
3
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
4
4
|
|
|
5
5
|
const WorkspaceTrustContext = {
|
|
6
|
-
IsEnabled: ( new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(
|
|
7
|
-
IsTrusted: ( new RawContextKey('isWorkspaceTrusted', false, ( localize(
|
|
6
|
+
IsEnabled: ( new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(13577, "Whether the workspace trust feature is enabled.")))),
|
|
7
|
+
IsTrusted: ( new RawContextKey('isWorkspaceTrusted', false, ( localize(13578, "Whether the current workspace has been trusted by the user."))))
|
|
8
8
|
};
|
|
9
9
|
const MANAGE_TRUST_COMMAND_ID = 'workbench.trust.manage';
|
|
10
10
|
|
|
@@ -348,7 +348,7 @@ let DefaultAccountManagementContribution = class DefaultAccountManagementContrib
|
|
|
348
348
|
constructor() {
|
|
349
349
|
super({
|
|
350
350
|
id: DEFAULT_ACCOUNT_SIGN_IN_COMMAND,
|
|
351
|
-
title: ( localize(
|
|
351
|
+
title: ( localize(13585, "Sign in")),
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
run() {
|
|
@@ -44,23 +44,23 @@ const authenticationDefinitionSchema = {
|
|
|
44
44
|
properties: {
|
|
45
45
|
id: {
|
|
46
46
|
type: 'string',
|
|
47
|
-
description: ( localize(
|
|
47
|
+
description: ( localize(13734, 'The id of the authentication provider.'))
|
|
48
48
|
},
|
|
49
49
|
label: {
|
|
50
50
|
type: 'string',
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(13735, 'The human readable name of the authentication provider.')),
|
|
52
52
|
},
|
|
53
53
|
authorizationServerGlobs: {
|
|
54
54
|
type: 'array',
|
|
55
55
|
items: {
|
|
56
56
|
type: 'string',
|
|
57
57
|
description: ( localize(
|
|
58
|
-
|
|
58
|
+
13736,
|
|
59
59
|
'A list of globs that match the authorization servers that this provider supports.'
|
|
60
60
|
)),
|
|
61
61
|
},
|
|
62
62
|
description: ( localize(
|
|
63
|
-
|
|
63
|
+
13737,
|
|
64
64
|
'A list of globs that match the authorization servers that this provider supports.'
|
|
65
65
|
))
|
|
66
66
|
}
|
|
@@ -69,7 +69,7 @@ const authenticationDefinitionSchema = {
|
|
|
69
69
|
const authenticationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
70
70
|
extensionPoint: 'authentication',
|
|
71
71
|
jsonSchema: {
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(13738, 'Contributes authentication')),
|
|
73
73
|
type: 'array',
|
|
74
74
|
items: authenticationDefinitionSchema
|
|
75
75
|
},
|
|
@@ -134,11 +134,11 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
134
134
|
added.forEach(point => {
|
|
135
135
|
for (const provider of point.value) {
|
|
136
136
|
if (isFalsyOrWhitespace(provider.id)) {
|
|
137
|
-
point.collector.error(( localize(
|
|
137
|
+
point.collector.error(( localize(13739, 'An authentication contribution must specify an id.')));
|
|
138
138
|
continue;
|
|
139
139
|
}
|
|
140
140
|
if (isFalsyOrWhitespace(provider.label)) {
|
|
141
|
-
point.collector.error(( localize(
|
|
141
|
+
point.collector.error(( localize(13740, 'An authentication contribution must specify a label.')));
|
|
142
142
|
continue;
|
|
143
143
|
}
|
|
144
144
|
if (!( this.declaredProviders.some(p => p.id === provider.id))) {
|
|
@@ -147,7 +147,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
149
|
point.collector.error(( localize(
|
|
150
|
-
|
|
150
|
+
13741,
|
|
151
151
|
"This authentication id '{0}' has already been registered",
|
|
152
152
|
provider.id
|
|
153
153
|
)));
|
|
@@ -166,14 +166,14 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
166
166
|
}
|
|
167
167
|
registerDeclaredAuthenticationProvider(provider) {
|
|
168
168
|
if (isFalsyOrWhitespace(provider.id)) {
|
|
169
|
-
throw ( new Error(( localize(
|
|
169
|
+
throw ( new Error(( localize(13739, 'An authentication contribution must specify an id.'))));
|
|
170
170
|
}
|
|
171
171
|
if (isFalsyOrWhitespace(provider.label)) {
|
|
172
|
-
throw ( new Error(( localize(
|
|
172
|
+
throw ( new Error(( localize(13740, 'An authentication contribution must specify a label.'))));
|
|
173
173
|
}
|
|
174
174
|
if (( this.declaredProviders.some(p => p.id === provider.id))) {
|
|
175
175
|
throw ( new Error(( localize(
|
|
176
|
-
|
|
176
|
+
13741,
|
|
177
177
|
"This authentication id '{0}' has already been registered",
|
|
178
178
|
provider.id
|
|
179
179
|
))));
|
|
@@ -104,7 +104,7 @@ let AuxiliaryWindow = class AuxiliaryWindow extends BaseWindow {
|
|
|
104
104
|
preventUnload(e) {
|
|
105
105
|
e.preventDefault();
|
|
106
106
|
e.returnValue = ( localize(
|
|
107
|
-
|
|
107
|
+
13742,
|
|
108
108
|
"Changes that you made may not be saved. Please check press 'Cancel' and try again."
|
|
109
109
|
));
|
|
110
110
|
}
|
|
@@ -166,7 +166,7 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
166
166
|
mark('code/auxiliaryWindow/willOpen');
|
|
167
167
|
const targetWindow = await this.openWindow(options);
|
|
168
168
|
if (!targetWindow) {
|
|
169
|
-
throw ( new Error(( localize(
|
|
169
|
+
throw ( new Error(( localize(13743, "Unable to open a new window."))));
|
|
170
170
|
}
|
|
171
171
|
const resolvedWindowId = await this.resolveWindowId(targetWindow);
|
|
172
172
|
ensureCodeWindow(targetWindow, resolvedWindowId);
|
|
@@ -243,19 +243,19 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
243
243
|
return (await this.dialogService.prompt({
|
|
244
244
|
type: Severity$1.Warning,
|
|
245
245
|
message: ( localize(
|
|
246
|
-
|
|
246
|
+
13744,
|
|
247
247
|
"The browser blocked opening a new window. Press 'Retry' to try again."
|
|
248
248
|
)),
|
|
249
249
|
custom: {
|
|
250
250
|
markdownDetails: [{ markdown: ( new MarkdownString(( localize(
|
|
251
|
-
|
|
251
|
+
13745,
|
|
252
252
|
"Please allow pop-ups for this website in your [browser settings]({0}).",
|
|
253
253
|
'https://aka.ms/allow-vscode-popup'
|
|
254
254
|
)), true)) }]
|
|
255
255
|
},
|
|
256
256
|
buttons: [
|
|
257
257
|
{
|
|
258
|
-
label: ( localize(
|
|
258
|
+
label: ( localize(13746, "&&Retry")),
|
|
259
259
|
run: () => this.openWindow(options)
|
|
260
260
|
}
|
|
261
261
|
],
|
|
@@ -631,7 +631,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
631
631
|
};
|
|
632
632
|
const response = await this.request(defaultChat.entitlementSignupLimitedUrl, 'POST', body, sessions, CancellationToken.None);
|
|
633
633
|
if (!response) {
|
|
634
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
634
|
+
const retry = await this.onUnknownSignUpError(( localize(13747, "No response received.")), '[chat entitlement] sign-up: no response');
|
|
635
635
|
return retry ? this.signUpFree(sessions) : { errorCode: 1 };
|
|
636
636
|
}
|
|
637
637
|
if (response.res.statusCode && response.res.statusCode !== 200) {
|
|
@@ -649,7 +649,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
649
649
|
catch (error) {
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
652
|
+
const retry = await this.onUnknownSignUpError(( localize(13748, "Unexpected status code {0}.", response.res.statusCode)), `[chat entitlement] sign-up: unexpected status code ${response.res.statusCode}`);
|
|
653
653
|
return retry ? this.signUpFree(sessions) : { errorCode: response.res.statusCode };
|
|
654
654
|
}
|
|
655
655
|
let responseText = null;
|
|
@@ -659,7 +659,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
659
659
|
catch (error) {
|
|
660
660
|
}
|
|
661
661
|
if (!responseText) {
|
|
662
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
662
|
+
const retry = await this.onUnknownSignUpError(( localize(13749, "Response has no contents.")), '[chat entitlement] sign-up: response has no content');
|
|
663
663
|
return retry ? this.signUpFree(sessions) : { errorCode: 2 };
|
|
664
664
|
}
|
|
665
665
|
let parsedResult = undefined;
|
|
@@ -668,7 +668,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
668
668
|
this.logService.trace(`[chat entitlement] sign-up: response is ${responseText}`);
|
|
669
669
|
}
|
|
670
670
|
catch (err) {
|
|
671
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
671
|
+
const retry = await this.onUnknownSignUpError(( localize(13750, "Invalid response contents.")), `[chat entitlement] sign-up: error parsing response (${err})`);
|
|
672
672
|
return retry ? this.signUpFree(sessions) : { errorCode: 3 };
|
|
673
673
|
}
|
|
674
674
|
this.update({ entitlement: ChatEntitlement.Free });
|
|
@@ -680,11 +680,11 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
680
680
|
const { confirmed } = await this.dialogService.confirm({
|
|
681
681
|
type: Severity$1.Error,
|
|
682
682
|
message: ( localize(
|
|
683
|
-
|
|
683
|
+
13751,
|
|
684
684
|
"An error occurred while signing up for the GitHub Copilot Free plan. Would you like to try again?"
|
|
685
685
|
)),
|
|
686
686
|
detail,
|
|
687
|
-
primaryButton: ( localize(
|
|
687
|
+
primaryButton: ( localize(13752, "Retry"))
|
|
688
688
|
});
|
|
689
689
|
return confirmed;
|
|
690
690
|
}
|
|
@@ -696,17 +696,17 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
696
696
|
this.dialogService.prompt({
|
|
697
697
|
type: Severity$1.Error,
|
|
698
698
|
message: ( localize(
|
|
699
|
-
|
|
699
|
+
13753,
|
|
700
700
|
"An error occurred while signing up for the GitHub Copilot Free plan."
|
|
701
701
|
)),
|
|
702
702
|
detail: logDetails,
|
|
703
703
|
buttons: [
|
|
704
704
|
{
|
|
705
|
-
label: ( localize(
|
|
705
|
+
label: ( localize(13754, "OK")),
|
|
706
706
|
run: () => { }
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
|
-
label: ( localize(
|
|
709
|
+
label: ( localize(13755, "Learn More")),
|
|
710
710
|
run: () => this.openerService.open(( URI.parse(defaultChat.upgradePlanUrl)))
|
|
711
711
|
}
|
|
712
712
|
]
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { localize } from '../../../../nls.js';
|
|
3
3
|
|
|
4
4
|
const idDescription = ( localize(
|
|
5
|
-
|
|
5
|
+
13808,
|
|
6
6
|
"The input's id is used to associate an input with a variable of the form ${input:id}."
|
|
7
7
|
));
|
|
8
|
-
const typeDescription = ( localize(
|
|
9
|
-
const descriptionDescription = ( localize(
|
|
10
|
-
const defaultDescription = ( localize(
|
|
8
|
+
const typeDescription = ( localize(13809, "The type of user input prompt to use."));
|
|
9
|
+
const descriptionDescription = ( localize(13810, "The description is shown when the user is prompted for input."));
|
|
10
|
+
const defaultDescription = ( localize(13811, "The default value for the input."));
|
|
11
11
|
const inputsSchema = {
|
|
12
12
|
definitions: {
|
|
13
13
|
inputs: {
|
|
14
14
|
type: 'array',
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
13812,
|
|
17
17
|
'User inputs. Used for defining user input prompts, such as free string input or a choice from several options.'
|
|
18
18
|
)),
|
|
19
19
|
items: {
|
|
@@ -33,7 +33,7 @@ const inputsSchema = {
|
|
|
33
33
|
enum: ['promptString'],
|
|
34
34
|
enumDescriptions: [
|
|
35
35
|
( localize(
|
|
36
|
-
|
|
36
|
+
13813,
|
|
37
37
|
"The 'promptString' type opens an input box to ask the user for input."
|
|
38
38
|
)),
|
|
39
39
|
]
|
|
@@ -49,7 +49,7 @@ const inputsSchema = {
|
|
|
49
49
|
password: {
|
|
50
50
|
type: 'boolean',
|
|
51
51
|
description: ( localize(
|
|
52
|
-
|
|
52
|
+
13814,
|
|
53
53
|
"Controls if a password input is shown. Password input hides the typed text."
|
|
54
54
|
)),
|
|
55
55
|
},
|
|
@@ -69,7 +69,7 @@ const inputsSchema = {
|
|
|
69
69
|
description: typeDescription,
|
|
70
70
|
enum: ['pickString'],
|
|
71
71
|
enumDescriptions: [
|
|
72
|
-
( localize(
|
|
72
|
+
( localize(13815, "The 'pickString' type shows a selection list.")),
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
description: {
|
|
@@ -82,7 +82,7 @@ const inputsSchema = {
|
|
|
82
82
|
},
|
|
83
83
|
options: {
|
|
84
84
|
type: 'array',
|
|
85
|
-
description: ( localize(
|
|
85
|
+
description: ( localize(13816, "An array of strings that defines the options for a quick pick.")),
|
|
86
86
|
items: {
|
|
87
87
|
oneOf: [
|
|
88
88
|
{
|
|
@@ -95,11 +95,11 @@ const inputsSchema = {
|
|
|
95
95
|
properties: {
|
|
96
96
|
label: {
|
|
97
97
|
type: 'string',
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(13817, "Label for the option."))
|
|
99
99
|
},
|
|
100
100
|
value: {
|
|
101
101
|
type: 'string',
|
|
102
|
-
description: ( localize(
|
|
102
|
+
description: ( localize(13818, "Value for the option."))
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -122,26 +122,26 @@ const inputsSchema = {
|
|
|
122
122
|
description: typeDescription,
|
|
123
123
|
enum: ['command'],
|
|
124
124
|
enumDescriptions: [
|
|
125
|
-
( localize(
|
|
125
|
+
( localize(13819, "The 'command' type executes a command.")),
|
|
126
126
|
]
|
|
127
127
|
},
|
|
128
128
|
command: {
|
|
129
129
|
type: 'string',
|
|
130
|
-
description: ( localize(
|
|
130
|
+
description: ( localize(13820, "The command to execute for this input variable."))
|
|
131
131
|
},
|
|
132
132
|
args: {
|
|
133
133
|
oneOf: [
|
|
134
134
|
{
|
|
135
135
|
type: 'object',
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(13821, "Optional arguments passed to the command."))
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
type: 'array',
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(13821, "Optional arguments passed to the command."))
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
type: 'string',
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(13821, "Optional arguments passed to the command."))
|
|
145
145
|
}
|
|
146
146
|
]
|
|
147
147
|
}
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js
CHANGED
|
@@ -5,7 +5,7 @@ function applyDeprecatedVariableMessage(schema) {
|
|
|
5
5
|
schema.pattern = schema.pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
|
|
6
6
|
schema.patternErrorMessage = schema.patternErrorMessage ||
|
|
7
7
|
( localize(
|
|
8
|
-
|
|
8
|
+
13822,
|
|
9
9
|
"'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead."
|
|
10
10
|
));
|
|
11
11
|
}
|
|
@@ -81,7 +81,7 @@ class AbstractVariableResolverService {
|
|
|
81
81
|
return normalizeDriveLetter(filePath);
|
|
82
82
|
}
|
|
83
83
|
throw ( new VariableError(variableKind, ( localize(
|
|
84
|
-
|
|
84
|
+
13823,
|
|
85
85
|
"Variable {0} can not be resolved. Please open an editor.",
|
|
86
86
|
replacement.id
|
|
87
87
|
))));
|
|
@@ -95,7 +95,7 @@ class AbstractVariableResolverService {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
throw ( new VariableError(variableKind, ( localize(
|
|
98
|
-
|
|
98
|
+
13824,
|
|
99
99
|
"Variable {0}: can not find workspace folder of '{1}'.",
|
|
100
100
|
replacement.id,
|
|
101
101
|
basename(filePath)
|
|
@@ -108,7 +108,7 @@ class AbstractVariableResolverService {
|
|
|
108
108
|
return folder;
|
|
109
109
|
}
|
|
110
110
|
throw ( new VariableError(variableKind, ( localize(
|
|
111
|
-
|
|
111
|
+
13825,
|
|
112
112
|
"Variable {0} can not be resolved. No such folder '{1}'.",
|
|
113
113
|
variableKind,
|
|
114
114
|
argument
|
|
@@ -119,13 +119,13 @@ class AbstractVariableResolverService {
|
|
|
119
119
|
}
|
|
120
120
|
if (this._context.getWorkspaceFolderCount() > 1) {
|
|
121
121
|
throw ( new VariableError(variableKind, ( localize(
|
|
122
|
-
|
|
122
|
+
13826,
|
|
123
123
|
"Variable {0} can not be resolved in a multi folder workspace. Scope this variable using ':' and a workspace folder name.",
|
|
124
124
|
variableKind
|
|
125
125
|
))));
|
|
126
126
|
}
|
|
127
127
|
throw ( new VariableError(variableKind, ( localize(
|
|
128
|
-
|
|
128
|
+
13827,
|
|
129
129
|
"Variable {0} can not be resolved. Please open a folder.",
|
|
130
130
|
variableKind
|
|
131
131
|
))));
|
|
@@ -142,7 +142,7 @@ class AbstractVariableResolverService {
|
|
|
142
142
|
return '';
|
|
143
143
|
}
|
|
144
144
|
throw ( new VariableError(VariableKind.Env, ( localize(
|
|
145
|
-
|
|
145
|
+
13828,
|
|
146
146
|
"Variable {0} can not be resolved because no environment variable name is given.",
|
|
147
147
|
replacement.id
|
|
148
148
|
))));
|
|
@@ -151,7 +151,7 @@ class AbstractVariableResolverService {
|
|
|
151
151
|
const config = this._context.getConfigurationValue(folderUri, argument);
|
|
152
152
|
if (isUndefinedOrNull(config)) {
|
|
153
153
|
throw ( new VariableError(VariableKind.Config, ( localize(
|
|
154
|
-
|
|
154
|
+
13829,
|
|
155
155
|
"Variable {0} can not be resolved because setting '{1}' not found.",
|
|
156
156
|
replacement.id,
|
|
157
157
|
argument
|
|
@@ -159,7 +159,7 @@ class AbstractVariableResolverService {
|
|
|
159
159
|
}
|
|
160
160
|
if (isObject(config)) {
|
|
161
161
|
throw ( new VariableError(VariableKind.Config, ( localize(
|
|
162
|
-
|
|
162
|
+
13830,
|
|
163
163
|
"Variable {0} can not be resolved because '{1}' is a structured value.",
|
|
164
164
|
replacement.id,
|
|
165
165
|
argument
|
|
@@ -168,7 +168,7 @@ class AbstractVariableResolverService {
|
|
|
168
168
|
return config;
|
|
169
169
|
}
|
|
170
170
|
throw ( new VariableError(VariableKind.Config, ( localize(
|
|
171
|
-
|
|
171
|
+
13831,
|
|
172
172
|
"Variable {0} can not be resolved because no settings name is given.",
|
|
173
173
|
replacement.id
|
|
174
174
|
))));
|
|
@@ -181,7 +181,7 @@ class AbstractVariableResolverService {
|
|
|
181
181
|
const ext = await this._context.getExtension(argument);
|
|
182
182
|
if (!ext) {
|
|
183
183
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, ( localize(
|
|
184
|
-
|
|
184
|
+
13832,
|
|
185
185
|
"Variable {0} can not be resolved because the extension {1} is not installed.",
|
|
186
186
|
replacement.id,
|
|
187
187
|
argument
|
|
@@ -190,7 +190,7 @@ class AbstractVariableResolverService {
|
|
|
190
190
|
return this.fsPath(ext.extensionLocation);
|
|
191
191
|
}
|
|
192
192
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, ( localize(
|
|
193
|
-
|
|
193
|
+
13833,
|
|
194
194
|
"Variable {0} can not be resolved because no extension name is given.",
|
|
195
195
|
replacement.id
|
|
196
196
|
))));
|
|
@@ -218,7 +218,7 @@ class AbstractVariableResolverService {
|
|
|
218
218
|
return environment.userHome;
|
|
219
219
|
}
|
|
220
220
|
throw ( new VariableError(VariableKind.UserHome, ( localize(
|
|
221
|
-
|
|
221
|
+
13834,
|
|
222
222
|
"Variable {0} can not be resolved. UserHome path is not defined",
|
|
223
223
|
replacement.id
|
|
224
224
|
))));
|
|
@@ -228,7 +228,7 @@ class AbstractVariableResolverService {
|
|
|
228
228
|
return lineNumber;
|
|
229
229
|
}
|
|
230
230
|
throw ( new VariableError(VariableKind.LineNumber, ( localize(
|
|
231
|
-
|
|
231
|
+
13835,
|
|
232
232
|
"Variable {0} can not be resolved. Make sure to have a line selected in the active editor.",
|
|
233
233
|
replacement.id
|
|
234
234
|
))));
|
|
@@ -239,7 +239,7 @@ class AbstractVariableResolverService {
|
|
|
239
239
|
return columnNumber;
|
|
240
240
|
}
|
|
241
241
|
throw ( new Error(( localize(
|
|
242
|
-
|
|
242
|
+
13836,
|
|
243
243
|
"Variable {0} can not be resolved. Make sure to have a column selected in the active editor.",
|
|
244
244
|
replacement.id
|
|
245
245
|
))));
|
|
@@ -250,7 +250,7 @@ class AbstractVariableResolverService {
|
|
|
250
250
|
return selectedText;
|
|
251
251
|
}
|
|
252
252
|
throw ( new VariableError(VariableKind.SelectedText, ( localize(
|
|
253
|
-
|
|
253
|
+
13837,
|
|
254
254
|
"Variable {0} can not be resolved. Make sure to have some text selected in the active editor.",
|
|
255
255
|
replacement.id
|
|
256
256
|
))));
|
|
@@ -322,7 +322,7 @@ class AbstractVariableResolverService {
|
|
|
322
322
|
return v;
|
|
323
323
|
}
|
|
324
324
|
throw ( new VariableError(variableKind, ( localize(
|
|
325
|
-
|
|
325
|
+
13838,
|
|
326
326
|
"Variable {0} can not be resolved because the command has no value.",
|
|
327
327
|
match
|
|
328
328
|
))));
|
|
@@ -16,7 +16,7 @@ const editorAssociationsConfigurationNode = {
|
|
|
16
16
|
'workbench.editorAssociations': {
|
|
17
17
|
type: 'object',
|
|
18
18
|
markdownDescription: ( localize(
|
|
19
|
-
|
|
19
|
+
13892,
|
|
20
20
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
21
21
|
)),
|
|
22
22
|
additionalProperties: {
|