@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
package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js
CHANGED
|
@@ -47,26 +47,26 @@ let FilesConfigurationService = class FilesConfigurationService extends Disposab
|
|
|
47
47
|
static { this.DEFAULT_AUTO_SAVE_DELAY = 1000; }
|
|
48
48
|
static { this.READONLY_MESSAGES = {
|
|
49
49
|
providerReadonly: { value: ( localize(
|
|
50
|
-
|
|
50
|
+
14098,
|
|
51
51
|
"Editor is read-only because the file system of the file is read-only."
|
|
52
52
|
)), isTrusted: true },
|
|
53
53
|
sessionReadonly: { value: ( localize(
|
|
54
|
-
|
|
54
|
+
14099,
|
|
55
55
|
"Editor is read-only because the file was set read-only in this session. [Click here](command:{0}) to set writeable.",
|
|
56
56
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
57
57
|
)), isTrusted: true },
|
|
58
58
|
configuredReadonly: { value: ( localize(
|
|
59
|
-
|
|
59
|
+
14100,
|
|
60
60
|
"Editor is read-only because the file was set read-only via settings. [Click here](command:{0}) to configure or [toggle for this session](command:{1}).",
|
|
61
61
|
`workbench.action.openSettings?${encodeURIComponent('["files.readonly"]')}`,
|
|
62
62
|
'workbench.action.files.toggleActiveEditorReadonlyInSession'
|
|
63
63
|
)), isTrusted: true },
|
|
64
64
|
fileLocked: { value: ( localize(
|
|
65
|
-
|
|
65
|
+
14101,
|
|
66
66
|
"Editor is read-only because of file permissions. [Click here](command:{0}) to set writeable anyway.",
|
|
67
67
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
68
68
|
)), isTrusted: true },
|
|
69
|
-
fileReadonly: { value: ( localize(
|
|
69
|
+
fileReadonly: { value: ( localize(14102, "Editor is read-only because the file is read-only.")), isTrusted: true }
|
|
70
70
|
}; }
|
|
71
71
|
constructor(contextKeyService, configurationService, contextService, environmentService, uriIdentityService, fileService, markerService, textResourceConfigurationService) {
|
|
72
72
|
super();
|
|
@@ -23,25 +23,25 @@ import { isString } from '../../../../base/common/types.js';
|
|
|
23
23
|
const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
24
24
|
extensionPoint: 'languages',
|
|
25
25
|
jsonSchema: {
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(14155, 'Contributes language declarations.')),
|
|
27
27
|
type: 'array',
|
|
28
28
|
items: {
|
|
29
29
|
type: 'object',
|
|
30
30
|
defaultSnippets: [{ body: { id: '${1:languageId}', aliases: ['${2:label}'], extensions: ['${3:extension}'], configuration: './language-configuration.json' } }],
|
|
31
31
|
properties: {
|
|
32
32
|
id: {
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(14156, 'ID of the language.')),
|
|
34
34
|
type: 'string'
|
|
35
35
|
},
|
|
36
36
|
aliases: {
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(14157, 'Name aliases for the language.')),
|
|
38
38
|
type: 'array',
|
|
39
39
|
items: {
|
|
40
40
|
type: 'string'
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
extensions: {
|
|
44
|
-
description: ( localize(
|
|
44
|
+
description: ( localize(14158, 'File extensions associated to the language.')),
|
|
45
45
|
default: ['.foo'],
|
|
46
46
|
type: 'array',
|
|
47
47
|
items: {
|
|
@@ -49,21 +49,21 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
filenames: {
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(14159, 'File names associated to the language.')),
|
|
53
53
|
type: 'array',
|
|
54
54
|
items: {
|
|
55
55
|
type: 'string'
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
filenamePatterns: {
|
|
59
|
-
description: ( localize(
|
|
59
|
+
description: ( localize(14160, 'File name glob patterns associated to the language.')),
|
|
60
60
|
type: 'array',
|
|
61
61
|
items: {
|
|
62
62
|
type: 'string'
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
mimetypes: {
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(14161, 'Mime types associated to the language.')),
|
|
67
67
|
type: 'array',
|
|
68
68
|
items: {
|
|
69
69
|
type: 'string'
|
|
@@ -71,14 +71,14 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
71
71
|
},
|
|
72
72
|
firstLine: {
|
|
73
73
|
description: ( localize(
|
|
74
|
-
|
|
74
|
+
14162,
|
|
75
75
|
'A regular expression matching the first line of a file of the language.'
|
|
76
76
|
)),
|
|
77
77
|
type: 'string'
|
|
78
78
|
},
|
|
79
79
|
configuration: {
|
|
80
80
|
description: ( localize(
|
|
81
|
-
|
|
81
|
+
14163,
|
|
82
82
|
'A relative path to a file containing configuration options for the language.'
|
|
83
83
|
)),
|
|
84
84
|
type: 'string',
|
|
@@ -87,16 +87,16 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
87
87
|
icon: {
|
|
88
88
|
type: 'object',
|
|
89
89
|
description: ( localize(
|
|
90
|
-
|
|
90
|
+
14164,
|
|
91
91
|
'A icon to use as file icon, if no icon theme provides one for the language.'
|
|
92
92
|
)),
|
|
93
93
|
properties: {
|
|
94
94
|
light: {
|
|
95
|
-
description: ( localize(
|
|
95
|
+
description: ( localize(14165, 'Icon path when a light theme is used')),
|
|
96
96
|
type: 'string'
|
|
97
97
|
},
|
|
98
98
|
dark: {
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(14166, 'Icon path when a dark theme is used')),
|
|
100
100
|
type: 'string'
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -170,11 +170,11 @@ class LanguageTableRenderer extends Disposable {
|
|
|
170
170
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
171
171
|
}
|
|
172
172
|
const headers = [
|
|
173
|
-
( localize(
|
|
174
|
-
( localize(
|
|
175
|
-
( localize(
|
|
176
|
-
( localize(
|
|
177
|
-
( localize(
|
|
173
|
+
( localize(14167, "ID")),
|
|
174
|
+
( localize(14168, "Name")),
|
|
175
|
+
( localize(14169, "File Extensions")),
|
|
176
|
+
( localize(14170, "Grammar")),
|
|
177
|
+
( localize(14171, "Snippets"))
|
|
178
178
|
];
|
|
179
179
|
const rows = ( languages.sort((a, b) => a.id.localeCompare(b.id))
|
|
180
180
|
.map(l => {
|
|
@@ -196,7 +196,7 @@ class LanguageTableRenderer extends Disposable {
|
|
|
196
196
|
}
|
|
197
197
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
198
198
|
id: 'languages',
|
|
199
|
-
label: ( localize(
|
|
199
|
+
label: ( localize(14172, "Programming Languages")),
|
|
200
200
|
access: {
|
|
201
201
|
canToggle: false
|
|
202
202
|
},
|
|
@@ -214,7 +214,7 @@ let WorkbenchLanguageService = class WorkbenchLanguageService extends LanguageSe
|
|
|
214
214
|
const extension = extensions[i];
|
|
215
215
|
if (!Array.isArray(extension.value)) {
|
|
216
216
|
extension.collector.error(( localize(
|
|
217
|
-
|
|
217
|
+
14173,
|
|
218
218
|
"Invalid `contributes.{0}`. Expected an array.",
|
|
219
219
|
languagesExtPoint.name
|
|
220
220
|
)));
|
|
@@ -294,16 +294,16 @@ function isUndefinedOrStringArray(value) {
|
|
|
294
294
|
}
|
|
295
295
|
function isValidLanguageExtensionPoint(value, collector) {
|
|
296
296
|
if (!value) {
|
|
297
|
-
collector?.error(( localize(
|
|
297
|
+
collector?.error(( localize(14174, "Empty value for `contributes.{0}`", languagesExtPoint.name)));
|
|
298
298
|
return false;
|
|
299
299
|
}
|
|
300
300
|
if (typeof value.id !== 'string') {
|
|
301
|
-
collector?.error(( localize(
|
|
301
|
+
collector?.error(( localize(14175, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
302
302
|
return false;
|
|
303
303
|
}
|
|
304
304
|
if (!isUndefinedOrStringArray(value.extensions)) {
|
|
305
305
|
collector?.error(( localize(
|
|
306
|
-
|
|
306
|
+
14176,
|
|
307
307
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
308
308
|
'extensions'
|
|
309
309
|
)));
|
|
@@ -311,7 +311,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
311
311
|
}
|
|
312
312
|
if (!isUndefinedOrStringArray(value.filenames)) {
|
|
313
313
|
collector?.error(( localize(
|
|
314
|
-
|
|
314
|
+
14177,
|
|
315
315
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
316
316
|
'filenames'
|
|
317
317
|
)));
|
|
@@ -319,7 +319,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
319
319
|
}
|
|
320
320
|
if (typeof value.firstLine !== 'undefined' && typeof value.firstLine !== 'string') {
|
|
321
321
|
collector?.error(( localize(
|
|
322
|
-
|
|
322
|
+
14178,
|
|
323
323
|
"property `{0}` can be omitted and must be of type `string`",
|
|
324
324
|
'firstLine'
|
|
325
325
|
)));
|
|
@@ -327,7 +327,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
327
327
|
}
|
|
328
328
|
if (typeof value.configuration !== 'undefined' && typeof value.configuration !== 'string') {
|
|
329
329
|
collector?.error(( localize(
|
|
330
|
-
|
|
330
|
+
14179,
|
|
331
331
|
"property `{0}` can be omitted and must be of type `string`",
|
|
332
332
|
'configuration'
|
|
333
333
|
)));
|
|
@@ -335,7 +335,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
335
335
|
}
|
|
336
336
|
if (!isUndefinedOrStringArray(value.aliases)) {
|
|
337
337
|
collector?.error(( localize(
|
|
338
|
-
|
|
338
|
+
14180,
|
|
339
339
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
340
340
|
'aliases'
|
|
341
341
|
)));
|
|
@@ -343,7 +343,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
343
343
|
}
|
|
344
344
|
if (!isUndefinedOrStringArray(value.mimetypes)) {
|
|
345
345
|
collector?.error(( localize(
|
|
346
|
-
|
|
346
|
+
14181,
|
|
347
347
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
348
348
|
'mimetypes'
|
|
349
349
|
)));
|
|
@@ -352,7 +352,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
352
352
|
if (typeof value.icon !== 'undefined') {
|
|
353
353
|
if (typeof value.icon !== 'object' || typeof value.icon.light !== 'string' || typeof value.icon.dark !== 'string') {
|
|
354
354
|
collector?.error(( localize(
|
|
355
|
-
|
|
355
|
+
14182,
|
|
356
356
|
"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`",
|
|
357
357
|
'icon',
|
|
358
358
|
'light',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { localize } from '../../../../nls.js';
|
|
3
3
|
|
|
4
4
|
const windowLogId = 'rendererLog';
|
|
5
|
-
const windowLogGroup = { id: windowLogId, name: ( localize(
|
|
5
|
+
const windowLogGroup = { id: windowLogId, name: ( localize(14189, "Window")) };
|
|
6
6
|
const showWindowLogActionId = 'workbench.action.showWindowLog';
|
|
7
7
|
|
|
8
8
|
export { showWindowLogActionId, windowLogGroup, windowLogId };
|
|
@@ -9,7 +9,7 @@ import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
|
9
9
|
import { KeybindingsEditorModel } from './keybindingsEditorModel.js';
|
|
10
10
|
|
|
11
11
|
var KeybindingsEditorInput_1;
|
|
12
|
-
const KeybindingsEditorIcon = registerIcon('keybindings-editor-label-icon', Codicon.keyboard, ( localize(
|
|
12
|
+
const KeybindingsEditorIcon = registerIcon('keybindings-editor-label-icon', Codicon.keyboard, ( localize(14191, 'Icon of the keybindings editor label.')));
|
|
13
13
|
let KeybindingsEditorInput = class KeybindingsEditorInput extends EditorInput {
|
|
14
14
|
static { KeybindingsEditorInput_1 = this; }
|
|
15
15
|
static { this.ID = 'workbench.input.keybindings'; }
|
|
@@ -23,7 +23,7 @@ let KeybindingsEditorInput = class KeybindingsEditorInput extends EditorInput {
|
|
|
23
23
|
return KeybindingsEditorInput_1.ID;
|
|
24
24
|
}
|
|
25
25
|
getName() {
|
|
26
|
-
return localize(
|
|
26
|
+
return localize(14192, "Keyboard Shortcuts");
|
|
27
27
|
}
|
|
28
28
|
getIcon() {
|
|
29
29
|
return KeybindingsEditorIcon;
|
|
@@ -18,9 +18,9 @@ import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextke
|
|
|
18
18
|
|
|
19
19
|
var KeybindingsEditorModel_1;
|
|
20
20
|
const KEYBINDING_ENTRY_TEMPLATE_ID = 'keybinding.entry.template';
|
|
21
|
-
const SOURCE_SYSTEM = ( localize(
|
|
22
|
-
const SOURCE_EXTENSION = ( localize(
|
|
23
|
-
const SOURCE_USER = ( localize(
|
|
21
|
+
const SOURCE_SYSTEM = ( localize(14193, "System"));
|
|
22
|
+
const SOURCE_EXTENSION = ( localize(14194, "Extension"));
|
|
23
|
+
const SOURCE_USER = ( localize(14195, "User"));
|
|
24
24
|
function createKeybindingCommandQuery(commandId, when) {
|
|
25
25
|
const whenPart = when ? ` +when:${when}` : '';
|
|
26
26
|
return `@command:${commandId}${whenPart}`;
|
|
@@ -262,7 +262,7 @@ let KeybindingsEditorModel = KeybindingsEditorModel_1 = class KeybindingsEditorM
|
|
|
262
262
|
if (menuCommand && menuCommand.title && menuCommand.title.original) {
|
|
263
263
|
const category = menuCommand.category ? menuCommand.category.original : undefined;
|
|
264
264
|
const title = menuCommand.title.original;
|
|
265
|
-
return category ? ( localize(
|
|
265
|
+
return category ? ( localize(14196, "{0}: {1}", category, title)) : title;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
return null;
|
|
@@ -271,7 +271,7 @@ let KeybindingsEditorModel = KeybindingsEditorModel_1 = class KeybindingsEditorM
|
|
|
271
271
|
if (menuCommand) {
|
|
272
272
|
const category = menuCommand.category ? typeof menuCommand.category === 'string' ? menuCommand.category : menuCommand.category.value : undefined;
|
|
273
273
|
const title = typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value;
|
|
274
|
-
return category ? ( localize(
|
|
274
|
+
return category ? ( localize(14196, "{0}: {1}", category, title)) : title;
|
|
275
275
|
}
|
|
276
276
|
if (editorActionLabel) {
|
|
277
277
|
return editorActionLabel;
|
|
@@ -551,7 +551,7 @@ class KeybindingItemMatches {
|
|
|
551
551
|
if (equalsIgnoreCase(this.modifierLabels.user.altKey, word)) {
|
|
552
552
|
return true;
|
|
553
553
|
}
|
|
554
|
-
if (equalsIgnoreCase(( localize(
|
|
554
|
+
if (equalsIgnoreCase(( localize(14197, "option")), word)) {
|
|
555
555
|
return true;
|
|
556
556
|
}
|
|
557
557
|
return false;
|
|
@@ -578,7 +578,7 @@ class KeybindingItemMatches {
|
|
|
578
578
|
if (equalsIgnoreCase(this.modifierLabels.user.metaKey, word)) {
|
|
579
579
|
return true;
|
|
580
580
|
}
|
|
581
|
-
if (equalsIgnoreCase(( localize(
|
|
581
|
+
if (equalsIgnoreCase(( localize(14198, "meta")), word)) {
|
|
582
582
|
return true;
|
|
583
583
|
}
|
|
584
584
|
return false;
|
|
@@ -9,7 +9,7 @@ import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
|
9
9
|
import { IPreferencesService } from './preferences.service.js';
|
|
10
10
|
|
|
11
11
|
var SettingsEditor2Input_1;
|
|
12
|
-
const SettingsEditorIcon = registerIcon('settings-editor-label-icon', Codicon.settings, ( localize(
|
|
12
|
+
const SettingsEditorIcon = registerIcon('settings-editor-label-icon', Codicon.settings, ( localize(14203, 'Icon of the settings editor label.')));
|
|
13
13
|
let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
|
|
14
14
|
static { SettingsEditor2Input_1 = this; }
|
|
15
15
|
static { this.ID = 'workbench.input.settings2'; }
|
|
@@ -28,7 +28,7 @@ let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
|
|
|
28
28
|
return SettingsEditor2Input_1.ID;
|
|
29
29
|
}
|
|
30
30
|
getName() {
|
|
31
|
-
return localize(
|
|
31
|
+
return localize(14204, "Settings");
|
|
32
32
|
}
|
|
33
33
|
getIcon() {
|
|
34
34
|
return SettingsEditorIcon;
|
|
@@ -44,7 +44,7 @@ let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
|
|
|
44
44
|
SettingsEditor2Input = SettingsEditor2Input_1 = ( __decorate([
|
|
45
45
|
( __param(0, IPreferencesService))
|
|
46
46
|
], SettingsEditor2Input));
|
|
47
|
-
const PreferencesEditorIcon = registerIcon('preferences-editor-label-icon', Codicon.settings, ( localize(
|
|
47
|
+
const PreferencesEditorIcon = registerIcon('preferences-editor-label-icon', Codicon.settings, ( localize(14205, 'Icon of the preferences editor label.')));
|
|
48
48
|
class PreferencesEditorInput extends EditorInput {
|
|
49
49
|
constructor() {
|
|
50
50
|
super(...arguments);
|
|
@@ -61,7 +61,7 @@ class PreferencesEditorInput extends EditorInput {
|
|
|
61
61
|
return PreferencesEditorInput.ID;
|
|
62
62
|
}
|
|
63
63
|
getName() {
|
|
64
|
-
return localize(
|
|
64
|
+
return localize(14206, "Preferences");
|
|
65
65
|
}
|
|
66
66
|
getIcon() {
|
|
67
67
|
return PreferencesEditorIcon;
|
|
@@ -38,7 +38,7 @@ const getStartedWalkthrough = {
|
|
|
38
38
|
required: ['id'],
|
|
39
39
|
properties: {
|
|
40
40
|
id: {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(14247, 'The ID of a Get Started walkthrough to open.')),
|
|
42
42
|
type: 'string'
|
|
43
43
|
},
|
|
44
44
|
}
|
|
@@ -46,12 +46,12 @@ const getStartedWalkthrough = {
|
|
|
46
46
|
const remoteHelpExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
47
47
|
extensionPoint: 'remoteHelp',
|
|
48
48
|
jsonSchema: {
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(14248, 'Contributes help information for Remote')),
|
|
50
50
|
type: 'object',
|
|
51
51
|
properties: {
|
|
52
52
|
'getStarted': {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
14249,
|
|
55
55
|
"The url, or a command that returns the url, to your project's Getting Started page, or a walkthrough ID contributed by your project's extension"
|
|
56
56
|
)),
|
|
57
57
|
oneOf: [
|
|
@@ -61,29 +61,29 @@ const remoteHelpExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
61
61
|
},
|
|
62
62
|
'documentation': {
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
14250,
|
|
65
65
|
"The url, or a command that returns the url, to your project's documentation page"
|
|
66
66
|
)),
|
|
67
67
|
type: 'string'
|
|
68
68
|
},
|
|
69
69
|
'feedback': {
|
|
70
70
|
description: ( localize(
|
|
71
|
-
|
|
71
|
+
14251,
|
|
72
72
|
"The url, or a command that returns the url, to your project's feedback reporter"
|
|
73
73
|
)),
|
|
74
74
|
type: 'string',
|
|
75
|
-
markdownDeprecationMessage: ( localize(
|
|
75
|
+
markdownDeprecationMessage: ( localize(14252, "Use {0} instead", '`reportIssue`'))
|
|
76
76
|
},
|
|
77
77
|
'reportIssue': {
|
|
78
78
|
description: ( localize(
|
|
79
|
-
|
|
79
|
+
14253,
|
|
80
80
|
"The url, or a command that returns the url, to your project's issue reporter"
|
|
81
81
|
)),
|
|
82
82
|
type: 'string'
|
|
83
83
|
},
|
|
84
84
|
'issues': {
|
|
85
85
|
description: ( localize(
|
|
86
|
-
|
|
86
|
+
14254,
|
|
87
87
|
"The url, or a command that returns the url, to your project's issues list"
|
|
88
88
|
)),
|
|
89
89
|
type: 'string'
|
|
@@ -28,8 +28,8 @@ const TUNNELS_TO_RESTORE = 'remote.tunnels.toRestore';
|
|
|
28
28
|
const TUNNELS_TO_RESTORE_EXPIRATION = 'remote.tunnels.toRestoreExpiration';
|
|
29
29
|
const RESTORE_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 14;
|
|
30
30
|
const ACTIVATION_EVENT = 'onTunnel';
|
|
31
|
-
const forwardedPortsFeaturesEnabled = ( new RawContextKey('forwardedPortsViewEnabled', false, ( localize(
|
|
32
|
-
const forwardedPortsViewEnabled = ( new RawContextKey('forwardedPortsViewOnlyEnabled', false, ( localize(
|
|
31
|
+
const forwardedPortsFeaturesEnabled = ( new RawContextKey('forwardedPortsViewEnabled', false, ( localize(14255, "Whether the Ports view is enabled."))));
|
|
32
|
+
const forwardedPortsViewEnabled = ( new RawContextKey('forwardedPortsViewOnlyEnabled', false, ( localize(14255, "Whether the Ports view is enabled."))));
|
|
33
33
|
function parseAddress(address) {
|
|
34
34
|
const matches = address.match(/^([a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)*:)?([0-9]+)$/);
|
|
35
35
|
if (!matches) {
|
|
@@ -51,11 +51,11 @@ var TunnelSource;
|
|
|
51
51
|
})(TunnelSource || (TunnelSource = {}));
|
|
52
52
|
const UserTunnelSource = {
|
|
53
53
|
source: TunnelSource.User,
|
|
54
|
-
description: ( localize(
|
|
54
|
+
description: ( localize(14256, "User Forwarded"))
|
|
55
55
|
};
|
|
56
56
|
const AutoTunnelSource = {
|
|
57
57
|
source: TunnelSource.Auto,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(14257, "Auto Forwarded"))
|
|
59
59
|
};
|
|
60
60
|
function mapHasAddress(map, host, port) {
|
|
61
61
|
const initialAddress = map.get(makeAddress(host, port));
|
|
@@ -568,7 +568,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
568
568
|
}
|
|
569
569
|
this.mismatchCooldown = newCooldown;
|
|
570
570
|
const mismatchString = ( localize(
|
|
571
|
-
|
|
571
|
+
14258,
|
|
572
572
|
"Local port {0} could not be used for forwarding to remote port {1}.\n\nThis usually happens when there is already another process using local port {0}.\n\nPort number {2} has been used instead.",
|
|
573
573
|
expectedLocal,
|
|
574
574
|
tunnel.tunnelRemotePort,
|
|
@@ -735,7 +735,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
735
735
|
privacy: TunnelPrivacyId.ConstantPrivate,
|
|
736
736
|
source: {
|
|
737
737
|
source: TunnelSource.Extension,
|
|
738
|
-
description: ( localize(
|
|
738
|
+
description: ( localize(14259, "Statically Forwarded"))
|
|
739
739
|
}
|
|
740
740
|
});
|
|
741
741
|
this.tunnelService.setEnvironmentTunnel(tunnel.remoteAddress.host, tunnel.remoteAddress.port, localAddress, TunnelPrivacyId.ConstantPrivate, TunnelProtocol.Http);
|
|
@@ -354,7 +354,7 @@ let QueryBuilder = class QueryBuilder {
|
|
|
354
354
|
else {
|
|
355
355
|
const probableWorkspaceFolderNameMatch = searchPath.match(/\.[\/\\](.+)[\/\\]?/);
|
|
356
356
|
const probableWorkspaceFolderName = probableWorkspaceFolderNameMatch ? probableWorkspaceFolderNameMatch[1] : searchPath;
|
|
357
|
-
const searchPathNotFoundError = ( localize(
|
|
357
|
+
const searchPathNotFoundError = ( localize(14263, "Workspace folder does not exist: {0}", probableWorkspaceFolderName));
|
|
358
358
|
throw ( new Error(searchPathNotFoundError));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -7,7 +7,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
7
7
|
extensionPoint: 'grammars',
|
|
8
8
|
deps: [languagesExtPoint],
|
|
9
9
|
jsonSchema: {
|
|
10
|
-
description: ( localize(
|
|
10
|
+
description: ( localize(14288, 'Contributes textmate tokenizers.')),
|
|
11
11
|
type: 'array',
|
|
12
12
|
defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }],
|
|
13
13
|
items: {
|
|
@@ -15,29 +15,29 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
15
15
|
defaultSnippets: [{ body: { language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' } }],
|
|
16
16
|
properties: {
|
|
17
17
|
language: {
|
|
18
|
-
description: ( localize(
|
|
18
|
+
description: ( localize(14289, 'Language identifier for which this syntax is contributed to.')),
|
|
19
19
|
type: 'string'
|
|
20
20
|
},
|
|
21
21
|
scopeName: {
|
|
22
|
-
description: ( localize(
|
|
22
|
+
description: ( localize(14290, 'Textmate scope name used by the tmLanguage file.')),
|
|
23
23
|
type: 'string'
|
|
24
24
|
},
|
|
25
25
|
path: {
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
14291,
|
|
28
28
|
'Path of the tmLanguage file. The path is relative to the extension folder and typically starts with \'./syntaxes/\'.'
|
|
29
29
|
)),
|
|
30
30
|
type: 'string'
|
|
31
31
|
},
|
|
32
32
|
embeddedLanguages: {
|
|
33
33
|
description: ( localize(
|
|
34
|
-
|
|
34
|
+
14292,
|
|
35
35
|
'A map of scope name to language id if this grammar contains embedded languages.'
|
|
36
36
|
)),
|
|
37
37
|
type: 'object'
|
|
38
38
|
},
|
|
39
39
|
tokenTypes: {
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(14293, 'A map of scope name to token types.')),
|
|
41
41
|
type: 'object',
|
|
42
42
|
additionalProperties: {
|
|
43
43
|
enum: ['string', 'comment', 'other']
|
|
@@ -45,7 +45,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
45
45
|
},
|
|
46
46
|
injectTo: {
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
14294,
|
|
49
49
|
'List of language scope names to which this grammar is injected to.'
|
|
50
50
|
)),
|
|
51
51
|
type: 'array',
|
|
@@ -54,7 +54,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
balancedBracketScopes: {
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(14295, 'Defines which scope names contain balanced brackets.')),
|
|
58
58
|
type: 'array',
|
|
59
59
|
items: {
|
|
60
60
|
type: 'string'
|
|
@@ -62,7 +62,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
62
62
|
default: ['*'],
|
|
63
63
|
},
|
|
64
64
|
unbalancedBracketScopes: {
|
|
65
|
-
description: ( localize(
|
|
65
|
+
description: ( localize(14296, 'Defines which scope names do not contain balanced brackets.')),
|
|
66
66
|
type: 'array',
|
|
67
67
|
items: {
|
|
68
68
|
type: 'string'
|
|
@@ -37,7 +37,7 @@ import { EditSources } from '../../../../editor/common/textModelEditSource.js';
|
|
|
37
37
|
var TextFileEditorModel_1;
|
|
38
38
|
let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel {
|
|
39
39
|
static { TextFileEditorModel_1 = this; }
|
|
40
|
-
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(
|
|
40
|
+
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(14310, "File Encoding Changed"))); }
|
|
41
41
|
static { this.UNDO_REDO_SAVE_PARTICIPANTS_AUTO_SAVE_THROTTLE_THRESHOLD = 500; }
|
|
42
42
|
constructor(resource, preferredEncoding,
|
|
43
43
|
preferredLanguageId, languageService, modelService, fileService, textFileService, workingCopyBackupService, logService, workingCopyService, filesConfigurationService, labelService, languageDetectionService, accessibilityService, pathService, extensionService, progressService) {
|
|
@@ -509,7 +509,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
509
509
|
}
|
|
510
510
|
const saveCancellation = ( new CancellationTokenSource());
|
|
511
511
|
return this.progressService.withProgress({
|
|
512
|
-
title: ( localize(
|
|
512
|
+
title: ( localize(14311, "Saving '{0}'", this.name)),
|
|
513
513
|
location: ProgressLocation.Window,
|
|
514
514
|
cancellable: true,
|
|
515
515
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -564,7 +564,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
564
564
|
}
|
|
565
565
|
versionId = this.versionId;
|
|
566
566
|
this.inErrorMode = false;
|
|
567
|
-
progress.report({ message: ( localize(
|
|
567
|
+
progress.report({ message: ( localize(14312, "Writing into file...")) });
|
|
568
568
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
569
569
|
const lastResolvedFileStat = assertReturnsDefined(this.lastResolvedFileStat);
|
|
570
570
|
const resolvedTextFileEditorModel = this;
|