@codingame/monaco-vscode-api 18.1.3 → 18.2.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/browser/controller/editContext/screenReaderUtils.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +1 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.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/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/services/accounts/common/defaultAccount.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/extensions/common/extensionsRegistry.js +84 -84
- 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/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/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 +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "18.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "18.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "18.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "18.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "18.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "18.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "18.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "18.2.0",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "18.2.0",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "18.2.0",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "18.2.0",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "18.2.0",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "18.2.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "18.2.0",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
26
26
|
"dompurify": "3.2.6",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.js
CHANGED
|
@@ -182,10 +182,10 @@ export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
182
182
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
183
183
|
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
184
184
|
|
|
185
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.101.1-
|
|
186
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.101.1-
|
|
185
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.101.1-f37ed7e4-3adf-4d6f-b557-7be5f25f5e70") {
|
|
186
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.101.1-f37ed7e4-3adf-4d6f-b557-7be5f25f5e70"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
187
187
|
}
|
|
188
|
-
window.monacoVscodeApiBuildId = "1.101.1-
|
|
188
|
+
window.monacoVscodeApiBuildId = "1.101.1-f37ed7e4-3adf-4d6f-b557-7be5f25f5e70";
|
|
189
189
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
190
190
|
checkServicesNotInitialized();
|
|
191
191
|
injectCss(container);
|
|
@@ -23,7 +23,7 @@ class PagedScreenReaderStrategy {
|
|
|
23
23
|
const selectionEndPageRange = PagedScreenReaderStrategy._getRangeForPage(selectionEndPage, linesPerPage);
|
|
24
24
|
let pretextRange = selectionStartPageRange.intersectRanges(( new Range(1, 1, selection.startLineNumber, selection.startColumn)));
|
|
25
25
|
if (trimLongText && model.getValueLengthInRange(pretextRange, EndOfLinePreference.LF) > LIMIT_CHARS) {
|
|
26
|
-
const pretextStart = model.modifyPosition(pretextRange.getEndPosition(), -
|
|
26
|
+
const pretextStart = model.modifyPosition(pretextRange.getEndPosition(), -LIMIT_CHARS);
|
|
27
27
|
pretextRange = Range.fromPositions(pretextStart, pretextRange.getEndPosition());
|
|
28
28
|
}
|
|
29
29
|
const pretext = model.getValueInRange(pretextRange, EndOfLinePreference.LF);
|
|
@@ -104,7 +104,7 @@ let InlineEditsCollapsedView = class InlineEditsCollapsedView extends Disposable
|
|
|
104
104
|
if (!point) {
|
|
105
105
|
return ( new PathBuilder()).build();
|
|
106
106
|
}
|
|
107
|
-
const baseTopLeft = point.deltaX(-
|
|
107
|
+
const baseTopLeft = point.deltaX(-width / 2).deltaY(-baseHeight);
|
|
108
108
|
const baseTopRight = baseTopLeft.deltaX(width);
|
|
109
109
|
const baseBottomLeft = baseTopLeft.deltaY(baseHeight);
|
|
110
110
|
const baseBottomRight = baseTopRight.deltaY(baseHeight);
|
|
@@ -159,7 +159,7 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
|
|
|
159
159
|
topOfLine = this._editorObs.editor.getTopForLineNumber(startLineNumber - 1);
|
|
160
160
|
contentStartOffset = startContentLeftOffset;
|
|
161
161
|
deltaX = paddingHorizontally + horizontalOffsetWhenAboveBelow;
|
|
162
|
-
deltaY = -
|
|
162
|
+
deltaY = -paddingVertically + verticalOffsetWhenAboveBelow;
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -487,7 +487,7 @@ let InlineEditsSideBySideView = class InlineEditsSideBySideView extends Disposab
|
|
|
487
487
|
if (!layoutInfo) {
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
|
-
const editorRect = layoutInfo.editRect.withMargin(-
|
|
490
|
+
const editorRect = layoutInfo.editRect.withMargin(-VERTICAL_PADDING, -HORIZONTAL_PADDING);
|
|
491
491
|
this.previewEditor.layout({ height: editorRect.height, width: layoutInfo.previewEditorWidth + 15 });
|
|
492
492
|
this._editorContainer.element.style.top = `${editorRect.top}px`;
|
|
493
493
|
this._editorContainer.element.style.left = `${editorRect.left}px`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IKeyboardEvent } from "../../keybinding/common/keybinding.js";
|
|
2
|
-
import { IPickerQuickAccessItem } from "@codingame/monaco-vscode-
|
|
2
|
+
import { IPickerQuickAccessItem } from "@codingame/monaco-vscode-ed7f2efb-131f-5ae8-b8fe-f20867e14c58-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
3
3
|
import { Event } from "../../../base/common/event.js";
|
|
4
4
|
import { IAction } from "../../../base/common/actions.js";
|
|
5
5
|
import { IQuickPickItem } from "../../quickinput/common/quickInput.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from "../../../base/common/event.js";
|
|
2
2
|
import { IMatch } from "../../../base/common/filters.js";
|
|
3
|
-
import { IItemAccessor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IItemAccessor } from "@codingame/monaco-vscode-ed7f2efb-131f-5ae8-b8fe-f20867e14c58-common/vscode/vs/base/common/fuzzyScorer";
|
|
4
4
|
import { ResolvedKeybinding } from "../../../base/common/keybindings.js";
|
|
5
5
|
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
6
6
|
import Severity from "../../../base/common/severity.js";
|
|
@@ -27,7 +27,7 @@ class SnippetCompletion {
|
|
|
27
27
|
constructor(snippet, range) {
|
|
28
28
|
this.snippet = snippet;
|
|
29
29
|
this.label = { label: snippet.prefix, description: snippet.name };
|
|
30
|
-
this.detail = ( localize(
|
|
30
|
+
this.detail = ( localize(9870, "{0} ({1})", snippet.description || snippet.name, snippet.source));
|
|
31
31
|
this.insertText = snippet.codeSnippet;
|
|
32
32
|
this.extensionId = snippet.extensionId;
|
|
33
33
|
this.range = range;
|
|
@@ -121,14 +121,14 @@ let SnippetCompletionProvider = class SnippetCompletionProvider {
|
|
|
121
121
|
let to = i + 1;
|
|
122
122
|
for (; to < suggestions.length && item.label === suggestions[to].label; to++) {
|
|
123
123
|
suggestions[to].label.label = ( localize(
|
|
124
|
-
|
|
124
|
+
9871,
|
|
125
125
|
"{0}, {1}",
|
|
126
126
|
suggestions[to].label.label,
|
|
127
127
|
suggestions[to].snippet.name
|
|
128
128
|
));
|
|
129
129
|
}
|
|
130
130
|
if (to > i + 1) {
|
|
131
|
-
suggestions[i].label.label = ( localize(
|
|
131
|
+
suggestions[i].label.label = ( localize(9871, "{0}, {1}", suggestions[i].label.label, suggestions[i].snippet.name));
|
|
132
132
|
i = to;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -207,14 +207,14 @@ class SnippetFile {
|
|
|
207
207
|
source = this._extension.displayName || this._extension.name;
|
|
208
208
|
}
|
|
209
209
|
else if (this.source === SnippetSource.Workspace) {
|
|
210
|
-
source = ( localize(
|
|
210
|
+
source = ( localize(9887, "Workspace Snippet"));
|
|
211
211
|
}
|
|
212
212
|
else {
|
|
213
213
|
if (this.isGlobalSnippets) {
|
|
214
|
-
source = ( localize(
|
|
214
|
+
source = ( localize(9888, "Global User Snippet"));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
|
-
source = ( localize(
|
|
217
|
+
source = ( localize(9889, "User Snippet"));
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
for (const _prefix of Iterable.wrap(prefix)) {
|
|
@@ -34,7 +34,7 @@ var snippetExt;
|
|
|
34
34
|
function toValidSnippet(extension, snippet, languageService) {
|
|
35
35
|
if (isFalsyOrWhitespace(snippet.path)) {
|
|
36
36
|
extension.collector.error(( localize(
|
|
37
|
-
|
|
37
|
+
9890,
|
|
38
38
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
39
39
|
extension.description.name,
|
|
40
40
|
String(snippet.path)
|
|
@@ -43,7 +43,7 @@ var snippetExt;
|
|
|
43
43
|
}
|
|
44
44
|
if (isFalsyOrWhitespace(snippet.language) && !snippet.path.endsWith('.code-snippets')) {
|
|
45
45
|
extension.collector.error(( localize(
|
|
46
|
-
|
|
46
|
+
9891,
|
|
47
47
|
"When omitting the language, the value of `contributes.{0}.path` must be a `.code-snippets`-file. Provided value: {1}",
|
|
48
48
|
extension.description.name,
|
|
49
49
|
String(snippet.path)
|
|
@@ -52,7 +52,7 @@ var snippetExt;
|
|
|
52
52
|
}
|
|
53
53
|
if (!isFalsyOrWhitespace(snippet.language) && !languageService.isRegisteredLanguageId(snippet.language)) {
|
|
54
54
|
extension.collector.error(( localize(
|
|
55
|
-
|
|
55
|
+
9892,
|
|
56
56
|
"Unknown language in `contributes.{0}.language`. Provided value: {1}",
|
|
57
57
|
extension.description.name,
|
|
58
58
|
String(snippet.language)
|
|
@@ -63,7 +63,7 @@ var snippetExt;
|
|
|
63
63
|
const snippetLocation = joinPath(extensionLocation, snippet.path);
|
|
64
64
|
if (!isEqualOrParent(snippetLocation, extensionLocation)) {
|
|
65
65
|
extension.collector.error(( localize(
|
|
66
|
-
|
|
66
|
+
9893,
|
|
67
67
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
68
68
|
extension.description.name,
|
|
69
69
|
snippetLocation.path,
|
|
@@ -78,7 +78,7 @@ var snippetExt;
|
|
|
78
78
|
}
|
|
79
79
|
snippetExt.toValidSnippet = toValidSnippet;
|
|
80
80
|
snippetExt.snippetsContribution = {
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(9894, 'Contributes snippets.')),
|
|
82
82
|
type: 'array',
|
|
83
83
|
defaultSnippets: [{ body: [{ language: '', path: '' }] }],
|
|
84
84
|
items: {
|
|
@@ -86,12 +86,12 @@ var snippetExt;
|
|
|
86
86
|
defaultSnippets: [{ body: { language: '${1:id}', path: './snippets/${2:id}.json.' } }],
|
|
87
87
|
properties: {
|
|
88
88
|
language: {
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(9895, 'Language identifier for which this snippet is contributed to.')),
|
|
90
90
|
type: 'string'
|
|
91
91
|
},
|
|
92
92
|
path: {
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
9896,
|
|
95
95
|
'Path of the snippets file. The path is relative to the extension folder and typically starts with \'./snippets/\'.'
|
|
96
96
|
)),
|
|
97
97
|
type: 'string'
|
|
@@ -336,14 +336,14 @@ let SnippetsService = class SnippetsService {
|
|
|
336
336
|
file.load().then(file => {
|
|
337
337
|
if (( file.data.some(snippet => snippet.isBogous))) {
|
|
338
338
|
extension.collector.warn(( localize(
|
|
339
|
-
|
|
339
|
+
9897,
|
|
340
340
|
"One or more snippets from the extension '{0}' very likely confuse snippet-variables and snippet-placeholders (see https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax for more details)",
|
|
341
341
|
extension.description.name
|
|
342
342
|
)));
|
|
343
343
|
}
|
|
344
344
|
}, err => {
|
|
345
345
|
extension.collector.warn(( localize(
|
|
346
|
-
|
|
346
|
+
9898,
|
|
347
347
|
"The snippet file \"{0}\" could not be read.",
|
|
348
348
|
(file.location.toString())
|
|
349
349
|
)));
|
|
@@ -3,16 +3,16 @@ import { localize } from '../../../../nls.js';
|
|
|
3
3
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
4
4
|
import { language } from '../../../../base/common/platform.js';
|
|
5
5
|
|
|
6
|
-
const HasSpeechProvider = ( new RawContextKey('hasSpeechProvider', false, { type: 'boolean', description: ( localize(
|
|
6
|
+
const HasSpeechProvider = ( new RawContextKey('hasSpeechProvider', false, { type: 'boolean', description: ( localize(9902, "A speech provider is registered to the speech service.")) }));
|
|
7
7
|
const SpeechToTextInProgress = ( new RawContextKey(
|
|
8
8
|
'speechToTextInProgress',
|
|
9
9
|
false,
|
|
10
|
-
{ type: 'boolean', description: ( localize(
|
|
10
|
+
{ type: 'boolean', description: ( localize(9903, "A speech-to-text session is in progress.")) }
|
|
11
11
|
));
|
|
12
12
|
const TextToSpeechInProgress = ( new RawContextKey(
|
|
13
13
|
'textToSpeechInProgress',
|
|
14
14
|
false,
|
|
15
|
-
{ type: 'boolean', description: ( localize(
|
|
15
|
+
{ type: 'boolean', description: ( localize(9904, "A text-to-speech session is in progress.")) }
|
|
16
16
|
));
|
|
17
17
|
var SpeechToTextStatus;
|
|
18
18
|
(function (SpeechToTextStatus) {
|
|
@@ -44,82 +44,82 @@ var AccessibilityVoiceSettingId;
|
|
|
44
44
|
const SPEECH_LANGUAGE_CONFIG = AccessibilityVoiceSettingId.SpeechLanguage;
|
|
45
45
|
const SPEECH_LANGUAGES = {
|
|
46
46
|
['da-DK']: {
|
|
47
|
-
name: ( localize(
|
|
47
|
+
name: ( localize(9905, "Danish (Denmark)"))
|
|
48
48
|
},
|
|
49
49
|
['de-DE']: {
|
|
50
|
-
name: ( localize(
|
|
50
|
+
name: ( localize(9906, "German (Germany)"))
|
|
51
51
|
},
|
|
52
52
|
['en-AU']: {
|
|
53
|
-
name: ( localize(
|
|
53
|
+
name: ( localize(9907, "English (Australia)"))
|
|
54
54
|
},
|
|
55
55
|
['en-CA']: {
|
|
56
|
-
name: ( localize(
|
|
56
|
+
name: ( localize(9908, "English (Canada)"))
|
|
57
57
|
},
|
|
58
58
|
['en-GB']: {
|
|
59
|
-
name: ( localize(
|
|
59
|
+
name: ( localize(9909, "English (United Kingdom)"))
|
|
60
60
|
},
|
|
61
61
|
['en-IE']: {
|
|
62
|
-
name: ( localize(
|
|
62
|
+
name: ( localize(9910, "English (Ireland)"))
|
|
63
63
|
},
|
|
64
64
|
['en-IN']: {
|
|
65
|
-
name: ( localize(
|
|
65
|
+
name: ( localize(9911, "English (India)"))
|
|
66
66
|
},
|
|
67
67
|
['en-NZ']: {
|
|
68
|
-
name: ( localize(
|
|
68
|
+
name: ( localize(9912, "English (New Zealand)"))
|
|
69
69
|
},
|
|
70
70
|
['en-US']: {
|
|
71
|
-
name: ( localize(
|
|
71
|
+
name: ( localize(9913, "English (United States)"))
|
|
72
72
|
},
|
|
73
73
|
['es-ES']: {
|
|
74
|
-
name: ( localize(
|
|
74
|
+
name: ( localize(9914, "Spanish (Spain)"))
|
|
75
75
|
},
|
|
76
76
|
['es-MX']: {
|
|
77
|
-
name: ( localize(
|
|
77
|
+
name: ( localize(9915, "Spanish (Mexico)"))
|
|
78
78
|
},
|
|
79
79
|
['fr-CA']: {
|
|
80
|
-
name: ( localize(
|
|
80
|
+
name: ( localize(9916, "French (Canada)"))
|
|
81
81
|
},
|
|
82
82
|
['fr-FR']: {
|
|
83
|
-
name: ( localize(
|
|
83
|
+
name: ( localize(9917, "French (France)"))
|
|
84
84
|
},
|
|
85
85
|
['hi-IN']: {
|
|
86
|
-
name: ( localize(
|
|
86
|
+
name: ( localize(9918, "Hindi (India)"))
|
|
87
87
|
},
|
|
88
88
|
['it-IT']: {
|
|
89
|
-
name: ( localize(
|
|
89
|
+
name: ( localize(9919, "Italian (Italy)"))
|
|
90
90
|
},
|
|
91
91
|
['ja-JP']: {
|
|
92
|
-
name: ( localize(
|
|
92
|
+
name: ( localize(9920, "Japanese (Japan)"))
|
|
93
93
|
},
|
|
94
94
|
['ko-KR']: {
|
|
95
|
-
name: ( localize(
|
|
95
|
+
name: ( localize(9921, "Korean (South Korea)"))
|
|
96
96
|
},
|
|
97
97
|
['nl-NL']: {
|
|
98
|
-
name: ( localize(
|
|
98
|
+
name: ( localize(9922, "Dutch (Netherlands)"))
|
|
99
99
|
},
|
|
100
100
|
['pt-PT']: {
|
|
101
|
-
name: ( localize(
|
|
101
|
+
name: ( localize(9923, "Portuguese (Portugal)"))
|
|
102
102
|
},
|
|
103
103
|
['pt-BR']: {
|
|
104
|
-
name: ( localize(
|
|
104
|
+
name: ( localize(9924, "Portuguese (Brazil)"))
|
|
105
105
|
},
|
|
106
106
|
['ru-RU']: {
|
|
107
|
-
name: ( localize(
|
|
107
|
+
name: ( localize(9925, "Russian (Russia)"))
|
|
108
108
|
},
|
|
109
109
|
['sv-SE']: {
|
|
110
|
-
name: ( localize(
|
|
110
|
+
name: ( localize(9926, "Swedish (Sweden)"))
|
|
111
111
|
},
|
|
112
112
|
['tr-TR']: {
|
|
113
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(9927, "Turkish (Türkiye)"))
|
|
114
114
|
},
|
|
115
115
|
['zh-CN']: {
|
|
116
|
-
name: ( localize(
|
|
116
|
+
name: ( localize(9928, "Chinese (Simplified, China)"))
|
|
117
117
|
},
|
|
118
118
|
['zh-HK']: {
|
|
119
|
-
name: ( localize(
|
|
119
|
+
name: ( localize(9929, "Chinese (Traditional, Hong Kong)"))
|
|
120
120
|
},
|
|
121
121
|
['zh-TW']: {
|
|
122
|
-
name: ( localize(
|
|
122
|
+
name: ( localize(9930, "Chinese (Traditional, Taiwan)"))
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
function speechLanguageConfigToLanguage(config, lang = language) {
|
|
@@ -13,7 +13,7 @@ const taskDefinitionSchema = {
|
|
|
13
13
|
type: {
|
|
14
14
|
type: 'string',
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
10336,
|
|
17
17
|
'The actual task type. Please note that types starting with a \'$\' are reserved for internal usage.'
|
|
18
18
|
))
|
|
19
19
|
},
|
|
@@ -25,7 +25,7 @@ const taskDefinitionSchema = {
|
|
|
25
25
|
},
|
|
26
26
|
properties: {
|
|
27
27
|
type: 'object',
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(10337, 'Additional properties of the task type')),
|
|
29
29
|
additionalProperties: {
|
|
30
30
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
31
31
|
}
|
|
@@ -33,7 +33,7 @@ const taskDefinitionSchema = {
|
|
|
33
33
|
when: {
|
|
34
34
|
type: 'string',
|
|
35
35
|
markdownDescription: ( localize(
|
|
36
|
-
|
|
36
|
+
10338,
|
|
37
37
|
'Condition which must be true to enable this type of task. Consider using `shellExecutionSupported`, `processExecutionSupported`, and `customExecutionSupported` as appropriate for this task definition. See the [API documentation](https://code.visualstudio.com/api/extension-guides/task-provider#when-clause) for more information.'
|
|
38
38
|
)),
|
|
39
39
|
default: ''
|
|
@@ -49,7 +49,7 @@ var Configuration;
|
|
|
49
49
|
const taskType = isString(value.type) ? value.type : undefined;
|
|
50
50
|
if (!taskType || taskType.length === 0) {
|
|
51
51
|
messageCollector.error(( localize(
|
|
52
|
-
|
|
52
|
+
10339,
|
|
53
53
|
'The task type configuration is missing the required \'taskType\' property'
|
|
54
54
|
)));
|
|
55
55
|
return undefined;
|
|
@@ -81,7 +81,7 @@ const taskDefinitionsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
jsonSchema: {
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(10340, 'Contributes task kinds')),
|
|
85
85
|
type: 'array',
|
|
86
86
|
items: taskDefinitionSchema
|
|
87
87
|
}
|
|
@@ -8,9 +8,9 @@ import { TaskDefinitionRegistry } from './taskDefinitionRegistry.js';
|
|
|
8
8
|
import { ConfigurationTarget } from '../../../../platform/configuration/common/configuration.js';
|
|
9
9
|
|
|
10
10
|
const USER_TASKS_GROUP_KEY = 'settings';
|
|
11
|
-
const TASK_RUNNING_STATE = ( new RawContextKey('taskRunning', false, ( localize(
|
|
12
|
-
const TASK_TERMINAL_ACTIVE = ( new RawContextKey('taskTerminalActive', false, ( localize(
|
|
13
|
-
const TASKS_CATEGORY = ( localize2(
|
|
11
|
+
const TASK_RUNNING_STATE = ( new RawContextKey('taskRunning', false, ( localize(10350, "Whether a task is currently running."))));
|
|
12
|
+
const TASK_TERMINAL_ACTIVE = ( new RawContextKey('taskTerminalActive', false, ( localize(10351, "Whether the active terminal is a task terminal."))));
|
|
13
|
+
const TASKS_CATEGORY = ( localize2(10352, "Tasks"));
|
|
14
14
|
var ShellQuoting;
|
|
15
15
|
(function (ShellQuoting) {
|
|
16
16
|
ShellQuoting[ShellQuoting["Escape"] = 1] = "Escape";
|
|
@@ -773,7 +773,7 @@ var TaskDefinition;
|
|
|
773
773
|
break;
|
|
774
774
|
default:
|
|
775
775
|
reporter.error(( localize(
|
|
776
|
-
|
|
776
|
+
10353,
|
|
777
777
|
'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.',
|
|
778
778
|
JSON.stringify(external, undefined, 0),
|
|
779
779
|
property
|
|
@@ -27,19 +27,19 @@ var TestExplorerViewSorting;
|
|
|
27
27
|
TestExplorerViewSorting["ByDuration"] = "duration";
|
|
28
28
|
})(TestExplorerViewSorting || (TestExplorerViewSorting = {}));
|
|
29
29
|
const testStateNames = {
|
|
30
|
-
[TestResultState.Errored]: ( localize(
|
|
31
|
-
[TestResultState.Failed]: ( localize(
|
|
32
|
-
[TestResultState.Passed]: ( localize(
|
|
33
|
-
[TestResultState.Queued]: ( localize(
|
|
34
|
-
[TestResultState.Running]: ( localize(
|
|
35
|
-
[TestResultState.Skipped]: ( localize(
|
|
36
|
-
[TestResultState.Unset]: ( localize(
|
|
30
|
+
[TestResultState.Errored]: ( localize(11326, 'Errored')),
|
|
31
|
+
[TestResultState.Failed]: ( localize(11327, 'Failed')),
|
|
32
|
+
[TestResultState.Passed]: ( localize(11328, 'Passed')),
|
|
33
|
+
[TestResultState.Queued]: ( localize(11329, 'Queued')),
|
|
34
|
+
[TestResultState.Running]: ( localize(11330, 'Running')),
|
|
35
|
+
[TestResultState.Skipped]: ( localize(11331, 'Skipped')),
|
|
36
|
+
[TestResultState.Unset]: ( localize(11332, 'Not yet run')),
|
|
37
37
|
};
|
|
38
|
-
const labelForTestInState = (label, state) => ( localize(
|
|
38
|
+
const labelForTestInState = (label, state) => ( localize(11333, '{0} ({1})', stripIcons(label), testStateNames[state]));
|
|
39
39
|
const testConfigurationGroupNames = {
|
|
40
|
-
[TestRunProfileBitset.Debug]: ( localize(
|
|
41
|
-
[TestRunProfileBitset.Run]: ( localize(
|
|
42
|
-
[TestRunProfileBitset.Coverage]: ( localize(
|
|
40
|
+
[TestRunProfileBitset.Debug]: ( localize(11334, 'Debug')),
|
|
41
|
+
[TestRunProfileBitset.Run]: ( localize(11335, 'Run')),
|
|
42
|
+
[TestRunProfileBitset.Coverage]: ( localize(11336, 'Coverage')),
|
|
43
43
|
};
|
|
44
44
|
var TestCommandId;
|
|
45
45
|
(function (TestCommandId) {
|
|
@@ -46,9 +46,9 @@ var TestRunProfileBitset;
|
|
|
46
46
|
TestRunProfileBitset[TestRunProfileBitset["SupportsContinuousRun"] = 64] = "SupportsContinuousRun";
|
|
47
47
|
})(TestRunProfileBitset || (TestRunProfileBitset = {}));
|
|
48
48
|
const testProfileBitset = {
|
|
49
|
-
[TestRunProfileBitset.Run]: ( localize(
|
|
50
|
-
[TestRunProfileBitset.Debug]: ( localize(
|
|
51
|
-
[TestRunProfileBitset.Coverage]: ( localize(
|
|
49
|
+
[TestRunProfileBitset.Run]: ( localize(11341, 'Run')),
|
|
50
|
+
[TestRunProfileBitset.Debug]: ( localize(11342, 'Debug')),
|
|
51
|
+
[TestRunProfileBitset.Coverage]: ( localize(11343, 'Coverage')),
|
|
52
52
|
};
|
|
53
53
|
const testRunProfileBitsetList = [
|
|
54
54
|
TestRunProfileBitset.Run,
|
|
@@ -164,7 +164,7 @@ class NullDefaultAccountService extends Disposable {
|
|
|
164
164
|
constructor() {
|
|
165
165
|
super({
|
|
166
166
|
id: 'workbench.accounts.actions.signin',
|
|
167
|
-
title: ( localize(
|
|
167
|
+
title: ( localize(12197, "Sign in to {0}", authProviderLabel)),
|
|
168
168
|
menu: {
|
|
169
169
|
id: MenuId.AccountsContext,
|
|
170
170
|
when: ( ContextKeyExpr.and(( CONTEXT_DEFAULT_ACCOUNT_STATE.isEqualTo(DefaultAccountStatus.Unavailable)), ( ContextKeyExpr.has('config.extensions.gallery.serviceUrl')))),
|
|
@@ -81,7 +81,7 @@ class AbstractVariableResolverService {
|
|
|
81
81
|
return normalizeDriveLetter(filePath);
|
|
82
82
|
}
|
|
83
83
|
throw ( new VariableError(variableKind, ( localize(
|
|
84
|
-
|
|
84
|
+
12418,
|
|
85
85
|
"Variable {0} can not be resolved. Please open an editor.",
|
|
86
86
|
replacement.id
|
|
87
87
|
))));
|
|
@@ -95,7 +95,7 @@ class AbstractVariableResolverService {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
throw ( new VariableError(variableKind, ( localize(
|
|
98
|
-
|
|
98
|
+
12419,
|
|
99
99
|
"Variable {0}: can not find workspace folder of '{1}'.",
|
|
100
100
|
replacement.id,
|
|
101
101
|
basename(filePath)
|
|
@@ -108,7 +108,7 @@ class AbstractVariableResolverService {
|
|
|
108
108
|
return folder;
|
|
109
109
|
}
|
|
110
110
|
throw ( new VariableError(variableKind, ( localize(
|
|
111
|
-
|
|
111
|
+
12420,
|
|
112
112
|
"Variable {0} can not be resolved. No such folder '{1}'.",
|
|
113
113
|
variableKind,
|
|
114
114
|
argument
|
|
@@ -119,13 +119,13 @@ class AbstractVariableResolverService {
|
|
|
119
119
|
}
|
|
120
120
|
if (this._context.getWorkspaceFolderCount() > 1) {
|
|
121
121
|
throw ( new VariableError(variableKind, ( localize(
|
|
122
|
-
|
|
122
|
+
12421,
|
|
123
123
|
"Variable {0} can not be resolved in a multi folder workspace. Scope this variable using ':' and a workspace folder name.",
|
|
124
124
|
variableKind
|
|
125
125
|
))));
|
|
126
126
|
}
|
|
127
127
|
throw ( new VariableError(variableKind, ( localize(
|
|
128
|
-
|
|
128
|
+
12422,
|
|
129
129
|
"Variable {0} can not be resolved. Please open a folder.",
|
|
130
130
|
variableKind
|
|
131
131
|
))));
|
|
@@ -142,7 +142,7 @@ class AbstractVariableResolverService {
|
|
|
142
142
|
return '';
|
|
143
143
|
}
|
|
144
144
|
throw ( new VariableError(VariableKind.Env, ( localize(
|
|
145
|
-
|
|
145
|
+
12423,
|
|
146
146
|
"Variable {0} can not be resolved because no environment variable name is given.",
|
|
147
147
|
replacement.id
|
|
148
148
|
))));
|
|
@@ -151,7 +151,7 @@ class AbstractVariableResolverService {
|
|
|
151
151
|
const config = this._context.getConfigurationValue(folderUri, argument);
|
|
152
152
|
if (isUndefinedOrNull(config)) {
|
|
153
153
|
throw ( new VariableError(VariableKind.Config, ( localize(
|
|
154
|
-
|
|
154
|
+
12424,
|
|
155
155
|
"Variable {0} can not be resolved because setting '{1}' not found.",
|
|
156
156
|
replacement.id,
|
|
157
157
|
argument
|
|
@@ -159,7 +159,7 @@ class AbstractVariableResolverService {
|
|
|
159
159
|
}
|
|
160
160
|
if (isObject(config)) {
|
|
161
161
|
throw ( new VariableError(VariableKind.Config, ( localize(
|
|
162
|
-
|
|
162
|
+
12425,
|
|
163
163
|
"Variable {0} can not be resolved because '{1}' is a structured value.",
|
|
164
164
|
replacement.id,
|
|
165
165
|
argument
|
|
@@ -168,7 +168,7 @@ class AbstractVariableResolverService {
|
|
|
168
168
|
return config;
|
|
169
169
|
}
|
|
170
170
|
throw ( new VariableError(VariableKind.Config, ( localize(
|
|
171
|
-
|
|
171
|
+
12426,
|
|
172
172
|
"Variable {0} can not be resolved because no settings name is given.",
|
|
173
173
|
replacement.id
|
|
174
174
|
))));
|
|
@@ -181,7 +181,7 @@ class AbstractVariableResolverService {
|
|
|
181
181
|
const ext = await this._context.getExtension(argument);
|
|
182
182
|
if (!ext) {
|
|
183
183
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, ( localize(
|
|
184
|
-
|
|
184
|
+
12427,
|
|
185
185
|
"Variable {0} can not be resolved because the extension {1} is not installed.",
|
|
186
186
|
replacement.id,
|
|
187
187
|
argument
|
|
@@ -190,7 +190,7 @@ class AbstractVariableResolverService {
|
|
|
190
190
|
return this.fsPath(ext.extensionLocation);
|
|
191
191
|
}
|
|
192
192
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, ( localize(
|
|
193
|
-
|
|
193
|
+
12428,
|
|
194
194
|
"Variable {0} can not be resolved because no extension name is given.",
|
|
195
195
|
replacement.id
|
|
196
196
|
))));
|
|
@@ -218,7 +218,7 @@ class AbstractVariableResolverService {
|
|
|
218
218
|
return environment.userHome;
|
|
219
219
|
}
|
|
220
220
|
throw ( new VariableError(VariableKind.UserHome, ( localize(
|
|
221
|
-
|
|
221
|
+
12429,
|
|
222
222
|
"Variable {0} can not be resolved. UserHome path is not defined",
|
|
223
223
|
replacement.id
|
|
224
224
|
))));
|
|
@@ -228,7 +228,7 @@ class AbstractVariableResolverService {
|
|
|
228
228
|
return lineNumber;
|
|
229
229
|
}
|
|
230
230
|
throw ( new VariableError(VariableKind.LineNumber, ( localize(
|
|
231
|
-
|
|
231
|
+
12430,
|
|
232
232
|
"Variable {0} can not be resolved. Make sure to have a line selected in the active editor.",
|
|
233
233
|
replacement.id
|
|
234
234
|
))));
|
|
@@ -239,7 +239,7 @@ class AbstractVariableResolverService {
|
|
|
239
239
|
return columnNumber;
|
|
240
240
|
}
|
|
241
241
|
throw ( new Error(( localize(
|
|
242
|
-
|
|
242
|
+
12431,
|
|
243
243
|
"Variable {0} can not be resolved. Make sure to have a column selected in the active editor.",
|
|
244
244
|
replacement.id
|
|
245
245
|
))));
|
|
@@ -250,7 +250,7 @@ class AbstractVariableResolverService {
|
|
|
250
250
|
return selectedText;
|
|
251
251
|
}
|
|
252
252
|
throw ( new VariableError(VariableKind.SelectedText, ( localize(
|
|
253
|
-
|
|
253
|
+
12432,
|
|
254
254
|
"Variable {0} can not be resolved. Make sure to have some text selected in the active editor.",
|
|
255
255
|
replacement.id
|
|
256
256
|
))));
|
|
@@ -322,7 +322,7 @@ class AbstractVariableResolverService {
|
|
|
322
322
|
return v;
|
|
323
323
|
}
|
|
324
324
|
throw ( new VariableError(variableKind, ( localize(
|
|
325
|
-
|
|
325
|
+
12433,
|
|
326
326
|
"Variable {0} can not be resolved because the command has no value.",
|
|
327
327
|
match
|
|
328
328
|
))));
|
|
@@ -16,7 +16,7 @@ const editorAssociationsConfigurationNode = {
|
|
|
16
16
|
'workbench.editorAssociations': {
|
|
17
17
|
type: 'object',
|
|
18
18
|
markdownDescription: ( localize(
|
|
19
|
-
|
|
19
|
+
12486,
|
|
20
20
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
21
21
|
)),
|
|
22
22
|
additionalProperties: {
|