@codingame/monaco-vscode-host-service-override 8.0.4 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-host-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -158,7 +158,7 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
158
158
|
return this.doOpenEmptyWindow(arg1);
|
|
159
159
|
}
|
|
160
160
|
async doOpenWindow(toOpen, options) {
|
|
161
|
-
const payload = this.preservePayload(false );
|
|
161
|
+
const payload = this.preservePayload(false , options);
|
|
162
162
|
const fileOpenables = [];
|
|
163
163
|
const foldersToAdd = [];
|
|
164
164
|
for (const openable of toOpen) {
|
|
@@ -270,7 +270,7 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
270
270
|
withServices(fn) {
|
|
271
271
|
this.instantiationService.invokeFunction(accessor => fn(accessor));
|
|
272
272
|
}
|
|
273
|
-
preservePayload(isEmptyWindow) {
|
|
273
|
+
preservePayload(isEmptyWindow, options) {
|
|
274
274
|
const newPayload = ( (new Array()));
|
|
275
275
|
if (!isEmptyWindow && this.environmentService.extensionDevelopmentLocationURI) {
|
|
276
276
|
newPayload.push(['extensionDevelopmentPath', ( (this.environmentService.extensionDevelopmentLocationURI.toString()))]);
|
|
@@ -281,12 +281,11 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
281
281
|
newPayload.push(['inspect-brk-extensions', String(this.environmentService.debugExtensionHost.port)]);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
? this.userDataProfilesService.profiles.find(profile => profile.name === windowConfig.newWindowProfile)
|
|
284
|
+
const newWindowProfile = (options?.forceProfile
|
|
285
|
+
? this.userDataProfilesService.profiles.find(profile => profile.name === options?.forceProfile)
|
|
287
286
|
: undefined) ?? this.userDataProfileService.currentProfile;
|
|
288
287
|
if (!newWindowProfile.isDefault) {
|
|
289
|
-
newPayload.push(['
|
|
288
|
+
newPayload.push(['profile', newWindowProfile.name]);
|
|
290
289
|
}
|
|
291
290
|
return newPayload.length ? newPayload : undefined;
|
|
292
291
|
}
|
|
@@ -314,7 +313,7 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
314
313
|
async doOpenEmptyWindow(options) {
|
|
315
314
|
return this.doOpen(undefined, {
|
|
316
315
|
reuse: options?.forceReuseWindow,
|
|
317
|
-
payload: this.preservePayload(true )
|
|
316
|
+
payload: this.preservePayload(true , options)
|
|
318
317
|
});
|
|
319
318
|
}
|
|
320
319
|
async doOpen(workspace, options) {
|
|
@@ -333,10 +332,10 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
333
332
|
const { confirmed } = await this.dialogService.confirm({
|
|
334
333
|
type: Severity$1.Warning,
|
|
335
334
|
message: ( localize(
|
|
336
|
-
|
|
335
|
+
959,
|
|
337
336
|
"The browser interrupted the opening of a new tab or window. Press 'Open' to open it anyway."
|
|
338
337
|
)),
|
|
339
|
-
primaryButton: ( localize(
|
|
338
|
+
primaryButton: ( localize(960, "&&Open"))
|
|
340
339
|
});
|
|
341
340
|
if (confirmed) {
|
|
342
341
|
await this.workspaceProvider.open(workspace, options);
|