@codingame/monaco-vscode-api 22.1.8 → 22.1.9
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/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.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/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/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- 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 +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.9",
|
|
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": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "22.1.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "22.1.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "22.1.9",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "22.1.9",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "22.1.9",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "22.1.9",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "22.1.9",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "22.1.9",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "22.1.9",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
26
26
|
"dompurify": "3.2.7",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.js
CHANGED
|
@@ -403,10 +403,10 @@ export { IInlineCompletionsUnificationService } from './vscode/src/vs/workbench/
|
|
|
403
403
|
export { IMcpGalleryManifestService } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js';
|
|
404
404
|
export { IDataChannelService } from './vscode/src/vs/platform/dataChannel/common/dataChannel.service.js';
|
|
405
405
|
|
|
406
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.105.0-
|
|
407
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.105.0-
|
|
406
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.105.0-7b6857b5-d154-4b57-a230-65dca4744440") {
|
|
407
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.105.0-7b6857b5-d154-4b57-a230-65dca4744440"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
408
408
|
}
|
|
409
|
-
window.monacoVscodeApiBuildId = "1.105.0-
|
|
409
|
+
window.monacoVscodeApiBuildId = "1.105.0-7b6857b5-d154-4b57-a230-65dca4744440";
|
|
410
410
|
function registerCommands(options) {
|
|
411
411
|
function asMenuId(menu) {
|
|
412
412
|
switch (menu) {
|
|
@@ -3,7 +3,7 @@ import { ICodeEditor } from "../../../../editor/browser/editorBrowser.js";
|
|
|
3
3
|
import { Position } from "../../../../editor/common/core/position.js";
|
|
4
4
|
import { IChatEditingSession } from "../../chat/common/chatEditingService.js";
|
|
5
5
|
import { IChatModel } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
6
|
-
import { Session } from "@codingame/monaco-vscode-
|
|
6
|
+
import { Session } from "@codingame/monaco-vscode-ef4149eb-cc74-500f-a75b-c54539f01afa-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession";
|
|
7
7
|
export interface ISessionKeyComputer {
|
|
8
8
|
getComparisonKey(editor: ICodeEditor, uri: URI): string;
|
|
9
9
|
}
|
package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { URI } from "../../../../base/common/uri.js";
|
|
|
6
6
|
import { IActiveCodeEditor, ICodeEditor } from "../../../../editor/browser/editorBrowser.js";
|
|
7
7
|
import { IRange } from "../../../../editor/common/core/range.js";
|
|
8
8
|
import { IValidEditOperation } from "../../../../editor/common/model.js";
|
|
9
|
-
import { Session, StashedSession } from "@codingame/monaco-vscode-
|
|
9
|
+
import { Session, StashedSession } from "@codingame/monaco-vscode-ef4149eb-cc74-500f-a75b-c54539f01afa-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession";
|
|
10
10
|
import { IInlineChatSessionEvent, IInlineChatSessionEndEvent, ISessionKeyComputer, IInlineChatSession2 } from "./inlineChatSessionService.js";
|
|
11
11
|
export declare const IInlineChatSessionService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IInlineChatSessionService>;
|
|
12
12
|
export interface IInlineChatSessionService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "../../../../base/common/event.js";
|
|
2
2
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
3
|
import { URI } from "../../../../base/common/uri.js";
|
|
4
|
-
import { QuickDiffProvider, QuickDiff } from "@codingame/monaco-vscode-
|
|
4
|
+
import { QuickDiffProvider, QuickDiff } from "@codingame/monaco-vscode-ef4149eb-cc74-500f-a75b-c54539f01afa-common/vscode/vs/workbench/contrib/scm/common/quickDiff";
|
|
5
5
|
export declare const IQuickDiffService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IQuickDiffService>;
|
|
6
6
|
export interface IQuickDiffService {
|
|
7
7
|
readonly _serviceBrand: undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URI } from "../../../../base/common/uri.js";
|
|
2
2
|
import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
|
-
import { QuickDiff, QuickDiffProvider } from "@codingame/monaco-vscode-
|
|
3
|
+
import { QuickDiff, QuickDiffProvider } from "@codingame/monaco-vscode-ef4149eb-cc74-500f-a75b-c54539f01afa-common/vscode/vs/workbench/contrib/scm/common/quickDiff";
|
|
4
4
|
import { IQuickDiffService } from "./quickDiff.service.js";
|
|
5
5
|
import { IUriIdentityService } from "../../../../platform/uriIdentity/common/uriIdentity.service.js";
|
|
6
6
|
import { IStorageService } from "../../../../platform/storage/common/storage.service.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(10554, "{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
|
+
10555,
|
|
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(10555, "{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(10571, "Workspace Snippet"));
|
|
211
211
|
}
|
|
212
212
|
else {
|
|
213
213
|
if (this.isGlobalSnippets) {
|
|
214
|
-
source = ( localize(
|
|
214
|
+
source = ( localize(10572, "Global User Snippet"));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
|
-
source = ( localize(
|
|
217
|
+
source = ( localize(10573, "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
|
+
10574,
|
|
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
|
+
10575,
|
|
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
|
+
10576,
|
|
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
|
+
10577,
|
|
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(10578, '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(10579, 'Language identifier for which this snippet is contributed to.')),
|
|
90
90
|
type: 'string'
|
|
91
91
|
},
|
|
92
92
|
path: {
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
10580,
|
|
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
|
+
10581,
|
|
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
|
+
10582,
|
|
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(10586, "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(10587, "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(10588, "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(10589, "Danish (Denmark)"))
|
|
48
48
|
},
|
|
49
49
|
['de-DE']: {
|
|
50
|
-
name: ( localize(
|
|
50
|
+
name: ( localize(10590, "German (Germany)"))
|
|
51
51
|
},
|
|
52
52
|
['en-AU']: {
|
|
53
|
-
name: ( localize(
|
|
53
|
+
name: ( localize(10591, "English (Australia)"))
|
|
54
54
|
},
|
|
55
55
|
['en-CA']: {
|
|
56
|
-
name: ( localize(
|
|
56
|
+
name: ( localize(10592, "English (Canada)"))
|
|
57
57
|
},
|
|
58
58
|
['en-GB']: {
|
|
59
|
-
name: ( localize(
|
|
59
|
+
name: ( localize(10593, "English (United Kingdom)"))
|
|
60
60
|
},
|
|
61
61
|
['en-IE']: {
|
|
62
|
-
name: ( localize(
|
|
62
|
+
name: ( localize(10594, "English (Ireland)"))
|
|
63
63
|
},
|
|
64
64
|
['en-IN']: {
|
|
65
|
-
name: ( localize(
|
|
65
|
+
name: ( localize(10595, "English (India)"))
|
|
66
66
|
},
|
|
67
67
|
['en-NZ']: {
|
|
68
|
-
name: ( localize(
|
|
68
|
+
name: ( localize(10596, "English (New Zealand)"))
|
|
69
69
|
},
|
|
70
70
|
['en-US']: {
|
|
71
|
-
name: ( localize(
|
|
71
|
+
name: ( localize(10597, "English (United States)"))
|
|
72
72
|
},
|
|
73
73
|
['es-ES']: {
|
|
74
|
-
name: ( localize(
|
|
74
|
+
name: ( localize(10598, "Spanish (Spain)"))
|
|
75
75
|
},
|
|
76
76
|
['es-MX']: {
|
|
77
|
-
name: ( localize(
|
|
77
|
+
name: ( localize(10599, "Spanish (Mexico)"))
|
|
78
78
|
},
|
|
79
79
|
['fr-CA']: {
|
|
80
|
-
name: ( localize(
|
|
80
|
+
name: ( localize(10600, "French (Canada)"))
|
|
81
81
|
},
|
|
82
82
|
['fr-FR']: {
|
|
83
|
-
name: ( localize(
|
|
83
|
+
name: ( localize(10601, "French (France)"))
|
|
84
84
|
},
|
|
85
85
|
['hi-IN']: {
|
|
86
|
-
name: ( localize(
|
|
86
|
+
name: ( localize(10602, "Hindi (India)"))
|
|
87
87
|
},
|
|
88
88
|
['it-IT']: {
|
|
89
|
-
name: ( localize(
|
|
89
|
+
name: ( localize(10603, "Italian (Italy)"))
|
|
90
90
|
},
|
|
91
91
|
['ja-JP']: {
|
|
92
|
-
name: ( localize(
|
|
92
|
+
name: ( localize(10604, "Japanese (Japan)"))
|
|
93
93
|
},
|
|
94
94
|
['ko-KR']: {
|
|
95
|
-
name: ( localize(
|
|
95
|
+
name: ( localize(10605, "Korean (South Korea)"))
|
|
96
96
|
},
|
|
97
97
|
['nl-NL']: {
|
|
98
|
-
name: ( localize(
|
|
98
|
+
name: ( localize(10606, "Dutch (Netherlands)"))
|
|
99
99
|
},
|
|
100
100
|
['pt-PT']: {
|
|
101
|
-
name: ( localize(
|
|
101
|
+
name: ( localize(10607, "Portuguese (Portugal)"))
|
|
102
102
|
},
|
|
103
103
|
['pt-BR']: {
|
|
104
|
-
name: ( localize(
|
|
104
|
+
name: ( localize(10608, "Portuguese (Brazil)"))
|
|
105
105
|
},
|
|
106
106
|
['ru-RU']: {
|
|
107
|
-
name: ( localize(
|
|
107
|
+
name: ( localize(10609, "Russian (Russia)"))
|
|
108
108
|
},
|
|
109
109
|
['sv-SE']: {
|
|
110
|
-
name: ( localize(
|
|
110
|
+
name: ( localize(10610, "Swedish (Sweden)"))
|
|
111
111
|
},
|
|
112
112
|
['tr-TR']: {
|
|
113
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(10611, "Turkish (Türkiye)"))
|
|
114
114
|
},
|
|
115
115
|
['zh-CN']: {
|
|
116
|
-
name: ( localize(
|
|
116
|
+
name: ( localize(10612, "Chinese (Simplified, China)"))
|
|
117
117
|
},
|
|
118
118
|
['zh-HK']: {
|
|
119
|
-
name: ( localize(
|
|
119
|
+
name: ( localize(10613, "Chinese (Traditional, Hong Kong)"))
|
|
120
120
|
},
|
|
121
121
|
['zh-TW']: {
|
|
122
|
-
name: ( localize(
|
|
122
|
+
name: ( localize(10614, "Chinese (Traditional, Taiwan)"))
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
function speechLanguageConfigToLanguage(config, lang = language) {
|
|
@@ -3,7 +3,7 @@ import { Codicon } from '../../../../base/common/codicons.js';
|
|
|
3
3
|
import { localize } from '../../../../nls.js';
|
|
4
4
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
5
5
|
|
|
6
|
-
const rerunTaskIcon = registerIcon('rerun-task', Codicon.refresh, ( localize(
|
|
6
|
+
const rerunTaskIcon = registerIcon('rerun-task', Codicon.refresh, ( localize(10823, 'View icon of the rerun task.')));
|
|
7
7
|
const RerunForActiveTerminalCommandId = 'workbench.action.tasks.rerunForActiveTerminal';
|
|
8
8
|
const RerunAllRunningTasksCommandId = 'workbench.action.tasks.rerunAllRunningTasks';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ const taskDefinitionSchema = {
|
|
|
13
13
|
type: {
|
|
14
14
|
type: 'string',
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
11031,
|
|
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(11032, '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
|
+
11033,
|
|
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
|
+
11034,
|
|
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(11035, 'Contributes task kinds')),
|
|
85
85
|
type: 'array',
|
|
86
86
|
items: taskDefinitionSchema
|
|
87
87
|
}
|
|
@@ -9,9 +9,9 @@ import { ConfigurationTarget } from '../../../../platform/configuration/common/c
|
|
|
9
9
|
export { RerunAllRunningTasksCommandId, RerunForActiveTerminalCommandId, rerunTaskIcon } from './constants.js';
|
|
10
10
|
|
|
11
11
|
const USER_TASKS_GROUP_KEY = 'settings';
|
|
12
|
-
const TASK_RUNNING_STATE = ( new RawContextKey('taskRunning', false, ( localize(
|
|
13
|
-
const TASK_TERMINAL_ACTIVE = ( new RawContextKey('taskTerminalActive', false, ( localize(
|
|
14
|
-
const TASKS_CATEGORY = ( localize2(
|
|
12
|
+
const TASK_RUNNING_STATE = ( new RawContextKey('taskRunning', false, ( localize(11046, "Whether a task is currently running."))));
|
|
13
|
+
const TASK_TERMINAL_ACTIVE = ( new RawContextKey('taskTerminalActive', false, ( localize(11047, "Whether the active terminal is a task terminal."))));
|
|
14
|
+
const TASKS_CATEGORY = ( localize2(11048, "Tasks"));
|
|
15
15
|
var ShellQuoting;
|
|
16
16
|
(function (ShellQuoting) {
|
|
17
17
|
ShellQuoting[ShellQuoting["Escape"] = 1] = "Escape";
|
|
@@ -794,7 +794,7 @@ var TaskDefinition;
|
|
|
794
794
|
break;
|
|
795
795
|
default:
|
|
796
796
|
reporter.error(( localize(
|
|
797
|
-
|
|
797
|
+
11049,
|
|
798
798
|
'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.',
|
|
799
799
|
JSON.stringify(external, undefined, 0),
|
|
800
800
|
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(12200, 'Errored')),
|
|
31
|
+
[TestResultState.Failed]: ( localize(12201, 'Failed')),
|
|
32
|
+
[TestResultState.Passed]: ( localize(12202, 'Passed')),
|
|
33
|
+
[TestResultState.Queued]: ( localize(12203, 'Queued')),
|
|
34
|
+
[TestResultState.Running]: ( localize(12204, 'Running')),
|
|
35
|
+
[TestResultState.Skipped]: ( localize(12205, 'Skipped')),
|
|
36
|
+
[TestResultState.Unset]: ( localize(12206, 'Not yet run')),
|
|
37
37
|
};
|
|
38
|
-
const labelForTestInState = (label, state) => ( localize(
|
|
38
|
+
const labelForTestInState = (label, state) => ( localize(12207, '{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(12208, 'Debug')),
|
|
41
|
+
[TestRunProfileBitset.Run]: ( localize(12209, 'Run')),
|
|
42
|
+
[TestRunProfileBitset.Coverage]: ( localize(12210, '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(12215, 'Run')),
|
|
50
|
+
[TestRunProfileBitset.Debug]: ( localize(12216, 'Debug')),
|
|
51
|
+
[TestRunProfileBitset.Coverage]: ( localize(12217, 'Coverage')),
|
|
52
52
|
};
|
|
53
53
|
const testRunProfileBitsetList = [
|
|
54
54
|
TestRunProfileBitset.Run,
|
|
@@ -197,7 +197,7 @@ class NullDefaultAccountService extends Disposable {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: DEFAULT_ACCOUNT_SIGN_IN_COMMAND,
|
|
200
|
-
title: ( localize(
|
|
200
|
+
title: ( localize(13073, "Sign in to {0}", authProviderLabel)),
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
run() {
|
|
@@ -610,7 +610,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
610
610
|
};
|
|
611
611
|
const response = await this.request(defaultChat.entitlementSignupLimitedUrl, 'POST', body, sessions, CancellationToken.None);
|
|
612
612
|
if (!response) {
|
|
613
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
613
|
+
const retry = await this.onUnknownSignUpError(( localize(13230, "No response received.")), '[chat entitlement] sign-up: no response');
|
|
614
614
|
return retry ? this.signUpFree(sessions) : { errorCode: 1 };
|
|
615
615
|
}
|
|
616
616
|
if (response.res.statusCode && response.res.statusCode !== 200) {
|
|
@@ -628,7 +628,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
628
628
|
catch (error) {
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
631
|
+
const retry = await this.onUnknownSignUpError(( localize(13231, "Unexpected status code {0}.", response.res.statusCode)), `[chat entitlement] sign-up: unexpected status code ${response.res.statusCode}`);
|
|
632
632
|
return retry ? this.signUpFree(sessions) : { errorCode: response.res.statusCode };
|
|
633
633
|
}
|
|
634
634
|
let responseText = null;
|
|
@@ -638,7 +638,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
638
638
|
catch (error) {
|
|
639
639
|
}
|
|
640
640
|
if (!responseText) {
|
|
641
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
641
|
+
const retry = await this.onUnknownSignUpError(( localize(13232, "Response has no contents.")), '[chat entitlement] sign-up: response has no content');
|
|
642
642
|
return retry ? this.signUpFree(sessions) : { errorCode: 2 };
|
|
643
643
|
}
|
|
644
644
|
let parsedResult = undefined;
|
|
@@ -647,7 +647,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
647
647
|
this.logService.trace(`[chat entitlement] sign-up: response is ${responseText}`);
|
|
648
648
|
}
|
|
649
649
|
catch (err) {
|
|
650
|
-
const retry = await this.onUnknownSignUpError(( localize(
|
|
650
|
+
const retry = await this.onUnknownSignUpError(( localize(13233, "Invalid response contents.")), `[chat entitlement] sign-up: error parsing response (${err})`);
|
|
651
651
|
return retry ? this.signUpFree(sessions) : { errorCode: 3 };
|
|
652
652
|
}
|
|
653
653
|
this.update({ entitlement: ChatEntitlement.Free });
|
|
@@ -659,11 +659,11 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
659
659
|
const { confirmed } = await this.dialogService.confirm({
|
|
660
660
|
type: Severity$1.Error,
|
|
661
661
|
message: ( localize(
|
|
662
|
-
|
|
662
|
+
13234,
|
|
663
663
|
"An error occurred while signing up for the GitHub Copilot Free plan. Would you like to try again?"
|
|
664
664
|
)),
|
|
665
665
|
detail,
|
|
666
|
-
primaryButton: ( localize(
|
|
666
|
+
primaryButton: ( localize(13235, "Retry"))
|
|
667
667
|
});
|
|
668
668
|
return confirmed;
|
|
669
669
|
}
|
|
@@ -675,17 +675,17 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
|
|
|
675
675
|
this.dialogService.prompt({
|
|
676
676
|
type: Severity$1.Error,
|
|
677
677
|
message: ( localize(
|
|
678
|
-
|
|
678
|
+
13236,
|
|
679
679
|
"An error occurred while signing up for the GitHub Copilot Free plan."
|
|
680
680
|
)),
|
|
681
681
|
detail: logDetails,
|
|
682
682
|
buttons: [
|
|
683
683
|
{
|
|
684
|
-
label: ( localize(
|
|
684
|
+
label: ( localize(13237, "OK")),
|
|
685
685
|
run: () => { }
|
|
686
686
|
},
|
|
687
687
|
{
|
|
688
|
-
label: ( localize(
|
|
688
|
+
label: ( localize(13238, "Learn More")),
|
|
689
689
|
run: () => this.openerService.open(( URI.parse(defaultChat.upgradePlanUrl)))
|
|
690
690
|
}
|
|
691
691
|
]
|