@codingame/monaco-vscode-api 25.0.1 → 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
|
@@ -32,11 +32,11 @@ const autoApproveBoolean = {
|
|
|
32
32
|
false,
|
|
33
33
|
],
|
|
34
34
|
enumDescriptions: [
|
|
35
|
-
( localize(
|
|
36
|
-
( localize(
|
|
35
|
+
( localize(12096, "Automatically approve the pattern.")),
|
|
36
|
+
( localize(12097, "Require explicit approval for the pattern.")),
|
|
37
37
|
],
|
|
38
38
|
description: ( localize(
|
|
39
|
-
|
|
39
|
+
12098,
|
|
40
40
|
"The start of a command to match against. A regular expression can be provided by wrapping the string in `/` characters."
|
|
41
41
|
)),
|
|
42
42
|
};
|
|
@@ -45,7 +45,7 @@ const terminalChatAgentProfileSchema = {
|
|
|
45
45
|
required: ['path'],
|
|
46
46
|
properties: {
|
|
47
47
|
path: {
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(12099, "A path to a shell executable.")),
|
|
49
49
|
type: 'string',
|
|
50
50
|
},
|
|
51
51
|
...terminalProfileBaseProperties,
|
|
@@ -54,7 +54,7 @@ const terminalChatAgentProfileSchema = {
|
|
|
54
54
|
const terminalChatAgentToolsConfiguration = {
|
|
55
55
|
[TerminalChatAgentToolsSettingId.EnableAutoApprove]: {
|
|
56
56
|
description: ( localize(
|
|
57
|
-
|
|
57
|
+
12100,
|
|
58
58
|
"Controls whether to allow auto approval in the run in terminal tool."
|
|
59
59
|
)),
|
|
60
60
|
type: 'boolean',
|
|
@@ -67,7 +67,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
67
67
|
description: {
|
|
68
68
|
key: 'autoApproveMode.description',
|
|
69
69
|
value: ( localize(
|
|
70
|
-
|
|
70
|
+
12100,
|
|
71
71
|
"Controls whether to allow auto approval in the run in terminal tool."
|
|
72
72
|
)),
|
|
73
73
|
}
|
|
@@ -77,20 +77,20 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
77
77
|
[TerminalChatAgentToolsSettingId.AutoApprove]: {
|
|
78
78
|
markdownDescription: [
|
|
79
79
|
( localize(
|
|
80
|
-
|
|
80
|
+
12101,
|
|
81
81
|
"A list of commands or regular expressions that control whether the run in terminal tool commands require explicit approval. These will be matched against the start of a command. A regular expression can be provided by wrapping the string in {0} characters followed by optional flags such as {1} for case-insensitivity.",
|
|
82
82
|
'`/`',
|
|
83
83
|
'`i`'
|
|
84
84
|
)),
|
|
85
85
|
( localize(
|
|
86
|
-
|
|
86
|
+
12102,
|
|
87
87
|
"Set to {0} to automatically approve commands, {1} to always require explicit approval or {2} to unset the value.",
|
|
88
88
|
'`true`',
|
|
89
89
|
'`false`',
|
|
90
90
|
'`null`'
|
|
91
91
|
)),
|
|
92
92
|
( localize(
|
|
93
|
-
|
|
93
|
+
12103,
|
|
94
94
|
"Note that these commands and regular expressions are evaluated for every _sub-command_ within the full _command line_, so {0} for example will need both {1} and {2} to match a {3} entry and must not match a {4} entry in order to auto approve. Inline commands such as {5} (process substitution) should also be detected.",
|
|
95
95
|
'`foo && bar`',
|
|
96
96
|
'`foo`',
|
|
@@ -100,48 +100,48 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
100
100
|
'`<(foo)`'
|
|
101
101
|
)),
|
|
102
102
|
( localize(
|
|
103
|
-
|
|
103
|
+
12104,
|
|
104
104
|
"An object can be used to match against the full command line instead of matching sub-commands and inline commands, for example {0}. In order to be auto approved _both_ the sub-command and command line must not be explicitly denied, then _either_ all sub-commands or command line needs to be approved.",
|
|
105
105
|
'`{ approve: false, matchCommandLine: true }`'
|
|
106
106
|
)),
|
|
107
107
|
( localize(
|
|
108
|
-
|
|
108
|
+
12105,
|
|
109
109
|
"Note that there's a default set of rules to allow and also deny commands. Consider setting {0} to {1} to ignore all default rules to ensure there are no conflicts with your own rules. Do this at your own risk, the default denial rules are designed to protect you against running dangerous commands.",
|
|
110
110
|
`\`#${TerminalChatAgentToolsSettingId.IgnoreDefaultAutoApproveRules}#\``,
|
|
111
111
|
'`true`'
|
|
112
112
|
)),
|
|
113
113
|
[
|
|
114
|
-
( localize(
|
|
115
|
-
`|${( localize(
|
|
114
|
+
( localize(12106, 'Examples:')),
|
|
115
|
+
`|${( localize(12107, "Value"))}|${( localize(12108, "Description"))}|`,
|
|
116
116
|
'|---|---|',
|
|
117
|
-
'| `\"mkdir\": true` | ' + ( localize(
|
|
118
|
-
'| `\"npm run build\": true` | ' + ( localize(
|
|
117
|
+
'| `\"mkdir\": true` | ' + ( localize(12109, "Allow all commands starting with {0}", '`mkdir`')),
|
|
118
|
+
'| `\"npm run build\": true` | ' + ( localize(12110, "Allow all commands starting with {0}", '`npm run build`')),
|
|
119
119
|
'| `\"bin/test.sh\": true` | ' + ( localize(
|
|
120
|
-
|
|
120
|
+
12111,
|
|
121
121
|
"Allow all commands that match the path {0} ({1}, {2}, etc.)",
|
|
122
122
|
'`bin/test.sh`',
|
|
123
123
|
'`bin\\test.sh`',
|
|
124
124
|
'`./bin/test.sh`'
|
|
125
125
|
)),
|
|
126
126
|
'| `\"/^git (status\\|show\\\\b.*)$/\": true` | ' + ( localize(
|
|
127
|
-
|
|
127
|
+
12112,
|
|
128
128
|
"Allow {0} and all commands starting with {1}",
|
|
129
129
|
'`git status`',
|
|
130
130
|
'`git show`'
|
|
131
131
|
)),
|
|
132
|
-
'| `\"/^Get-ChildItem\\\\b/i\": true` | ' + ( localize(
|
|
133
|
-
'| `\"/.*/\": true` | ' + ( localize(
|
|
132
|
+
'| `\"/^Get-ChildItem\\\\b/i\": true` | ' + ( localize(12113, "will allow {0} commands regardless of casing", '`Get-ChildItem`')),
|
|
133
|
+
'| `\"/.*/\": true` | ' + ( localize(12114, "Allow all commands (denied commands still require approval)")),
|
|
134
134
|
'| `\"rm\": false` | ' + ( localize(
|
|
135
|
-
|
|
135
|
+
12115,
|
|
136
136
|
"Require explicit approval for all commands starting with {0}",
|
|
137
137
|
'`rm`'
|
|
138
138
|
)),
|
|
139
139
|
'| `\"/\\\\.ps1/i\": { approve: false, matchCommandLine: true }` | ' + ( localize(
|
|
140
|
-
|
|
140
|
+
12116,
|
|
141
141
|
"Require explicit approval for any _command line_ that contains {0} regardless of casing",
|
|
142
142
|
'`".ps1"`'
|
|
143
143
|
)),
|
|
144
|
-
'| `\"rm\": null` | ' + ( localize(
|
|
144
|
+
'| `\"rm\": null` | ' + ( localize(12117, "Unset the default {0} value for {1}", '`false`', '`rm`')),
|
|
145
145
|
].join('\n'),
|
|
146
146
|
].join('\n\n'),
|
|
147
147
|
type: 'object',
|
|
@@ -159,14 +159,14 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
159
159
|
false,
|
|
160
160
|
],
|
|
161
161
|
enumDescriptions: [
|
|
162
|
-
( localize(
|
|
162
|
+
( localize(12118, "Match against the full command line, eg. `foo && bar`.")),
|
|
163
163
|
( localize(
|
|
164
|
-
|
|
164
|
+
12119,
|
|
165
165
|
"Match against sub-commands and inline commands, eg. `foo && bar` will need both `foo` and `bar` to match."
|
|
166
166
|
)),
|
|
167
167
|
],
|
|
168
168
|
description: ( localize(
|
|
169
|
-
|
|
169
|
+
12120,
|
|
170
170
|
"Whether to match against the full command line, as opposed to splitting by sub-commands and inline commands."
|
|
171
171
|
)),
|
|
172
172
|
}
|
|
@@ -176,7 +176,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
176
176
|
{
|
|
177
177
|
type: 'null',
|
|
178
178
|
description: ( localize(
|
|
179
|
-
|
|
179
|
+
12121,
|
|
180
180
|
"Ignore the pattern, this is useful for unsetting the same pattern set at a higher scope."
|
|
181
181
|
)),
|
|
182
182
|
},
|
|
@@ -285,7 +285,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
285
285
|
default: false,
|
|
286
286
|
tags: ['experimental'],
|
|
287
287
|
markdownDescription: ( localize(
|
|
288
|
-
|
|
288
|
+
12122,
|
|
289
289
|
"Whether to ignore the built-in default auto-approve rules used by the run in terminal tool as defined in {0}. When this setting is enabled, the run in terminal tool will ignore any rule that comes from the default set but still follow rules defined in the user, remote and workspace settings. Use this setting at your own risk; the default auto-approve rules are designed to protect you against running dangerous commands.",
|
|
290
290
|
`\`#${TerminalChatAgentToolsSettingId.AutoApprove}#\``
|
|
291
291
|
)),
|
|
@@ -296,7 +296,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
296
296
|
default: true,
|
|
297
297
|
tags: ['experimental'],
|
|
298
298
|
markdownDescription: ( localize(
|
|
299
|
-
|
|
299
|
+
12123,
|
|
300
300
|
"Whether to automatically approve npm, yarn, and pnpm run commands when the script is defined in a workspace package.json file. Since the workspace is trusted, scripts defined in package.json are considered safe to run without explicit approval."
|
|
301
301
|
)),
|
|
302
302
|
},
|
|
@@ -304,23 +304,23 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
304
304
|
type: 'string',
|
|
305
305
|
enum: ['never', 'outsideWorkspace', 'all'],
|
|
306
306
|
enumDescriptions: [
|
|
307
|
-
( localize(
|
|
307
|
+
( localize(12124, "Allow all detected file writes.")),
|
|
308
308
|
( localize(
|
|
309
|
-
|
|
309
|
+
12125,
|
|
310
310
|
"Block file writes detected outside the workspace. This depends on the shell integration feature working correctly to determine the current working directory of the terminal."
|
|
311
311
|
)),
|
|
312
|
-
( localize(
|
|
312
|
+
( localize(12126, "Block all detected file writes.")),
|
|
313
313
|
],
|
|
314
314
|
default: 'outsideWorkspace',
|
|
315
315
|
tags: ['experimental'],
|
|
316
316
|
markdownDescription: ( localize(
|
|
317
|
-
|
|
317
|
+
12127,
|
|
318
318
|
"Controls whether detected file write operations are blocked in the run in terminal tool. When detected, this will require explicit approval regardless of whether the command would normally be auto approved. Note that this cannot detect all possible methods of writing files, this is what is currently detected:\n\n- File redirection (detected via the bash or PowerShell tree sitter grammar)"
|
|
319
319
|
)),
|
|
320
320
|
},
|
|
321
321
|
[TerminalChatAgentToolsSettingId.ShellIntegrationTimeout]: {
|
|
322
322
|
markdownDescription: ( localize(
|
|
323
|
-
|
|
323
|
+
12128,
|
|
324
324
|
"Configures the duration in milliseconds to wait for shell integration to be detected when the run in terminal tool launches a new terminal. Set to `0` to wait the minimum time, the default value `-1` means the wait time is variable based on the value of {0} and whether it's a remote window. A large value can be useful if your shell starts very slowly and a low value if you're intentionally not using shell integration.",
|
|
325
325
|
`\`#${TerminalSettingId.ShellIntegrationEnabled}#\``
|
|
326
326
|
)),
|
|
@@ -329,7 +329,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
329
329
|
maximum: 60000,
|
|
330
330
|
default: -1,
|
|
331
331
|
markdownDeprecationMessage: ( localize(
|
|
332
|
-
|
|
332
|
+
12129,
|
|
333
333
|
'Use {0} instead',
|
|
334
334
|
`\`#${TerminalSettingId.ShellIntegrationTimeout}#\``
|
|
335
335
|
))
|
|
@@ -337,7 +337,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
337
337
|
[TerminalChatAgentToolsSettingId.TerminalProfileLinux]: {
|
|
338
338
|
restricted: true,
|
|
339
339
|
markdownDescription: ( localize(
|
|
340
|
-
|
|
340
|
+
12130,
|
|
341
341
|
"The terminal profile to use on Linux for chat agent's run in terminal tool."
|
|
342
342
|
)),
|
|
343
343
|
type: ['object', 'null'],
|
|
@@ -357,7 +357,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
357
357
|
[TerminalChatAgentToolsSettingId.TerminalProfileMacOs]: {
|
|
358
358
|
restricted: true,
|
|
359
359
|
markdownDescription: ( localize(
|
|
360
|
-
|
|
360
|
+
12131,
|
|
361
361
|
"The terminal profile to use on macOS for chat agent's run in terminal tool."
|
|
362
362
|
)),
|
|
363
363
|
type: ['object', 'null'],
|
|
@@ -377,7 +377,7 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
377
377
|
[TerminalChatAgentToolsSettingId.TerminalProfileWindows]: {
|
|
378
378
|
restricted: true,
|
|
379
379
|
markdownDescription: ( localize(
|
|
380
|
-
|
|
380
|
+
12132,
|
|
381
381
|
"The terminal profile to use on Windows for chat agent's run in terminal tool."
|
|
382
382
|
)),
|
|
383
383
|
type: ['object', 'null'],
|
|
@@ -399,17 +399,17 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
399
399
|
default: false,
|
|
400
400
|
tags: ['experimental'],
|
|
401
401
|
markdownDescription: ( localize(
|
|
402
|
-
|
|
402
|
+
12133,
|
|
403
403
|
"Whether to automatically respond to prompts in the terminal such as `Confirm? y/n`. This is an experimental feature and may not work in all scenarios."
|
|
404
404
|
)),
|
|
405
405
|
},
|
|
406
406
|
[TerminalChatAgentToolsSettingId.OutputLocation]: {
|
|
407
|
-
markdownDescription: ( localize(
|
|
407
|
+
markdownDescription: ( localize(12134, "Where to show the output from the run in terminal tool session.")),
|
|
408
408
|
type: 'string',
|
|
409
409
|
enum: ['terminal', 'none'],
|
|
410
410
|
enumDescriptions: [
|
|
411
|
-
( localize(
|
|
412
|
-
( localize(
|
|
411
|
+
( localize(12135, "Reveal the terminal when running the command.")),
|
|
412
|
+
( localize(12136, "Do not reveal the terminal automatically.")),
|
|
413
413
|
],
|
|
414
414
|
default: product.quality !== 'stable' ? 'none' : 'terminal',
|
|
415
415
|
tags: ['experimental'],
|
|
@@ -422,23 +422,23 @@ const terminalChatAgentToolsConfiguration = {
|
|
|
422
422
|
default: true,
|
|
423
423
|
markdownDescription: [
|
|
424
424
|
( localize(
|
|
425
|
-
|
|
425
|
+
12137,
|
|
426
426
|
"Whether to exclude commands run by the terminal tool from the shell history. See below for the supported shells and the method used for each:"
|
|
427
427
|
)),
|
|
428
428
|
`- \`bash\`: ${( localize(
|
|
429
|
-
|
|
429
|
+
12138,
|
|
430
430
|
"Sets `HISTCONTROL=ignorespace` and prepends the command with space"
|
|
431
431
|
))}`,
|
|
432
432
|
`- \`zsh\`: ${( localize(
|
|
433
|
-
|
|
433
|
+
12139,
|
|
434
434
|
"Sets `HIST_IGNORE_SPACE` option and prepends the command with space"
|
|
435
435
|
))}`,
|
|
436
436
|
`- \`fish\`: ${( localize(
|
|
437
|
-
|
|
437
|
+
12140,
|
|
438
438
|
"Sets `fish_private_mode` to prevent any command from entering history"
|
|
439
439
|
))}`,
|
|
440
440
|
`- \`pwsh\`: ${( localize(
|
|
441
|
-
|
|
441
|
+
12141,
|
|
442
442
|
"Sets a custom history handler via PSReadLine's `AddToHistoryHandler` to prevent any command from entering history"
|
|
443
443
|
))}`,
|
|
444
444
|
].join('\n'),
|
|
@@ -454,7 +454,7 @@ for (const id of [
|
|
|
454
454
|
terminalChatAgentToolsConfiguration[id] = {
|
|
455
455
|
deprecated: true,
|
|
456
456
|
markdownDeprecationMessage: ( localize(
|
|
457
|
-
|
|
457
|
+
12142,
|
|
458
458
|
'Use {0} instead',
|
|
459
459
|
`\`#${TerminalChatAgentToolsSettingId.AutoApprove}#\``
|
|
460
460
|
))
|
|
@@ -10,7 +10,7 @@ const terminalCommandGuideConfiguration = {
|
|
|
10
10
|
[TerminalCommandGuideSettingId.ShowCommandGuide]: {
|
|
11
11
|
restricted: true,
|
|
12
12
|
markdownDescription: ( localize(
|
|
13
|
-
|
|
13
|
+
12157,
|
|
14
14
|
"Whether to show the command guide when hovering over a command in the terminal."
|
|
15
15
|
)),
|
|
16
16
|
type: 'boolean',
|
|
@@ -19,7 +19,7 @@ const terminalHistoryConfiguration = {
|
|
|
19
19
|
[TerminalHistorySettingId.ShellIntegrationCommandHistory]: {
|
|
20
20
|
restricted: true,
|
|
21
21
|
markdownDescription: ( localize(
|
|
22
|
-
|
|
22
|
+
12189,
|
|
23
23
|
"Controls the number of recently used commands to keep in the terminal command history. Set to 0 to disable terminal command history."
|
|
24
24
|
)),
|
|
25
25
|
type: 'number',
|
|
@@ -9,7 +9,7 @@ const terminalInitialHintConfiguration = {
|
|
|
9
9
|
[TerminalInitialHintSettingId.Enabled]: {
|
|
10
10
|
restricted: true,
|
|
11
11
|
markdownDescription: ( localize(
|
|
12
|
-
|
|
12
|
+
12198,
|
|
13
13
|
"Controls if the first terminal without input will show a hint about available actions when it is focused."
|
|
14
14
|
)),
|
|
15
15
|
type: 'boolean',
|
|
@@ -10,7 +10,7 @@ var TerminalStickyScrollSettingId;
|
|
|
10
10
|
const terminalStickyScrollConfiguration = {
|
|
11
11
|
[TerminalStickyScrollSettingId.Enabled]: {
|
|
12
12
|
markdownDescription: ( localize(
|
|
13
|
-
|
|
13
|
+
12265,
|
|
14
14
|
"Shows the current command at the top of the terminal. This feature requires [shell integration]({0}) to be activated. See {1}.",
|
|
15
15
|
'https://code.visualstudio.com/docs/terminal/shell-integration',
|
|
16
16
|
`\`#${TerminalSettingId.ShellIntegrationEnabled}#\``
|
|
@@ -20,7 +20,7 @@ const terminalStickyScrollConfiguration = {
|
|
|
20
20
|
},
|
|
21
21
|
[TerminalStickyScrollSettingId.MaxLineCount]: {
|
|
22
22
|
markdownDescription: ( localize(
|
|
23
|
-
|
|
23
|
+
12266,
|
|
24
24
|
"Defines the maximum number of sticky lines to show. Sticky scroll lines will never exceed 40% of the viewport regardless of this setting."
|
|
25
25
|
)),
|
|
26
26
|
type: 'number',
|
|
@@ -47,7 +47,7 @@ const terminalSuggestConfiguration = {
|
|
|
47
47
|
[TerminalSuggestSettingId.Enabled]: {
|
|
48
48
|
restricted: true,
|
|
49
49
|
markdownDescription: ( localize(
|
|
50
|
-
|
|
50
|
+
12347,
|
|
51
51
|
"Enables terminal IntelliSense suggestions (also known as autocomplete) for supported shells ({0}). This requires {1} to be enabled and working or [manually installed](https://code.visualstudio.com/docs/terminal/shell-integration#_manual-installation-install).",
|
|
52
52
|
'Windows PowerShell, PowerShell v7+, zsh, bash, fish',
|
|
53
53
|
`\`#${TerminalSettingId.ShellIntegrationEnabled}#\``
|
|
@@ -58,7 +58,7 @@ const terminalSuggestConfiguration = {
|
|
|
58
58
|
[TerminalSuggestSettingId.Providers]: {
|
|
59
59
|
restricted: true,
|
|
60
60
|
markdownDescription: ( localize(
|
|
61
|
-
|
|
61
|
+
12348,
|
|
62
62
|
"Providers are enabled by default. Omit them by setting the id of the provider to `false`."
|
|
63
63
|
)),
|
|
64
64
|
type: 'object',
|
|
@@ -67,7 +67,7 @@ const terminalSuggestConfiguration = {
|
|
|
67
67
|
[TerminalSuggestSettingId.QuickSuggestions]: {
|
|
68
68
|
restricted: true,
|
|
69
69
|
markdownDescription: ( localize(
|
|
70
|
-
|
|
70
|
+
12349,
|
|
71
71
|
"Controls whether suggestions should automatically show up while typing. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.",
|
|
72
72
|
`\`#${TerminalSuggestSettingId.SuggestOnTriggerCharacters}#\``
|
|
73
73
|
)),
|
|
@@ -80,7 +80,7 @@ const terminalSuggestConfiguration = {
|
|
|
80
80
|
properties: {
|
|
81
81
|
commands: {
|
|
82
82
|
description: ( localize(
|
|
83
|
-
|
|
83
|
+
12350,
|
|
84
84
|
'Enable quick suggestions for commands, the first word in a command line input.'
|
|
85
85
|
)),
|
|
86
86
|
type: 'string',
|
|
@@ -88,7 +88,7 @@ const terminalSuggestConfiguration = {
|
|
|
88
88
|
},
|
|
89
89
|
arguments: {
|
|
90
90
|
description: ( localize(
|
|
91
|
-
|
|
91
|
+
12351,
|
|
92
92
|
'Enable quick suggestions for arguments, anything after the first word in a command line input.'
|
|
93
93
|
)),
|
|
94
94
|
type: 'string',
|
|
@@ -96,7 +96,7 @@ const terminalSuggestConfiguration = {
|
|
|
96
96
|
},
|
|
97
97
|
unknown: {
|
|
98
98
|
description: ( localize(
|
|
99
|
-
|
|
99
|
+
12352,
|
|
100
100
|
'Enable quick suggestions when it\'s unclear what the best suggestion is, if this is on files and folders will be suggested as a fallback.'
|
|
101
101
|
)),
|
|
102
102
|
type: 'string',
|
|
@@ -110,7 +110,7 @@ const terminalSuggestConfiguration = {
|
|
|
110
110
|
[TerminalSuggestSettingId.SuggestOnTriggerCharacters]: {
|
|
111
111
|
restricted: true,
|
|
112
112
|
markdownDescription: ( localize(
|
|
113
|
-
|
|
113
|
+
12353,
|
|
114
114
|
"Controls whether suggestions should automatically show up when typing trigger characters."
|
|
115
115
|
)),
|
|
116
116
|
type: 'boolean',
|
|
@@ -119,39 +119,39 @@ const terminalSuggestConfiguration = {
|
|
|
119
119
|
[TerminalSuggestSettingId.RunOnEnter]: {
|
|
120
120
|
restricted: true,
|
|
121
121
|
markdownDescription: ( localize(
|
|
122
|
-
|
|
122
|
+
12354,
|
|
123
123
|
"Controls whether suggestions should run immediately when `Enter` (not `Tab`) is used to accept the result."
|
|
124
124
|
)),
|
|
125
125
|
enum: ['never', 'exactMatch', 'exactMatchIgnoreExtension', 'always'],
|
|
126
126
|
markdownEnumDescriptions: [
|
|
127
|
-
( localize(
|
|
128
|
-
( localize(
|
|
127
|
+
( localize(12355, "Never run on `Enter`.")),
|
|
128
|
+
( localize(12356, "Run on `Enter` when the suggestion is typed in its entirety.")),
|
|
129
129
|
( localize(
|
|
130
|
-
|
|
130
|
+
12357,
|
|
131
131
|
"Run on `Enter` when the suggestion is typed in its entirety or when a file is typed without its extension included."
|
|
132
132
|
)),
|
|
133
|
-
( localize(
|
|
133
|
+
( localize(12358, "Always run on `Enter`."))
|
|
134
134
|
],
|
|
135
135
|
default: 'never',
|
|
136
136
|
},
|
|
137
137
|
[TerminalSuggestSettingId.SelectionMode]: {
|
|
138
138
|
markdownDescription: ( localize(
|
|
139
|
-
|
|
139
|
+
12359,
|
|
140
140
|
"Controls how suggestion selection works in the integrated terminal."
|
|
141
141
|
)),
|
|
142
142
|
type: 'string',
|
|
143
143
|
enum: ['partial', 'always', 'never'],
|
|
144
144
|
markdownEnumDescriptions: [
|
|
145
145
|
( localize(
|
|
146
|
-
|
|
146
|
+
12360,
|
|
147
147
|
"Partially select a suggestion when automatically triggering IntelliSense. `Tab` can be used to accept the first suggestion, only after navigating the suggestions via `Down` will `Enter` also accept the active suggestion."
|
|
148
148
|
)),
|
|
149
149
|
( localize(
|
|
150
|
-
|
|
150
|
+
12361,
|
|
151
151
|
"Always select a suggestion when automatically triggering IntelliSense. `Enter` or `Tab` can be used to accept the first suggestion."
|
|
152
152
|
)),
|
|
153
153
|
( localize(
|
|
154
|
-
|
|
154
|
+
12362,
|
|
155
155
|
"Never select a suggestion when automatically triggering IntelliSense. The list must be navigated via `Down` before `Enter` or `Tab` can be used to accept the active suggestion."
|
|
156
156
|
)),
|
|
157
157
|
],
|
|
@@ -160,7 +160,7 @@ const terminalSuggestConfiguration = {
|
|
|
160
160
|
[TerminalSuggestSettingId.WindowsExecutableExtensions]: {
|
|
161
161
|
restricted: true,
|
|
162
162
|
markdownDescription: ( localize(
|
|
163
|
-
|
|
163
|
+
12363,
|
|
164
164
|
"A set of windows command executable extensions that will be included as suggestions in the terminal.\n\nMany executables are included by default, listed below:\n\n{0}.\n\nTo exclude an extension, set it to `false`\n\n. To include one not in the list, add it and set it to `true`.",
|
|
165
165
|
( windowsDefaultExecutableExtensions.sort().map(extension => `- ${extension}`)).join('\n')
|
|
166
166
|
)),
|
|
@@ -170,7 +170,7 @@ const terminalSuggestConfiguration = {
|
|
|
170
170
|
[TerminalSuggestSettingId.ShowStatusBar]: {
|
|
171
171
|
restricted: true,
|
|
172
172
|
markdownDescription: ( localize(
|
|
173
|
-
|
|
173
|
+
12364,
|
|
174
174
|
"Controls whether the terminal suggestions status bar should be shown."
|
|
175
175
|
)),
|
|
176
176
|
type: 'boolean',
|
|
@@ -179,16 +179,16 @@ const terminalSuggestConfiguration = {
|
|
|
179
179
|
[TerminalSuggestSettingId.CdPath]: {
|
|
180
180
|
restricted: true,
|
|
181
181
|
markdownDescription: ( localize(
|
|
182
|
-
|
|
182
|
+
12365,
|
|
183
183
|
"Controls whether to enable $CDPATH support which exposes children of the folders in the $CDPATH variable regardless of the current working directory. $CDPATH is expected to be semi colon-separated on Windows and colon-separated on other platforms."
|
|
184
184
|
)),
|
|
185
185
|
type: 'string',
|
|
186
186
|
enum: ['off', 'relative', 'absolute'],
|
|
187
187
|
markdownEnumDescriptions: [
|
|
188
|
-
( localize(
|
|
189
|
-
( localize(
|
|
188
|
+
( localize(12366, "Disable the feature.")),
|
|
189
|
+
( localize(12367, "Enable the feature and use relative paths.")),
|
|
190
190
|
( localize(
|
|
191
|
-
|
|
191
|
+
12368,
|
|
192
192
|
"Enable the feature and use absolute paths. This is useful when the shell doesn't natively support `$CDPATH`."
|
|
193
193
|
)),
|
|
194
194
|
],
|
|
@@ -197,25 +197,25 @@ const terminalSuggestConfiguration = {
|
|
|
197
197
|
[TerminalSuggestSettingId.InlineSuggestion]: {
|
|
198
198
|
restricted: true,
|
|
199
199
|
markdownDescription: ( localize(
|
|
200
|
-
|
|
200
|
+
12369,
|
|
201
201
|
"Controls whether the shell's inline suggestion should be detected and how it is scored."
|
|
202
202
|
)),
|
|
203
203
|
type: 'string',
|
|
204
204
|
enum: ['off', 'alwaysOnTopExceptExactMatch', 'alwaysOnTop'],
|
|
205
205
|
markdownEnumDescriptions: [
|
|
206
|
-
( localize(
|
|
206
|
+
( localize(12370, "Disable the feature.")),
|
|
207
207
|
( localize(
|
|
208
|
-
|
|
208
|
+
12371,
|
|
209
209
|
"Enable the feature and sort the inline suggestion without forcing it to be on top. This means that exact matches will be above the inline suggestion."
|
|
210
210
|
)),
|
|
211
|
-
( localize(
|
|
211
|
+
( localize(12372, "Enable the feature and always put the inline suggestion on top.")),
|
|
212
212
|
],
|
|
213
213
|
default: 'alwaysOnTop',
|
|
214
214
|
},
|
|
215
215
|
[TerminalSuggestSettingId.UpArrowNavigatesHistory]: {
|
|
216
216
|
restricted: true,
|
|
217
217
|
markdownDescription: ( localize(
|
|
218
|
-
|
|
218
|
+
12373,
|
|
219
219
|
"Determines whether the up arrow key navigates the command history when focus is on the first suggestion and navigation has not yet occurred. When set to false, the up arrow will move focus to the last suggestion instead."
|
|
220
220
|
)),
|
|
221
221
|
type: 'boolean',
|
|
@@ -224,7 +224,7 @@ const terminalSuggestConfiguration = {
|
|
|
224
224
|
[TerminalSuggestSettingId.InsertTrailingSpace]: {
|
|
225
225
|
restricted: true,
|
|
226
226
|
markdownDescription: ( localize(
|
|
227
|
-
|
|
227
|
+
12374,
|
|
228
228
|
"Controls whether a space is automatically inserted after accepting a suggestion and re-trigger suggestions. Folders and symbolic link folders will never have a trailing space added."
|
|
229
229
|
)),
|
|
230
230
|
type: 'boolean',
|
|
@@ -238,7 +238,7 @@ function registerTerminalSuggestProvidersConfiguration(providers) {
|
|
|
238
238
|
if (!( providers.has('lsp'))) {
|
|
239
239
|
providers.set('lsp', {
|
|
240
240
|
id: 'lsp',
|
|
241
|
-
description: ( localize(
|
|
241
|
+
description: ( localize(12375, 'Show suggestions from language servers.'))
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
const providersProperties = {};
|
|
@@ -247,7 +247,7 @@ function registerTerminalSuggestProvidersConfiguration(providers) {
|
|
|
247
247
|
type: 'boolean',
|
|
248
248
|
default: id === 'lsp' ? false : true,
|
|
249
249
|
description: providers.get(id)?.description ??
|
|
250
|
-
( localize(
|
|
250
|
+
( localize(12376, "Show suggestions from {0}.", id))
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
const defaultValue = {};
|
|
@@ -257,13 +257,13 @@ function registerTerminalSuggestProvidersConfiguration(providers) {
|
|
|
257
257
|
terminalSuggestProvidersConfiguration = {
|
|
258
258
|
id: 'terminalSuggestProviders',
|
|
259
259
|
order: 100,
|
|
260
|
-
title: ( localize(
|
|
260
|
+
title: ( localize(12377, "Terminal Suggest Providers")),
|
|
261
261
|
type: 'object',
|
|
262
262
|
properties: {
|
|
263
263
|
[TerminalSuggestSettingId.Providers]: {
|
|
264
264
|
restricted: true,
|
|
265
265
|
markdownDescription: ( localize(
|
|
266
|
-
|
|
266
|
+
12378,
|
|
267
267
|
"Controls which suggestions automatically show up while typing. Suggestion providers are enabled by default."
|
|
268
268
|
)),
|
|
269
269
|
type: 'object',
|
|
@@ -12,7 +12,7 @@ var TerminalTypeAheadSettingId;
|
|
|
12
12
|
const terminalTypeAheadConfiguration = {
|
|
13
13
|
[TerminalTypeAheadSettingId.LocalEchoLatencyThreshold]: {
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
12379,
|
|
16
16
|
"Length of network delay, in milliseconds, where local edits will be echoed on the terminal without waiting for server acknowledgement. If '0', local echo will always be on, and if '-1' it will be disabled."
|
|
17
17
|
)),
|
|
18
18
|
type: 'integer',
|
|
@@ -22,23 +22,23 @@ const terminalTypeAheadConfiguration = {
|
|
|
22
22
|
},
|
|
23
23
|
[TerminalTypeAheadSettingId.LocalEchoEnabled]: {
|
|
24
24
|
markdownDescription: ( localize(
|
|
25
|
-
|
|
25
|
+
12380,
|
|
26
26
|
"When local echo should be enabled. This will override {0}",
|
|
27
27
|
'`#terminal.integrated.localEchoLatencyThreshold#`'
|
|
28
28
|
)),
|
|
29
29
|
type: 'string',
|
|
30
30
|
enum: ['on', 'off', 'auto'],
|
|
31
31
|
enumDescriptions: [
|
|
32
|
-
( localize(
|
|
33
|
-
( localize(
|
|
34
|
-
( localize(
|
|
32
|
+
( localize(12381, "Always enabled")),
|
|
33
|
+
( localize(12382, "Always disabled")),
|
|
34
|
+
( localize(12383, "Enabled only for remote workspaces"))
|
|
35
35
|
],
|
|
36
36
|
default: 'off',
|
|
37
37
|
tags: ['preview'],
|
|
38
38
|
},
|
|
39
39
|
[TerminalTypeAheadSettingId.LocalEchoExcludePrograms]: {
|
|
40
40
|
description: ( localize(
|
|
41
|
-
|
|
41
|
+
12384,
|
|
42
42
|
"Local echo will be disabled when any of these program names are found in the terminal title."
|
|
43
43
|
)),
|
|
44
44
|
type: 'array',
|
|
@@ -51,7 +51,7 @@ const terminalTypeAheadConfiguration = {
|
|
|
51
51
|
},
|
|
52
52
|
[TerminalTypeAheadSettingId.LocalEchoStyle]: {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
12385,
|
|
55
55
|
"Terminal style of locally echoed text; either a font style or an RGB color."
|
|
56
56
|
)),
|
|
57
57
|
default: 'dim',
|
|
@@ -16,11 +16,11 @@ const terminalZoomConfiguration = {
|
|
|
16
16
|
[TerminalZoomSettingId.MouseWheelZoom]: {
|
|
17
17
|
markdownDescription: isMacintosh
|
|
18
18
|
? ( localize(
|
|
19
|
-
|
|
19
|
+
12400,
|
|
20
20
|
"Zoom the font of the terminal when using mouse wheel and holding `Cmd`."
|
|
21
21
|
))
|
|
22
22
|
: ( localize(
|
|
23
|
-
|
|
23
|
+
12401,
|
|
24
24
|
"Zoom the font of the terminal when using mouse wheel and holding `Ctrl`."
|
|
25
25
|
)),
|
|
26
26
|
type: 'boolean',
|