@codingame/monaco-vscode-extensions-service-override 13.0.0 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +28 -76
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +11 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +20 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +13 -13
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IWebExtensionsScannerService, IWorkbenchExtensionEnablementService, IWo
|
|
|
15
15
|
import { IExtensionManifestPropertiesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service";
|
|
16
16
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
17
17
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
18
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
18
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
19
19
|
import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
20
20
|
import { IUserDataInitializationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userData/browser/userDataInit.service";
|
|
21
21
|
import { ExtensionService } from "./vscode/src/vs/workbench/services/extensions/browser/extensionService.js";
|
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { ExtensionManifestPropertiesService } from '@codingame/monaco-vscode-d7f
|
|
|
20
20
|
import { IExtensionManifestPropertiesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service';
|
|
21
21
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
22
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
23
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
23
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
24
24
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
25
25
|
import { IUserDataInitializationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userData/browser/userDataInit.service';
|
|
26
26
|
import { ExtensionsProposedApi } from './vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,81 +15,33 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common": "13.
|
|
19
|
-
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "13.
|
|
20
|
-
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "13.
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common": "13.
|
|
32
|
-
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.
|
|
33
|
-
"@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "13.
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-
|
|
36
|
-
"@codingame/monaco-vscode-
|
|
37
|
-
"@codingame/monaco-vscode-
|
|
38
|
-
"@codingame/monaco-vscode-
|
|
39
|
-
"@codingame/monaco-vscode-
|
|
40
|
-
"@codingame/monaco-vscode-
|
|
41
|
-
"@codingame/monaco-vscode-
|
|
42
|
-
"@codingame/monaco-vscode-
|
|
43
|
-
"@codingame/monaco-vscode-
|
|
44
|
-
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"@codingame/monaco-vscode-api": "13.0.0",
|
|
47
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "13.0.0",
|
|
48
|
-
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": "13.0.0",
|
|
49
|
-
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "13.0.0",
|
|
50
|
-
"@codingame/monaco-vscode-comments-service-override": "13.0.0",
|
|
51
|
-
"@codingame/monaco-vscode-fc985c90-0334-5b62-88bc-73e2efa0b80b-common": "13.0.0",
|
|
52
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "13.0.0",
|
|
53
|
-
"@codingame/monaco-vscode-languages-service-override": "13.0.0",
|
|
54
|
-
"@codingame/monaco-vscode-notebook-service-override": "13.0.0",
|
|
55
|
-
"@codingame/monaco-vscode-terminal-service-override": "13.0.0",
|
|
56
|
-
"@codingame/monaco-vscode-view-common-service-override": "13.0.0",
|
|
57
|
-
"vscode": "npm:@codingame/monaco-vscode-api@13.0.0"
|
|
58
|
-
},
|
|
59
|
-
"peerDependenciesMeta": {
|
|
60
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": {
|
|
61
|
-
"optional": true
|
|
62
|
-
},
|
|
63
|
-
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": {
|
|
64
|
-
"optional": true
|
|
65
|
-
},
|
|
66
|
-
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": {
|
|
67
|
-
"optional": true
|
|
68
|
-
},
|
|
69
|
-
"@codingame/monaco-vscode-comments-service-override": {
|
|
70
|
-
"optional": true
|
|
71
|
-
},
|
|
72
|
-
"@codingame/monaco-vscode-fc985c90-0334-5b62-88bc-73e2efa0b80b-common": {
|
|
73
|
-
"optional": true
|
|
74
|
-
},
|
|
75
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": {
|
|
76
|
-
"optional": true
|
|
77
|
-
},
|
|
78
|
-
"@codingame/monaco-vscode-languages-service-override": {
|
|
79
|
-
"optional": true
|
|
80
|
-
},
|
|
81
|
-
"@codingame/monaco-vscode-notebook-service-override": {
|
|
82
|
-
"optional": true
|
|
83
|
-
},
|
|
84
|
-
"@codingame/monaco-vscode-terminal-service-override": {
|
|
85
|
-
"optional": true
|
|
86
|
-
},
|
|
87
|
-
"@codingame/monaco-vscode-view-common-service-override": {
|
|
88
|
-
"optional": true
|
|
89
|
-
},
|
|
90
|
-
"vscode": {
|
|
91
|
-
"optional": true
|
|
92
|
-
}
|
|
18
|
+
"@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-3607c442-ae7a-594b-b840-038378c24fef-common": "13.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "13.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common": "13.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "13.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "13.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "13.1.0",
|
|
30
|
+
"@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common": "13.1.0",
|
|
31
|
+
"@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common": "13.1.0",
|
|
32
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.1.0",
|
|
33
|
+
"@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "13.1.0",
|
|
34
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
35
|
+
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "13.1.0",
|
|
36
|
+
"@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common": "13.1.0",
|
|
37
|
+
"@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "13.1.0",
|
|
38
|
+
"@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": "13.1.0",
|
|
39
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "13.1.0",
|
|
40
|
+
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "13.1.0",
|
|
41
|
+
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "13.1.0",
|
|
42
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "13.1.0",
|
|
43
|
+
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "13.1.0",
|
|
44
|
+
"@codingame/monaco-vscode-files-service-override": "13.1.0"
|
|
93
45
|
},
|
|
94
46
|
"main": "index.js",
|
|
95
47
|
"module": "index.js",
|
|
@@ -39,7 +39,7 @@ class MainThreadAuthenticationProvider extends Disposable {
|
|
|
39
39
|
}
|
|
40
40
|
async removeSession(sessionId) {
|
|
41
41
|
await this._proxy.$removeSession(this.id, sessionId);
|
|
42
|
-
this.notificationService.info(( localize(
|
|
42
|
+
this.notificationService.info(( localize(2262, "Successfully signed out.")));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
let MainThreadAuthentication = class MainThreadAuthentication extends Disposable {
|
|
@@ -106,7 +106,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
106
106
|
let message;
|
|
107
107
|
if (provider.id.startsWith(INTERNAL_AUTH_PROVIDER_PREFIX)) {
|
|
108
108
|
message = ( localize(
|
|
109
|
-
|
|
109
|
+
2263,
|
|
110
110
|
"The extension '{0}' wants to access the language models provided by {1}.",
|
|
111
111
|
extensionName,
|
|
112
112
|
provider.label
|
|
@@ -115,13 +115,13 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
115
115
|
else {
|
|
116
116
|
message = recreatingSession
|
|
117
117
|
? ( localize(
|
|
118
|
-
|
|
118
|
+
2264,
|
|
119
119
|
"The extension '{0}' wants you to sign in again using {1}.",
|
|
120
120
|
extensionName,
|
|
121
121
|
provider.label
|
|
122
122
|
))
|
|
123
123
|
: ( localize(
|
|
124
|
-
|
|
124
|
+
2265,
|
|
125
125
|
"The extension '{0}' wants to sign in using {1}.",
|
|
126
126
|
extensionName,
|
|
127
127
|
provider.label
|
|
@@ -129,7 +129,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
129
129
|
}
|
|
130
130
|
const buttons = [
|
|
131
131
|
{
|
|
132
|
-
label: ( localize(
|
|
132
|
+
label: ( localize(2266, "&&Allow")),
|
|
133
133
|
run() {
|
|
134
134
|
return true;
|
|
135
135
|
},
|
|
@@ -137,7 +137,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
137
137
|
];
|
|
138
138
|
if (options?.learnMore) {
|
|
139
139
|
buttons.push({
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(2267, "Learn more")),
|
|
141
141
|
run: async () => {
|
|
142
142
|
const result = this.loginPrompt(provider, extensionName, recreatingSession, options);
|
|
143
143
|
await this.openerService.open(URI.revive(options.learnMore), { allowCommands: true });
|
|
@@ -156,9 +156,9 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
156
156
|
}
|
|
157
157
|
async continueWithIncorrectAccountPrompt(chosenAccountLabel, requestedAccountLabel) {
|
|
158
158
|
const result = await this.dialogService.prompt({
|
|
159
|
-
message: ( localize(
|
|
159
|
+
message: ( localize(2268, "Incorrect account detected")),
|
|
160
160
|
detail: ( localize(
|
|
161
|
-
|
|
161
|
+
2269,
|
|
162
162
|
"The chosen account, {0}, does not match the requested account, {1}.",
|
|
163
163
|
chosenAccountLabel,
|
|
164
164
|
requestedAccountLabel
|
|
@@ -167,11 +167,11 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
|
|
|
167
167
|
cancelButton: true,
|
|
168
168
|
buttons: [
|
|
169
169
|
{
|
|
170
|
-
label: ( localize(
|
|
170
|
+
label: ( localize(2270, 'Keep {0}', chosenAccountLabel)),
|
|
171
171
|
run: () => chosenAccountLabel
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
label: ( localize(
|
|
174
|
+
label: ( localize(2271, 'Login with {0}', requestedAccountLabel)),
|
|
175
175
|
run: () => requestedAccountLabel
|
|
176
176
|
}
|
|
177
177
|
],
|
|
@@ -92,7 +92,7 @@ let RemoteExtensionManagementCLI = class RemoteExtensionManagementCLI extends Ex
|
|
|
92
92
|
if (!this._extensionManifestPropertiesService.canExecuteOnWorkspace(manifest)
|
|
93
93
|
&& !(isWeb && this._extensionManifestPropertiesService.canExecuteOnWeb(manifest))) {
|
|
94
94
|
this.logger.info(( localize(
|
|
95
|
-
|
|
95
|
+
2272,
|
|
96
96
|
"Cannot install the '{0}' extension because it is declared to not run in this setup.",
|
|
97
97
|
getExtensionId(manifest.publisher, manifest.name)
|
|
98
98
|
)));
|
|
@@ -102,8 +102,8 @@ export declare class MainThreadCommentController implements ICommentController {
|
|
|
102
102
|
get owner(): string;
|
|
103
103
|
constructor(_proxy: ExtHostCommentsShape, _commentService: ICommentService, _handle: number, _uniqueId: string, _id: string, _label: string, _features: CommentProviderFeatures);
|
|
104
104
|
get activeComment(): {
|
|
105
|
-
thread: languages.CommentThread
|
|
106
|
-
comment?: languages.Comment
|
|
105
|
+
thread: languages.CommentThread;
|
|
106
|
+
comment?: languages.Comment;
|
|
107
107
|
} | undefined;
|
|
108
108
|
private _activeComment;
|
|
109
109
|
setActiveCommentAndThread(commentInfo: {
|
|
@@ -423,7 +423,7 @@ class MainThreadCommentController {
|
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
const commentsViewIcon = registerIcon('comments-view-icon', Codicon.commentDiscussion, ( localize(
|
|
426
|
+
const commentsViewIcon = registerIcon('comments-view-icon', Codicon.commentDiscussion, ( localize(2273, 'View icon of the comments view.')));
|
|
427
427
|
let MainThreadComments = class MainThreadComments extends Disposable {
|
|
428
428
|
constructor(extHostContext, _commentService, _viewsService, _viewDescriptorService, _uriIdentityService, _editorService) {
|
|
429
429
|
super();
|
|
@@ -25,7 +25,7 @@ import { ExtHostContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
25
25
|
import { CustomEditorInput } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
26
26
|
import { ICustomEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
|
|
27
27
|
import { CustomTextEditorModel } from '../../contrib/customEditor/common/customTextEditorModel.js';
|
|
28
|
-
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-
|
|
28
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
29
29
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
30
30
|
import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
31
31
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -297,7 +297,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
297
297
|
if (_editable) {
|
|
298
298
|
this._register(workingCopyService.registerWorkingCopy(this));
|
|
299
299
|
this._register(extensionService.onWillStop(e => {
|
|
300
|
-
e.veto(true, ( localize(
|
|
300
|
+
e.veto(true, ( localize(2274, "A custom editor for '{0}' is open.", this.name)));
|
|
301
301
|
}));
|
|
302
302
|
}
|
|
303
303
|
if (startDirty) {
|
|
@@ -362,7 +362,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
362
362
|
this._undoService.pushElement({
|
|
363
363
|
type: UndoRedoElementType.Resource,
|
|
364
364
|
resource: this._editorResource,
|
|
365
|
-
label: label ?? ( localize(
|
|
365
|
+
label: label ?? ( localize(2275, "Edit")),
|
|
366
366
|
code: 'undoredo.customEditorEdit',
|
|
367
367
|
undo: () => this.undo(),
|
|
368
368
|
redo: () => this.redo(),
|
|
@@ -14,7 +14,7 @@ class ExtHostEditSessionIdentityCreateParticipant {
|
|
|
14
14
|
}
|
|
15
15
|
async participate(workspaceFolder, token) {
|
|
16
16
|
const p = ( new Promise((resolve, reject) => {
|
|
17
|
-
setTimeout(() => reject(( new Error(( localize(
|
|
17
|
+
setTimeout(() => reject(( new Error(( localize(2276, "Aborted onWillCreateEditSessionIdentity-event after 10000ms"))))), this.timeout);
|
|
18
18
|
this._proxy.$onWillCreateEditSessionIdentity(workspaceFolder.uri, token, this.timeout).then(resolve, reject);
|
|
19
19
|
}));
|
|
20
20
|
return raceCancellationError(p, token);
|
|
@@ -19,7 +19,7 @@ import { MergeEditorInput } from '@codingame/monaco-vscode-8ccb7637-50ea-5359-97
|
|
|
19
19
|
import { MultiDiffEditorInput } from '@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
|
|
20
20
|
import { NotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
21
21
|
import { TerminalEditorInput } from '@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput';
|
|
22
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
22
|
+
import { WebviewInput } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
23
23
|
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
24
24
|
import { GroupDirection, preferredSideBySideGroupDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
25
25
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -89,13 +89,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
89
89
|
this._notificationService.notify({
|
|
90
90
|
severity: Severity.Error,
|
|
91
91
|
message: ( localize(
|
|
92
|
-
|
|
92
|
+
2277,
|
|
93
93
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension, which is not loaded. Would you like to reload the window to load the extension?",
|
|
94
94
|
extName,
|
|
95
95
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
96
96
|
)),
|
|
97
97
|
actions: {
|
|
98
|
-
primary: [( new Action('reload', ( localize(
|
|
98
|
+
primary: [( new Action('reload', ( localize(2278, "Reload Window")), '', true, () => this._hostService.reload()))]
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -105,7 +105,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
105
105
|
this._notificationService.notify({
|
|
106
106
|
severity: Severity.Error,
|
|
107
107
|
message: ( localize(
|
|
108
|
-
|
|
108
|
+
2279,
|
|
109
109
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is not supported in the current workspace",
|
|
110
110
|
extName,
|
|
111
111
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
@@ -116,13 +116,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
116
116
|
this._notificationService.notify({
|
|
117
117
|
severity: Severity.Error,
|
|
118
118
|
message: ( localize(
|
|
119
|
-
|
|
119
|
+
2280,
|
|
120
120
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is not supported in Restricted Mode",
|
|
121
121
|
extName,
|
|
122
122
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
123
123
|
)),
|
|
124
124
|
actions: {
|
|
125
|
-
primary: [( new Action('manageWorkspaceTrust', ( localize(
|
|
125
|
+
primary: [( new Action('manageWorkspaceTrust', ( localize(2281, "Manage Workspace Trust")), '', true, () => this._commandService.executeCommand('workbench.trust.manage')))]
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
@@ -130,13 +130,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
130
130
|
this._notificationService.notify({
|
|
131
131
|
severity: Severity.Error,
|
|
132
132
|
message: ( localize(
|
|
133
|
-
|
|
133
|
+
2282,
|
|
134
134
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is disabled. Would you like to enable the extension and reload the window?",
|
|
135
135
|
extName,
|
|
136
136
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
137
137
|
)),
|
|
138
138
|
actions: {
|
|
139
|
-
primary: [( new Action('enable', ( localize(
|
|
139
|
+
primary: [( new Action('enable', ( localize(2283, "Enable and Reload")), '', true, () => this._extensionEnablementService.setEnablement([missingInstalledDependency], enablementState === EnablementState.DisabledGlobally ? EnablementState.EnabledGlobally : EnablementState.EnabledWorkspace)
|
|
140
140
|
.then(() => this._hostService.reload(), e => this._notificationService.error(e))))]
|
|
141
141
|
}
|
|
142
142
|
});
|
|
@@ -145,7 +145,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
145
145
|
this._notificationService.notify({
|
|
146
146
|
severity: Severity.Error,
|
|
147
147
|
message: ( localize(
|
|
148
|
-
|
|
148
|
+
2284,
|
|
149
149
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is disabled.",
|
|
150
150
|
extName,
|
|
151
151
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
@@ -166,21 +166,21 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
166
166
|
this._notificationService.notify({
|
|
167
167
|
severity: Severity.Error,
|
|
168
168
|
message: ( localize(
|
|
169
|
-
|
|
169
|
+
2285,
|
|
170
170
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension from '{2}', which is not installed. Would you like to install the extension and reload the window?",
|
|
171
171
|
extName,
|
|
172
172
|
dependencyExtension.displayName,
|
|
173
173
|
dependencyExtension.publisherDisplayName
|
|
174
174
|
)),
|
|
175
175
|
actions: {
|
|
176
|
-
primary: [( new Action('install', ( localize(
|
|
176
|
+
primary: [( new Action('install', ( localize(2286, "Install and Reload")), '', true, () => this._extensionsWorkbenchService.install(dependencyExtension)
|
|
177
177
|
.then(() => this._hostService.reload(), e => this._notificationService.error(e))))]
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
182
|
this._notificationService.error(( localize(
|
|
183
|
-
|
|
183
|
+
2287,
|
|
184
184
|
"Cannot activate the '{0}' extension because it depends on an unknown '{1}' extension.",
|
|
185
185
|
extName,
|
|
186
186
|
missingDependency
|
|
@@ -75,28 +75,28 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
|
|
|
75
75
|
if (data.extensionNames.length === 1) {
|
|
76
76
|
if (operation === FileOperation.CREATE) {
|
|
77
77
|
message = ( localize(
|
|
78
|
-
|
|
78
|
+
2288,
|
|
79
79
|
"Extension '{0}' wants to make refactoring changes with this file creation",
|
|
80
80
|
data.extensionNames[0]
|
|
81
81
|
));
|
|
82
82
|
}
|
|
83
83
|
else if (operation === FileOperation.COPY) {
|
|
84
84
|
message = ( localize(
|
|
85
|
-
|
|
85
|
+
2289,
|
|
86
86
|
"Extension '{0}' wants to make refactoring changes with this file copy",
|
|
87
87
|
data.extensionNames[0]
|
|
88
88
|
));
|
|
89
89
|
}
|
|
90
90
|
else if (operation === FileOperation.MOVE) {
|
|
91
91
|
message = ( localize(
|
|
92
|
-
|
|
92
|
+
2290,
|
|
93
93
|
"Extension '{0}' wants to make refactoring changes with this file move",
|
|
94
94
|
data.extensionNames[0]
|
|
95
95
|
));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
98
|
message = ( localize(
|
|
99
|
-
|
|
99
|
+
2291,
|
|
100
100
|
"Extension '{0}' wants to make refactoring changes with this file deletion",
|
|
101
101
|
data.extensionNames[0]
|
|
102
102
|
));
|
|
@@ -105,28 +105,28 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
|
|
|
105
105
|
else {
|
|
106
106
|
if (operation === FileOperation.CREATE) {
|
|
107
107
|
message = ( localize(
|
|
108
|
-
|
|
108
|
+
2292,
|
|
109
109
|
"{0} extensions want to make refactoring changes with this file creation",
|
|
110
110
|
data.extensionNames.length
|
|
111
111
|
));
|
|
112
112
|
}
|
|
113
113
|
else if (operation === FileOperation.COPY) {
|
|
114
114
|
message = ( localize(
|
|
115
|
-
|
|
115
|
+
2293,
|
|
116
116
|
"{0} extensions want to make refactoring changes with this file copy",
|
|
117
117
|
data.extensionNames.length
|
|
118
118
|
));
|
|
119
119
|
}
|
|
120
120
|
else if (operation === FileOperation.MOVE) {
|
|
121
121
|
message = ( localize(
|
|
122
|
-
|
|
122
|
+
2294,
|
|
123
123
|
"{0} extensions want to make refactoring changes with this file move",
|
|
124
124
|
data.extensionNames.length
|
|
125
125
|
));
|
|
126
126
|
}
|
|
127
127
|
else {
|
|
128
128
|
message = ( localize(
|
|
129
|
-
|
|
129
|
+
2295,
|
|
130
130
|
"{0} extensions want to make refactoring changes with this file deletion",
|
|
131
131
|
data.extensionNames.length
|
|
132
132
|
));
|
|
@@ -136,8 +136,8 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
|
|
|
136
136
|
const { confirmed } = await dialogService.confirm({
|
|
137
137
|
type: Severity.Info,
|
|
138
138
|
message,
|
|
139
|
-
primaryButton: ( localize(
|
|
140
|
-
cancelButton: ( localize(
|
|
139
|
+
primaryButton: ( localize(2296, "Show &&Preview")),
|
|
140
|
+
cancelButton: ( localize(2297, "Skip Changes"))
|
|
141
141
|
});
|
|
142
142
|
showPreview = true;
|
|
143
143
|
if (!confirmed) {
|
|
@@ -156,19 +156,19 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
|
|
|
156
156
|
message,
|
|
157
157
|
buttons: [
|
|
158
158
|
{
|
|
159
|
-
label: ( localize(
|
|
159
|
+
label: ( localize(2298, "&&OK")),
|
|
160
160
|
run: () => Choice.OK
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
label: ( localize(
|
|
163
|
+
label: ( localize(2296, "Show &&Preview")),
|
|
164
164
|
run: () => Choice.Preview
|
|
165
165
|
}
|
|
166
166
|
],
|
|
167
167
|
cancelButton: {
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(2297, "Skip Changes")),
|
|
169
169
|
run: () => Choice.Cancel
|
|
170
170
|
},
|
|
171
|
-
checkbox: { label: ( localize(
|
|
171
|
+
checkbox: { label: ( localize(2299, "Do not ask me again")) }
|
|
172
172
|
});
|
|
173
173
|
if (result === Choice.Cancel) {
|
|
174
174
|
return;
|
|
@@ -185,15 +185,15 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
|
|
|
185
185
|
_progressLabel(operation) {
|
|
186
186
|
switch (operation) {
|
|
187
187
|
case FileOperation.CREATE:
|
|
188
|
-
return localize(
|
|
188
|
+
return localize(2300, "Running 'File Create' participants...");
|
|
189
189
|
case FileOperation.MOVE:
|
|
190
|
-
return localize(
|
|
190
|
+
return localize(2301, "Running 'File Rename' participants...");
|
|
191
191
|
case FileOperation.COPY:
|
|
192
|
-
return localize(
|
|
192
|
+
return localize(2302, "Running 'File Copy' participants...");
|
|
193
193
|
case FileOperation.DELETE:
|
|
194
|
-
return localize(
|
|
194
|
+
return localize(2303, "Running 'File Delete' participants...");
|
|
195
195
|
case FileOperation.WRITE:
|
|
196
|
-
return localize(
|
|
196
|
+
return localize(2304, "Running 'File Write' participants...");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
});
|
|
@@ -264,7 +264,7 @@ registerAction2(class ResetMemento extends Action2 {
|
|
|
264
264
|
super({
|
|
265
265
|
id: 'files.participants.resetChoice',
|
|
266
266
|
title: {
|
|
267
|
-
value: ( localize(
|
|
267
|
+
value: ( localize(2305, "Reset choice for 'File operation needs preview'")),
|
|
268
268
|
original: `Reset choice for 'File operation needs preview'`
|
|
269
269
|
},
|
|
270
270
|
f1: true
|
|
@@ -135,7 +135,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
|
|
|
135
135
|
if (this._authenticationService.getProviderIds().includes(authProviderId)) {
|
|
136
136
|
return Disposable.None;
|
|
137
137
|
}
|
|
138
|
-
const accountLabel = auth.accountLabel ?? ( localize(
|
|
138
|
+
const accountLabel = auth.accountLabel ?? ( localize(2306, 'Language Models'));
|
|
139
139
|
const disposables = ( new DisposableStore());
|
|
140
140
|
this._authenticationService.registerAuthenticationProvider(authProviderId, ( new LanguageModelAccessAuthProvider(authProviderId, auth.providerLabel, accountLabel)));
|
|
141
141
|
disposables.add(toDisposable(() => {
|
|
@@ -51,13 +51,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
if (!source) {
|
|
54
|
-
source = ( localize(
|
|
54
|
+
source = ( localize(2307, "Extension"));
|
|
55
55
|
}
|
|
56
56
|
const secondaryActions = [];
|
|
57
57
|
if (options.source) {
|
|
58
58
|
secondaryActions.push(toAction({
|
|
59
59
|
id: options.source.identifier.value,
|
|
60
|
-
label: ( localize(
|
|
60
|
+
label: ( localize(2308, "Manage Extension")),
|
|
61
61
|
run: () => {
|
|
62
62
|
return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
|
|
63
63
|
}
|
|
@@ -92,13 +92,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
92
92
|
if (!cancelButton) {
|
|
93
93
|
if (buttons.length > 0) {
|
|
94
94
|
cancelButton = {
|
|
95
|
-
label: ( localize(
|
|
95
|
+
label: ( localize(2309, "Cancel")),
|
|
96
96
|
run: () => undefined
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
cancelButton = {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(2310, "&&OK")),
|
|
102
102
|
run: () => undefined
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as extHostProtocol from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
2
|
import * as notebookCommon from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
3
|
-
import { ICellExecuteUpdate, ICellExecutionComplete } from "@codingame/monaco-vscode-
|
|
3
|
+
import { ICellExecuteUpdate, ICellExecutionComplete } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
4
4
|
export declare namespace NotebookDto {
|
|
5
5
|
function toNotebookOutputItemDto(item: notebookCommon.IOutputItemDto): extHostProtocol.NotebookOutputItemDto;
|
|
6
6
|
function toNotebookOutputDto(output: notebookCommon.IOutputDto): extHostProtocol.NotebookOutputDto;
|
|
@@ -10,7 +10,7 @@ import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/
|
|
|
10
10
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
11
11
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
12
12
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
13
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
13
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
14
14
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
15
15
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
16
16
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -18,7 +18,7 @@ class ExtHostNotebookDocumentSaveParticipant {
|
|
|
18
18
|
}
|
|
19
19
|
let _warningTimeout;
|
|
20
20
|
const p = ( new Promise((resolve, reject) => {
|
|
21
|
-
_warningTimeout = setTimeout(() => reject(( new Error(( localize(
|
|
21
|
+
_warningTimeout = setTimeout(() => reject(( new Error(( localize(2311, "Aborted onWillSaveNotebookDocument-event after 1750ms"))))), 1750);
|
|
22
22
|
this._proxy.$participateInSave(workingCopy.resource, context.reason, token).then(_ => {
|
|
23
23
|
clearTimeout(_warningTimeout);
|
|
24
24
|
return undefined;
|
|
@@ -69,11 +69,11 @@ let MainThreadOutputService = class MainThreadOutputService extends Disposable {
|
|
|
69
69
|
}
|
|
70
70
|
_showChannelQuietly(channel) {
|
|
71
71
|
const statusProperties = {
|
|
72
|
-
name: ( localize(
|
|
72
|
+
name: ( localize(2312, "Show Output")),
|
|
73
73
|
text: '$(output)',
|
|
74
|
-
ariaLabel: ( localize(
|
|
74
|
+
ariaLabel: ( localize(2313, "Show {0} Output Channel", channel.label)),
|
|
75
75
|
command: `workbench.action.output.show.${channel.id}`,
|
|
76
|
-
tooltip: ( localize(
|
|
76
|
+
tooltip: ( localize(2314, "Show {0} Output Channel", channel.label)),
|
|
77
77
|
kind: 'prominent'
|
|
78
78
|
};
|
|
79
79
|
if (!this._outputStatusItem.value) {
|
|
@@ -32,7 +32,7 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
32
32
|
const notificationOptions = {
|
|
33
33
|
...options,
|
|
34
34
|
location: ProgressLocation.Notification,
|
|
35
|
-
secondaryActions: [( new ManageExtensionAction(extensionId, ( localize(
|
|
35
|
+
secondaryActions: [( new ManageExtensionAction(extensionId, ( localize(2315, "Manage Extension")), this._commandService))]
|
|
36
36
|
};
|
|
37
37
|
options = notificationOptions;
|
|
38
38
|
}
|
|
@@ -17,7 +17,7 @@ class ExtHostSaveParticipant {
|
|
|
17
17
|
return undefined;
|
|
18
18
|
}
|
|
19
19
|
const p = ( new Promise((resolve, reject) => {
|
|
20
|
-
setTimeout(() => reject(( new Error(( localize(
|
|
20
|
+
setTimeout(() => reject(( new Error(( localize(2316, "Aborted onWillSaveTextDocument-event after 1750ms"))))), 1750);
|
|
21
21
|
this._proxy.$participateInSave(editorModel.resource, context.reason).then(values => {
|
|
22
22
|
if (!values.every(success => success)) {
|
|
23
23
|
return Promise.reject(( new Error('listener failed')));
|
|
@@ -3,7 +3,7 @@ import { IExtHostContext } from "../../services/extensions/common/extHostCustome
|
|
|
3
3
|
import { MainThreadSecretStateShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
4
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
5
|
import { ISecretStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/secrets/common/secrets.service";
|
|
6
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
6
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
7
7
|
export declare class MainThreadSecretState extends Disposable implements MainThreadSecretStateShape {
|
|
8
8
|
private readonly secretStorageService;
|
|
9
9
|
private readonly logService;
|
|
@@ -6,7 +6,7 @@ import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode
|
|
|
6
6
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
7
7
|
import { SequencerByKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
8
8
|
import { ISecretStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/secrets/common/secrets.service';
|
|
9
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
9
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
10
10
|
|
|
11
11
|
let MainThreadSecretState = class MainThreadSecretState extends Disposable {
|
|
12
12
|
constructor(extHostContext, secretStorageService, logService, environmentService) {
|
|
@@ -378,7 +378,7 @@ var TaskDTO;
|
|
|
378
378
|
}
|
|
379
379
|
command.presentation = TaskPresentationOptionsDTO.to(task.presentationOptions);
|
|
380
380
|
const source = TaskSourceDTO.to(task.source, workspace);
|
|
381
|
-
const label = ( localize(
|
|
381
|
+
const label = ( localize(2317, '{0}: {1}', source.label, task.name));
|
|
382
382
|
const definition = TaskDefinitionDTO.to(task.definition, executeOnly);
|
|
383
383
|
const id = (CustomExecutionDTO.is(task.execution) && task._id) ? task._id : `${task.source.extensionId}.${definition._key}`;
|
|
384
384
|
const result = ( new ContributedTask(
|
|
@@ -112,13 +112,13 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
|
|
|
112
112
|
}
|
|
113
113
|
async elevationPrompt(tunnelOptions, tunnel, source) {
|
|
114
114
|
return this.notificationService.prompt(Severity.Info, ( localize(
|
|
115
|
-
|
|
115
|
+
2318,
|
|
116
116
|
"The extension {0} has forwarded port {1}. You'll need to run as superuser to use port {2} locally.",
|
|
117
117
|
source,
|
|
118
118
|
tunnelOptions.remoteAddress.port,
|
|
119
119
|
tunnelOptions.localAddressPort
|
|
120
120
|
)), [{
|
|
121
|
-
label: ( localize(
|
|
121
|
+
label: ( localize(2319, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
|
|
122
122
|
run: async () => {
|
|
123
123
|
this.elevateionRetry = true;
|
|
124
124
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
@@ -52,7 +52,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
|
|
|
52
52
|
}
|
|
53
53
|
catch (e) {
|
|
54
54
|
if (!isCancellationError(e)) {
|
|
55
|
-
const openDefaultAction = ( new Action('default', ( localize(
|
|
55
|
+
const openDefaultAction = ( new Action('default', ( localize(2320, "Open using default opener")), undefined, undefined, async () => {
|
|
56
56
|
await this.openerService.open(uri, {
|
|
57
57
|
allowTunneling: false,
|
|
58
58
|
allowContributedOpeners: defaultExternalUriOpenerId,
|
|
@@ -61,7 +61,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
|
|
|
61
61
|
openDefaultAction.tooltip = ( uri.toString());
|
|
62
62
|
this.notificationService.notify({
|
|
63
63
|
severity: Severity.Error,
|
|
64
|
-
message: ( localize(
|
|
64
|
+
message: ( localize(2321, 'Could not open uri with \'{0}\': {1}', id, (e.toString()))),
|
|
65
65
|
actions: {
|
|
66
66
|
primary: [
|
|
67
67
|
openDefaultAction
|
|
@@ -4,7 +4,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
4
4
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
5
5
|
import { MainThreadWebviews } from "./mainThreadWebviews.js";
|
|
6
6
|
import * as extHostProtocol from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
7
|
-
import { WebviewInput } from "@codingame/monaco-vscode-
|
|
7
|
+
import { WebviewInput } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
8
8
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
9
9
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
10
10
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -11,8 +11,8 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
11
11
|
import { reviveWebviewExtension, reviveWebviewContentOptions } from './mainThreadWebviews.js';
|
|
12
12
|
import { ExtHostContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
13
13
|
import { DiffEditorInput } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
14
|
-
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-
|
|
15
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
14
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
15
|
+
import { WebviewInput } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
16
16
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
17
17
|
import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
18
18
|
import { GroupsOrder, GroupLocation, preferredSideBySideGroupDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
@@ -3,7 +3,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
3
3
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
4
4
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
5
5
|
import * as extHostProtocol from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
|
-
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-
|
|
6
|
+
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
7
7
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
8
8
|
export declare class MainThreadWebviews extends Disposable implements extHostProtocol.MainThreadWebviewsShape {
|
|
9
9
|
private readonly _openerService;
|
|
@@ -104,7 +104,7 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
|
|
|
104
104
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
|
105
105
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none';">
|
|
106
106
|
</head>
|
|
107
|
-
<body>${( localize(
|
|
107
|
+
<body>${( localize(2322, "An error occurred while loading view: {0}", escape(viewType)))}</body>
|
|
108
108
|
</html>`;
|
|
109
109
|
}
|
|
110
110
|
};
|
|
@@ -77,11 +77,11 @@ let MainThreadWorkspace = class MainThreadWorkspace {
|
|
|
77
77
|
const wantsToDelete = removeCount > 0;
|
|
78
78
|
if (wantsToAdd && !wantsToDelete) {
|
|
79
79
|
if (addCount === 1) {
|
|
80
|
-
message = ( localize(
|
|
80
|
+
message = ( localize(2323, "Extension '{0}' added 1 folder to the workspace", extensionName));
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
83
|
message = ( localize(
|
|
84
|
-
|
|
84
|
+
2324,
|
|
85
85
|
"Extension '{0}' added {1} folders to the workspace",
|
|
86
86
|
extensionName,
|
|
87
87
|
addCount
|
|
@@ -90,11 +90,11 @@ let MainThreadWorkspace = class MainThreadWorkspace {
|
|
|
90
90
|
}
|
|
91
91
|
else if (wantsToDelete && !wantsToAdd) {
|
|
92
92
|
if (removeCount === 1) {
|
|
93
|
-
message = ( localize(
|
|
93
|
+
message = ( localize(2325, "Extension '{0}' removed 1 folder from the workspace", extensionName));
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
message = ( localize(
|
|
97
|
-
|
|
97
|
+
2326,
|
|
98
98
|
"Extension '{0}' removed {1} folders from the workspace",
|
|
99
99
|
extensionName,
|
|
100
100
|
removeCount
|
|
@@ -102,7 +102,7 @@ let MainThreadWorkspace = class MainThreadWorkspace {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
|
-
message = ( localize(
|
|
105
|
+
message = ( localize(2327, "Extension '{0}' changed folders of the workspace", extensionName));
|
|
106
106
|
}
|
|
107
107
|
return message;
|
|
108
108
|
}
|
|
@@ -48,7 +48,7 @@ let CustomTextEditorModel = CustomTextEditorModel_1 = class CustomTextEditorMode
|
|
|
48
48
|
}
|
|
49
49
|
}));
|
|
50
50
|
this._register(extensionService.onWillStop(e => {
|
|
51
|
-
e.veto(true, ( localize(
|
|
51
|
+
e.veto(true, ( localize(4941, "A custom text editor for '{0}' is open.", this.resource.path)));
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
54
54
|
get resource() {
|
|
@@ -140,11 +140,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
140
140
|
}
|
|
141
141
|
_showBisectPrompt() {
|
|
142
142
|
const goodPrompt = {
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(11411, "I can't reproduce")),
|
|
144
144
|
run: () => this._commandService.executeCommand('extension.bisect.next', false)
|
|
145
145
|
};
|
|
146
146
|
const badPrompt = {
|
|
147
|
-
label: ( localize(
|
|
147
|
+
label: ( localize(11412, "I can reproduce")),
|
|
148
148
|
run: () => this._commandService.executeCommand('extension.bisect.next', true)
|
|
149
149
|
};
|
|
150
150
|
const stop = {
|
|
@@ -153,11 +153,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
153
153
|
};
|
|
154
154
|
const message = this._extensionBisectService.disabledCount === 1
|
|
155
155
|
? ( localize(
|
|
156
|
-
|
|
156
|
+
11413,
|
|
157
157
|
"Extension Bisect is active and has disabled 1 extension. Check if you can still reproduce the problem and proceed by selecting from these options."
|
|
158
158
|
))
|
|
159
159
|
: ( localize(
|
|
160
|
-
|
|
160
|
+
11414,
|
|
161
161
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
162
162
|
this._extensionBisectService.disabledCount
|
|
163
163
|
));
|
|
@@ -175,7 +175,7 @@ registerAction2(class extends Action2 {
|
|
|
175
175
|
constructor() {
|
|
176
176
|
super({
|
|
177
177
|
id: 'extension.bisect.start',
|
|
178
|
-
title: ( localize2(
|
|
178
|
+
title: ( localize2(11415, 'Start Extension Bisect')),
|
|
179
179
|
category: Categories.Help,
|
|
180
180
|
f1: true,
|
|
181
181
|
precondition: ( ExtensionBisectUi.ctxIsBisectActive.negate()),
|
|
@@ -195,13 +195,13 @@ registerAction2(class extends Action2 {
|
|
|
195
195
|
const extensionsBisect = accessor.get(IExtensionBisectService);
|
|
196
196
|
const extensions = (await extensionManagement.getInstalled(ExtensionType.User)).filter(ext => extensionEnablementService.isEnabled(ext));
|
|
197
197
|
const res = await dialogService.confirm({
|
|
198
|
-
message: ( localize(
|
|
198
|
+
message: ( localize(11416, "Extension Bisect")),
|
|
199
199
|
detail: ( localize(
|
|
200
|
-
|
|
200
|
+
11417,
|
|
201
201
|
"Extension Bisect will use binary search to find an extension that causes a problem. During the process the window reloads repeatedly (~{0} times). Each time you must confirm if you are still seeing problems.",
|
|
202
202
|
2 + Math.log2(extensions.length) | 0
|
|
203
203
|
)),
|
|
204
|
-
primaryButton: ( localize(
|
|
204
|
+
primaryButton: ( localize(11418, "&&Start Extension Bisect"))
|
|
205
205
|
});
|
|
206
206
|
if (res.confirmed) {
|
|
207
207
|
await extensionsBisect.start(extensions);
|
|
@@ -213,7 +213,7 @@ registerAction2(class extends Action2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: 'extension.bisect.next',
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(11419, 'Continue Extension Bisect')),
|
|
217
217
|
category: Categories.Help,
|
|
218
218
|
f1: true,
|
|
219
219
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -247,8 +247,8 @@ registerAction2(class extends Action2 {
|
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
if (done.bad) {
|
|
250
|
-
await dialogService.info(( localize(
|
|
251
|
-
|
|
250
|
+
await dialogService.info(( localize(11420, "Extension Bisect")), ( localize(
|
|
251
|
+
11421,
|
|
252
252
|
"Extension Bisect is done but no extension has been identified. This might be a problem with {0}.",
|
|
253
253
|
productService.nameShort
|
|
254
254
|
)));
|
|
@@ -256,15 +256,15 @@ registerAction2(class extends Action2 {
|
|
|
256
256
|
else {
|
|
257
257
|
const res = await dialogService.confirm({
|
|
258
258
|
type: Severity.Info,
|
|
259
|
-
message: ( localize(
|
|
260
|
-
primaryButton: ( localize(
|
|
261
|
-
cancelButton: ( localize(
|
|
259
|
+
message: ( localize(11420, "Extension Bisect")),
|
|
260
|
+
primaryButton: ( localize(11422, "&&Report Issue & Continue")),
|
|
261
|
+
cancelButton: ( localize(11423, "Continue")),
|
|
262
262
|
detail: ( localize(
|
|
263
|
-
|
|
263
|
+
11424,
|
|
264
264
|
"Extension Bisect is done and has identified {0} as the extension causing the problem.",
|
|
265
265
|
done.id
|
|
266
266
|
)),
|
|
267
|
-
checkbox: { label: ( localize(
|
|
267
|
+
checkbox: { label: ( localize(11425, "Keep this extension disabled")), checked: true }
|
|
268
268
|
});
|
|
269
269
|
if (res.checkboxChecked) {
|
|
270
270
|
await extensionEnablementService.disableExtension({ id: done.id }, undefined);
|
|
@@ -279,28 +279,28 @@ registerAction2(class extends Action2 {
|
|
|
279
279
|
async _checkForBad(dialogService, bisectService) {
|
|
280
280
|
const { result } = await dialogService.prompt({
|
|
281
281
|
type: Severity.Info,
|
|
282
|
-
message: ( localize(
|
|
282
|
+
message: ( localize(11426, "Extension Bisect")),
|
|
283
283
|
detail: ( localize(
|
|
284
|
-
|
|
284
|
+
11427,
|
|
285
285
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
286
286
|
bisectService.disabledCount
|
|
287
287
|
)),
|
|
288
288
|
buttons: [
|
|
289
289
|
{
|
|
290
|
-
label: ( localize(
|
|
290
|
+
label: ( localize(11428, "I ca&&n't reproduce")),
|
|
291
291
|
run: () => false
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
label: ( localize(
|
|
294
|
+
label: ( localize(11429, "I can &&reproduce")),
|
|
295
295
|
run: () => true
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
label: ( localize(
|
|
298
|
+
label: ( localize(11430, "&&Stop Bisect")),
|
|
299
299
|
run: () => undefined
|
|
300
300
|
}
|
|
301
301
|
],
|
|
302
302
|
cancelButton: {
|
|
303
|
-
label: ( localize(
|
|
303
|
+
label: ( localize(11431, "&&Cancel Bisect")),
|
|
304
304
|
run: () => null
|
|
305
305
|
}
|
|
306
306
|
});
|
|
@@ -311,7 +311,7 @@ registerAction2(class extends Action2 {
|
|
|
311
311
|
constructor() {
|
|
312
312
|
super({
|
|
313
313
|
id: 'extension.bisect.stop',
|
|
314
|
-
title: ( localize2(
|
|
314
|
+
title: ( localize2(11432, 'Stop Extension Bisect')),
|
|
315
315
|
category: Categories.Help,
|
|
316
316
|
f1: true,
|
|
317
317
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -13,7 +13,7 @@ import { IRemoteExtensionsScannerService } from "@codingame/monaco-vscode-api/vs
|
|
|
13
13
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
14
14
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
15
15
|
import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
16
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
16
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
17
17
|
import { IWebExtensionsScannerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
18
18
|
import { IWorkbenchExtensionEnablementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
19
19
|
import { IWorkbenchExtensionManagementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
@@ -18,7 +18,7 @@ import { IRemoteExtensionsScannerService } from '@codingame/monaco-vscode-api/vs
|
|
|
18
18
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
19
19
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
20
20
|
import { IWorkspaceTrustManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
21
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
21
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
22
22
|
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService, IWebExtensionsScannerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
23
23
|
import { WebWorkerExtensionHost } from './webWorkerExtensionHost.js';
|
|
24
24
|
import { FetchFileSystemProvider } from './webWorkerFileSystemProvider.js';
|
|
@@ -10,7 +10,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
10
10
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
11
11
|
import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
12
12
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
13
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
13
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
14
14
|
import { LocalWebWorkerRunningLocation } from "@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common/vscode/vs/workbench/services/extensions/common/extensionRunningLocation";
|
|
15
15
|
import { ExtensionHostExtensions, ExtensionHostStartup, IExtensionHost } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions";
|
|
16
16
|
export interface IWebWorkerExtensionHostInitData {
|
|
@@ -25,7 +25,7 @@ import { isLoggingOnly } from '@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
25
25
|
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
26
26
|
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
27
27
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
28
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
28
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
29
29
|
import { ExtensionHostExitCode, isMessageOfType, MessageType, createMessageOfType, UIKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionHostProtocol';
|
|
30
30
|
import { ExtensionHostStartup } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
31
31
|
import { getNLSMessages, getNLSLanguage } from '@codingame/monaco-vscode-api/vscode/vs/nls.messages';
|
|
@@ -181,14 +181,14 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
181
181
|
}
|
|
182
182
|
}, {
|
|
183
183
|
id: 'join.disconnectRemote',
|
|
184
|
-
label: ( localize(
|
|
184
|
+
label: ( localize(11491, "Disconnect Remote Agent")),
|
|
185
185
|
order: WillShutdownJoinerOrder.Last
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
189
189
|
event.join(this._doStopExtensionHosts(), {
|
|
190
190
|
id: 'join.stopExtensionHosts',
|
|
191
|
-
label: ( localize(
|
|
191
|
+
label: ( localize(11492, "Stopping Extension Hosts")),
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}));
|
|
@@ -259,7 +259,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
259
259
|
this._notificationService.notify({
|
|
260
260
|
severity: Severity.Error,
|
|
261
261
|
message: ( localize(
|
|
262
|
-
|
|
262
|
+
11493,
|
|
263
263
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
264
264
|
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(', ')
|
|
265
265
|
))
|
|
@@ -440,7 +440,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
440
440
|
this._notificationService.notify({
|
|
441
441
|
severity: Severity.Error,
|
|
442
442
|
message: ( localize(
|
|
443
|
-
|
|
443
|
+
11493,
|
|
444
444
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
445
445
|
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(', ')
|
|
446
446
|
))
|
|
@@ -455,7 +455,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
455
455
|
const extensionHostManager = this.findTestExtensionHost(this._environmentService.extensionTestsLocationURI);
|
|
456
456
|
if (!extensionHostManager) {
|
|
457
457
|
const msg = ( localize(
|
|
458
|
-
|
|
458
|
+
11494,
|
|
459
459
|
"No extension host found that can launch the test runner at {0}.",
|
|
460
460
|
(this._environmentService.extensionTestsLocationURI.toString())
|
|
461
461
|
));
|
|
@@ -625,7 +625,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
625
625
|
vetoReasons.add(reason);
|
|
626
626
|
}
|
|
627
627
|
}).catch(error => {
|
|
628
|
-
vetoReasons.add(( localize(
|
|
628
|
+
vetoReasons.add(( localize(11495, "{0} (Error: {1})", reason, toErrorMessage(error))));
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
}
|
|
@@ -638,10 +638,10 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
638
638
|
if (!auto) {
|
|
639
639
|
const vetoReasonsArray = Array.from(vetoReasons);
|
|
640
640
|
this._logService.warn(`Extension host was not stopped because of veto (stop reason: ${reason}, veto reason: ${vetoReasonsArray.join(', ')})`);
|
|
641
|
-
await this._dialogService.warn(( localize(
|
|
642
|
-
( localize(
|
|
641
|
+
await this._dialogService.warn(( localize(11496, "The following operation was blocked: {0}", reason)), vetoReasonsArray.length === 1 ?
|
|
642
|
+
( localize(11497, "The reason for blocking the operation: {0}", vetoReasonsArray[0])) :
|
|
643
643
|
( localize(
|
|
644
|
-
|
|
644
|
+
11498,
|
|
645
645
|
"The reasons for blocking the operation:\n- {0}",
|
|
646
646
|
vetoReasonsArray.join('\n -')
|
|
647
647
|
)));
|
|
@@ -737,15 +737,15 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
737
737
|
this._remoteCrashTracker.registerCrash();
|
|
738
738
|
if (this._remoteCrashTracker.shouldAutomaticallyRestart()) {
|
|
739
739
|
this._logService.info(`Automatically restarting the remote extension host.`);
|
|
740
|
-
this._notificationService.status(( localize(
|
|
740
|
+
this._notificationService.status(( localize(11499, "The remote extension host terminated unexpectedly. Restarting...")), { hideAfter: 5000 });
|
|
741
741
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
742
742
|
}
|
|
743
743
|
else {
|
|
744
744
|
this._notificationService.prompt(Severity.Error, ( localize(
|
|
745
|
-
|
|
745
|
+
11500,
|
|
746
746
|
"Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
|
|
747
747
|
)), [{
|
|
748
|
-
label: ( localize(
|
|
748
|
+
label: ( localize(11501, "Restart Remote Extension Host")),
|
|
749
749
|
run: () => {
|
|
750
750
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
751
751
|
}
|
|
@@ -1236,7 +1236,7 @@ class ActivationFeatureMarkdowneRenderer extends Disposable {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1238
1238
|
id: 'activationEvents',
|
|
1239
|
-
label: ( localize(
|
|
1239
|
+
label: ( localize(11502, "Activation Events")),
|
|
1240
1240
|
access: {
|
|
1241
1241
|
canToggle: false
|
|
1242
1242
|
},
|
|
@@ -479,7 +479,7 @@ registerAction2(class MeasureExtHostLatencyAction extends Action2 {
|
|
|
479
479
|
constructor() {
|
|
480
480
|
super({
|
|
481
481
|
id: 'editor.action.measureExtHostLatency',
|
|
482
|
-
title: ( localize2(
|
|
482
|
+
title: ( localize2(11503, "Measure Extension Host Latency")),
|
|
483
483
|
category: Categories.Developer,
|
|
484
484
|
f1: true
|
|
485
485
|
});
|
|
@@ -106,7 +106,7 @@ class ApiProposalsMarkdowneRenderer extends Disposable {
|
|
|
106
106
|
}
|
|
107
107
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
108
108
|
id: 'enabledApiProposals',
|
|
109
|
-
label: ( localize(
|
|
109
|
+
label: ( localize(11504, "API Proposals")),
|
|
110
110
|
access: {
|
|
111
111
|
canToggle: false
|
|
112
112
|
},
|
|
@@ -9,7 +9,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
9
9
|
const extension = result.get(systemExtension.identifier);
|
|
10
10
|
if (extension) {
|
|
11
11
|
logService.warn(( localize(
|
|
12
|
-
|
|
12
|
+
11588,
|
|
13
13
|
"Overwriting extension {0} with {1}.",
|
|
14
14
|
extension.extensionLocation.fsPath,
|
|
15
15
|
systemExtension.extensionLocation.fsPath
|
|
@@ -29,7 +29,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
31
|
logService.warn(( localize(
|
|
32
|
-
|
|
32
|
+
11588,
|
|
33
33
|
"Overwriting extension {0} with {1}.",
|
|
34
34
|
extension.extensionLocation.fsPath,
|
|
35
35
|
userExtension.extensionLocation.fsPath
|
|
@@ -46,7 +46,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
46
46
|
const extension = result.get(workspaceExtension.identifier);
|
|
47
47
|
if (extension) {
|
|
48
48
|
logService.warn(( localize(
|
|
49
|
-
|
|
49
|
+
11589,
|
|
50
50
|
"Overwriting {0} with Workspace Extension {1}.",
|
|
51
51
|
extension.extensionLocation.fsPath,
|
|
52
52
|
workspaceExtension.extensionLocation.fsPath
|
|
@@ -56,7 +56,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
56
56
|
});
|
|
57
57
|
development.forEach(developedExtension => {
|
|
58
58
|
logService.info(( localize(
|
|
59
|
-
|
|
59
|
+
11590,
|
|
60
60
|
"Loading development extension at {0}",
|
|
61
61
|
developedExtension.extensionLocation.fsPath
|
|
62
62
|
)));
|