@codingame/monaco-vscode-api 23.1.0 → 23.1.1
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.d.ts +1 -1
- package/services.js +3 -4
- package/vscode/src/vs/base/browser/dom.d.ts +6 -0
- package/vscode/src/vs/base/browser/dom.js +12 -3
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +159 -159
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +9 -9
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- 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/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +0 -19
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +0 -95
|
@@ -5,7 +5,7 @@ import { URI } from "../../../../base/common/uri.js";
|
|
|
5
5
|
import { IBaseFileStat } from "../../../../platform/files/common/files.js";
|
|
6
6
|
import { SaveReason } from "../../../common/editor.js";
|
|
7
7
|
import { EditorInput } from "../../../common/editor/editorInput.js";
|
|
8
|
-
import { IAutoSaveConfiguration, IAutoSaveMode } from "@codingame/monaco-vscode-
|
|
8
|
+
import { IAutoSaveConfiguration, IAutoSaveMode } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService";
|
|
9
9
|
export declare const IFilesConfigurationService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IFilesConfigurationService>;
|
|
10
10
|
export interface IFilesConfigurationService {
|
|
11
11
|
readonly _serviceBrand: undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VSBuffer } from "../../../../base/common/buffer.js";
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
|
-
import { FocusMode } from "@codingame/monaco-vscode-
|
|
3
|
+
import { FocusMode } from "@codingame/monaco-vscode-2c64d2c2-fdf7-5675-a2fe-f6f65fbdedbf-common/vscode/vs/platform/native/common/native";
|
|
4
4
|
import { IOpenEmptyWindowOptions, IWindowOpenable, IOpenWindowOptions, IPoint, IRectangle } from "../../../../platform/window/common/window.js";
|
|
5
5
|
export declare const IHostService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IHostService>;
|
|
6
6
|
/**
|
|
@@ -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(13958, '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(13959, 'ID of the language.')),
|
|
34
34
|
type: 'string'
|
|
35
35
|
},
|
|
36
36
|
aliases: {
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(13960, '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(13961, '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(13962, '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(13963, '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(13964, '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
|
+
13965,
|
|
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
|
+
13966,
|
|
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
|
+
13967,
|
|
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(13968, 'Icon path when a light theme is used')),
|
|
96
96
|
type: 'string'
|
|
97
97
|
},
|
|
98
98
|
dark: {
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(13969, '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(13970, "ID")),
|
|
174
|
+
( localize(13971, "Name")),
|
|
175
|
+
( localize(13972, "File Extensions")),
|
|
176
|
+
( localize(13973, "Grammar")),
|
|
177
|
+
( localize(13974, "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(13975, "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
|
+
13976,
|
|
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(13977, "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(13978, "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
|
+
13979,
|
|
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
|
+
13980,
|
|
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
|
+
13981,
|
|
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
|
+
13982,
|
|
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
|
+
13983,
|
|
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
|
+
13984,
|
|
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
|
+
13985,
|
|
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',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILanguagePackItem } from "@codingame/monaco-vscode-
|
|
1
|
+
import { ILanguagePackItem } from "@codingame/monaco-vscode-cc2a4237-8890-5664-9fcf-a56ecd22e3ef-common/vscode/vs/platform/languagePacks/common/languagePacks";
|
|
2
2
|
export declare const ILocaleService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<ILocaleService>;
|
|
3
3
|
export interface ILocaleService {
|
|
4
4
|
readonly _serviceBrand: undefined;
|
|
@@ -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(13992, "Window")) };
|
|
6
6
|
const showWindowLogActionId = 'workbench.action.showWindowLog';
|
|
7
7
|
|
|
8
8
|
export { showWindowLogActionId, windowLogGroup, windowLogId };
|
|
@@ -2,7 +2,7 @@ import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
3
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
4
4
|
import { IEditorPane } from "../../../common/editor.js";
|
|
5
|
-
import { OutlineTarget, IOutline, IOutlineCreator } from "@codingame/monaco-vscode-
|
|
5
|
+
import { OutlineTarget, IOutline, IOutlineCreator } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/services/outline/browser/outline";
|
|
6
6
|
export declare const IOutlineService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IOutlineService>;
|
|
7
7
|
export interface IOutlineService {
|
|
8
8
|
_serviceBrand: undefined;
|
|
@@ -38,7 +38,7 @@ const getStartedWalkthrough = {
|
|
|
38
38
|
required: ['id'],
|
|
39
39
|
properties: {
|
|
40
40
|
id: {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(14050, '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(14051, 'Contributes help information for Remote')),
|
|
50
50
|
type: 'object',
|
|
51
51
|
properties: {
|
|
52
52
|
'getStarted': {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
14052,
|
|
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
|
+
14053,
|
|
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
|
+
14054,
|
|
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(14055, "Use {0} instead", '`reportIssue`'))
|
|
76
76
|
},
|
|
77
77
|
'reportIssue': {
|
|
78
78
|
description: ( localize(
|
|
79
|
-
|
|
79
|
+
14056,
|
|
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
|
+
14057,
|
|
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(14058, "Whether the Ports view is enabled."))));
|
|
32
|
+
const forwardedPortsViewEnabled = ( new RawContextKey('forwardedPortsViewOnlyEnabled', false, ( localize(14058, "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(14059, "User Forwarded"))
|
|
55
55
|
};
|
|
56
56
|
const AutoTunnelSource = {
|
|
57
57
|
source: TunnelSource.Auto,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(14060, "Auto Forwarded"))
|
|
59
59
|
};
|
|
60
60
|
function mapHasAddress(map, host, port) {
|
|
61
61
|
const initialAddress = map.get(makeAddress(host, port));
|
|
@@ -569,7 +569,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
569
569
|
}
|
|
570
570
|
this.mismatchCooldown = newCooldown;
|
|
571
571
|
const mismatchString = ( localize(
|
|
572
|
-
|
|
572
|
+
14061,
|
|
573
573
|
"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.",
|
|
574
574
|
expectedLocal,
|
|
575
575
|
tunnel.tunnelRemotePort,
|
|
@@ -736,7 +736,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
736
736
|
privacy: TunnelPrivacyId.ConstantPrivate,
|
|
737
737
|
source: {
|
|
738
738
|
source: TunnelSource.Extension,
|
|
739
|
-
description: ( localize(
|
|
739
|
+
description: ( localize(14062, "Statically Forwarded"))
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
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(14066, "Workspace folder does not exist: {0}", probableWorkspaceFolderName));
|
|
358
358
|
throw ( new Error(searchPathNotFoundError));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -6,7 +6,7 @@ import { IBaseFileStatWithMetadata, IFileStatWithMetadata, IWriteFileOptions, Fi
|
|
|
6
6
|
import { ITextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService";
|
|
7
7
|
import { ITextBufferFactory, ITextModel, ITextSnapshot } from "../../../../editor/common/model.js";
|
|
8
8
|
import { VSBuffer, VSBufferReadable } from "../../../../base/common/buffer.js";
|
|
9
|
-
import { IWorkingCopy, IWorkingCopySaveEvent } from "@codingame/monaco-vscode-
|
|
9
|
+
import { IWorkingCopy, IWorkingCopySaveEvent } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
10
10
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
11
11
|
import { IProgress, IProgressStep } from "../../../../platform/progress/common/progress.js";
|
|
12
12
|
export interface IReadTextFileEncodingOptions {
|
|
@@ -28,30 +28,30 @@ const colorIdPattern = '^\\w+[.\\w+]*$';
|
|
|
28
28
|
const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
29
29
|
extensionPoint: 'colors',
|
|
30
30
|
jsonSchema: {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(14134, 'Contributes extension defined themable colors')),
|
|
32
32
|
type: 'array',
|
|
33
33
|
items: {
|
|
34
34
|
type: 'object',
|
|
35
35
|
properties: {
|
|
36
36
|
id: {
|
|
37
37
|
type: 'string',
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(14135, 'The identifier of the themable color')),
|
|
39
39
|
pattern: colorIdPattern,
|
|
40
40
|
patternErrorMessage: ( localize(
|
|
41
|
-
|
|
41
|
+
14136,
|
|
42
42
|
'Identifiers must only contain letters, digits and dots and can not start with a dot'
|
|
43
43
|
)),
|
|
44
44
|
},
|
|
45
45
|
description: {
|
|
46
46
|
type: 'string',
|
|
47
|
-
description: ( localize(
|
|
47
|
+
description: ( localize(14137, 'The description of the themable color')),
|
|
48
48
|
},
|
|
49
49
|
defaults: {
|
|
50
50
|
type: 'object',
|
|
51
51
|
properties: {
|
|
52
52
|
light: {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
14138,
|
|
55
55
|
'The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
56
56
|
)),
|
|
57
57
|
type: 'string',
|
|
@@ -62,7 +62,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
62
62
|
},
|
|
63
63
|
dark: {
|
|
64
64
|
description: ( localize(
|
|
65
|
-
|
|
65
|
+
14139,
|
|
66
66
|
'The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
67
67
|
)),
|
|
68
68
|
type: 'string',
|
|
@@ -73,7 +73,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
73
73
|
},
|
|
74
74
|
highContrast: {
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
14140,
|
|
77
77
|
'The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.'
|
|
78
78
|
)),
|
|
79
79
|
type: 'string',
|
|
@@ -84,7 +84,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
84
84
|
},
|
|
85
85
|
highContrastLight: {
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
14141,
|
|
88
88
|
'The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.'
|
|
89
89
|
)),
|
|
90
90
|
type: 'string',
|
|
@@ -107,7 +107,7 @@ class ColorExtensionPoint {
|
|
|
107
107
|
const extensionValue = extension.value;
|
|
108
108
|
const collector = extension.collector;
|
|
109
109
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
110
|
-
collector.error(( localize(
|
|
110
|
+
collector.error(( localize(14142, "'configuration.colors' must be a array")));
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
const parseColorValue = (s, name) => {
|
|
@@ -120,7 +120,7 @@ class ColorExtensionPoint {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
collector.error(( localize(
|
|
123
|
-
|
|
123
|
+
14143,
|
|
124
124
|
"{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.",
|
|
125
125
|
name
|
|
126
126
|
)));
|
|
@@ -128,19 +128,19 @@ class ColorExtensionPoint {
|
|
|
128
128
|
};
|
|
129
129
|
for (const colorContribution of extensionValue) {
|
|
130
130
|
if (typeof colorContribution.id !== 'string' || colorContribution.id.length === 0) {
|
|
131
|
-
collector.error(( localize(
|
|
131
|
+
collector.error(( localize(14144, "'configuration.colors.id' must be defined and can not be empty")));
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
if (!colorContribution.id.match(colorIdPattern)) {
|
|
135
135
|
collector.error(( localize(
|
|
136
|
-
|
|
136
|
+
14145,
|
|
137
137
|
"'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"
|
|
138
138
|
)));
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
if (typeof colorContribution.description !== 'string' || colorContribution.id.length === 0) {
|
|
142
142
|
collector.error(( localize(
|
|
143
|
-
|
|
143
|
+
14146,
|
|
144
144
|
"'configuration.colors.description' must be defined and can not be empty"
|
|
145
145
|
)));
|
|
146
146
|
return;
|
|
@@ -148,21 +148,21 @@ class ColorExtensionPoint {
|
|
|
148
148
|
const defaults = colorContribution.defaults;
|
|
149
149
|
if (!defaults || typeof defaults !== 'object' || typeof defaults.light !== 'string' || typeof defaults.dark !== 'string') {
|
|
150
150
|
collector.error(( localize(
|
|
151
|
-
|
|
151
|
+
14147,
|
|
152
152
|
"'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"
|
|
153
153
|
)));
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
156
|
if (defaults.highContrast && typeof defaults.highContrast !== 'string') {
|
|
157
157
|
collector.error(( localize(
|
|
158
|
-
|
|
158
|
+
14148,
|
|
159
159
|
"If defined, 'configuration.colors.defaults.highContrast' must be a string."
|
|
160
160
|
)));
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
if (defaults.highContrastLight && typeof defaults.highContrastLight !== 'string') {
|
|
164
164
|
collector.error(( localize(
|
|
165
|
-
|
|
165
|
+
14149,
|
|
166
166
|
"If defined, 'configuration.colors.defaults.highContrastLight' must be a string."
|
|
167
167
|
)));
|
|
168
168
|
return;
|
|
@@ -198,11 +198,11 @@ class ColorDataRenderer extends Disposable {
|
|
|
198
198
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
199
199
|
}
|
|
200
200
|
const headers = [
|
|
201
|
-
( localize(
|
|
202
|
-
( localize(
|
|
203
|
-
( localize(
|
|
204
|
-
( localize(
|
|
205
|
-
( localize(
|
|
201
|
+
( localize(14150, "ID")),
|
|
202
|
+
( localize(14151, "Description")),
|
|
203
|
+
( localize(14152, "Dark Default")),
|
|
204
|
+
( localize(14153, "Light Default")),
|
|
205
|
+
( localize(14154, "High Contrast Default")),
|
|
206
206
|
];
|
|
207
207
|
const toColor = (colorReference) => colorReference[0] === '#' ? ( Color.fromHex(colorReference)) : undefined;
|
|
208
208
|
const rows = ( colors.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -226,7 +226,7 @@ class ColorDataRenderer extends Disposable {
|
|
|
226
226
|
}
|
|
227
227
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
228
228
|
id: 'colors',
|
|
229
|
-
label: ( localize(
|
|
229
|
+
label: ( localize(14155, "Colors")),
|
|
230
230
|
access: {
|
|
231
231
|
canToggle: false
|
|
232
232
|
},
|
|
@@ -16,13 +16,13 @@ const iconIdPattern = `^${ThemeIcon.iconNameSegment}(-${ThemeIcon.iconNameSegmen
|
|
|
16
16
|
const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
17
17
|
extensionPoint: 'icons',
|
|
18
18
|
jsonSchema: {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(14214, 'Contributes extension defined themable icons')),
|
|
20
20
|
type: 'object',
|
|
21
21
|
propertyNames: {
|
|
22
22
|
pattern: iconIdPattern,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(14215, 'The identifier of the themable icon')),
|
|
24
24
|
patternErrorMessage: ( localize(
|
|
25
|
-
|
|
25
|
+
14216,
|
|
26
26
|
'Identifiers can only contain letters, digits and minuses and need to consist of at least two segments in the form `component-iconname`.'
|
|
27
27
|
)),
|
|
28
28
|
},
|
|
@@ -31,7 +31,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
31
31
|
properties: {
|
|
32
32
|
description: {
|
|
33
33
|
type: 'string',
|
|
34
|
-
description: ( localize(
|
|
34
|
+
description: ( localize(14217, 'The description of the themable icon')),
|
|
35
35
|
},
|
|
36
36
|
default: {
|
|
37
37
|
anyOf: [
|
|
@@ -40,11 +40,11 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
40
40
|
type: 'object',
|
|
41
41
|
properties: {
|
|
42
42
|
fontPath: {
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(14218, 'The path of the icon font that defines the icon.')),
|
|
44
44
|
type: 'string'
|
|
45
45
|
},
|
|
46
46
|
fontCharacter: {
|
|
47
|
-
description: ( localize(
|
|
47
|
+
description: ( localize(14219, 'The character for the icon in the icon font.')),
|
|
48
48
|
type: 'string'
|
|
49
49
|
}
|
|
50
50
|
},
|
|
@@ -53,7 +53,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
55
|
description: ( localize(
|
|
56
|
-
|
|
56
|
+
14220,
|
|
57
57
|
'The default of the icon. Either a reference to an existing ThemeIcon or an icon in an icon font.'
|
|
58
58
|
)),
|
|
59
59
|
}
|
|
@@ -72,7 +72,7 @@ class IconExtensionPoint {
|
|
|
72
72
|
const collector = extension.collector;
|
|
73
73
|
if (!extensionValue || typeof extensionValue !== 'object') {
|
|
74
74
|
collector.error(( localize(
|
|
75
|
-
|
|
75
|
+
14221,
|
|
76
76
|
"'configuration.icons' must be an object with the icon names as properties."
|
|
77
77
|
)));
|
|
78
78
|
return;
|
|
@@ -80,7 +80,7 @@ class IconExtensionPoint {
|
|
|
80
80
|
for (const id in extensionValue) {
|
|
81
81
|
if (!id.match(iconIdPattern)) {
|
|
82
82
|
collector.error(( localize(
|
|
83
|
-
|
|
83
|
+
14222,
|
|
84
84
|
"'configuration.icons' keys represent the icon id and can only contain letter, digits and minuses. They need to consist of at least two segments in the form `component-iconname`."
|
|
85
85
|
)));
|
|
86
86
|
return;
|
|
@@ -88,7 +88,7 @@ class IconExtensionPoint {
|
|
|
88
88
|
const iconContribution = extensionValue[id];
|
|
89
89
|
if (typeof iconContribution.description !== 'string' || iconContribution.description.length === 0) {
|
|
90
90
|
collector.error(( localize(
|
|
91
|
-
|
|
91
|
+
14223,
|
|
92
92
|
"'configuration.icons.description' must be defined and can not be empty"
|
|
93
93
|
)));
|
|
94
94
|
return;
|
|
@@ -102,7 +102,7 @@ class IconExtensionPoint {
|
|
|
102
102
|
const format = formatMap[fileExt];
|
|
103
103
|
if (!format) {
|
|
104
104
|
collector.warn(( localize(
|
|
105
|
-
|
|
105
|
+
14224,
|
|
106
106
|
"Expected `contributes.icons.default.fontPath` to have file extension 'woff', woff2' or 'ttf', is '{0}'.",
|
|
107
107
|
fileExt
|
|
108
108
|
)));
|
|
@@ -114,7 +114,7 @@ class IconExtensionPoint {
|
|
|
114
114
|
const definition = iconRegistry.registerIconFont(fontId, { src: [{ location: iconFontLocation, format }] });
|
|
115
115
|
if (!isEqualOrParent(iconFontLocation, extensionLocation)) {
|
|
116
116
|
collector.warn(( localize(
|
|
117
|
-
|
|
117
|
+
14225,
|
|
118
118
|
"Expected `contributes.icons.default.fontPath` ({0}) to be included inside extension's folder ({0}).",
|
|
119
119
|
iconFontLocation.path,
|
|
120
120
|
extensionLocation.path
|
|
@@ -131,7 +131,7 @@ class IconExtensionPoint {
|
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
133
|
collector.error(( localize(
|
|
134
|
-
|
|
134
|
+
14226,
|
|
135
135
|
"'configuration.icons.default' must be either a reference to the id of an other theme icon (string) or a icon definition (object) with properties `fontPath` and `fontCharacter`."
|
|
136
136
|
)));
|
|
137
137
|
}
|