@codingame/monaco-vscode-host-service-override 22.1.9 → 23.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": "23.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - host service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "
|
|
19
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "
|
|
20
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "
|
|
21
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "23.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "23.0.0"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -288,7 +288,7 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
288
288
|
this.instantiationService.invokeFunction(accessor => fn(accessor));
|
|
289
289
|
}
|
|
290
290
|
preservePayload(isEmptyWindow, options) {
|
|
291
|
-
const newPayload =
|
|
291
|
+
const newPayload = [];
|
|
292
292
|
if (!isEmptyWindow && this.environmentService.extensionDevelopmentLocationURI) {
|
|
293
293
|
newPayload.push(['extensionDevelopmentPath', ( this.environmentService.extensionDevelopmentLocationURI.toString())]);
|
|
294
294
|
if (this.environmentService.debugExtensionHost.debugId) {
|
|
@@ -350,24 +350,24 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
350
350
|
type: Severity.Warning,
|
|
351
351
|
message: workspace ?
|
|
352
352
|
( localize(
|
|
353
|
-
|
|
353
|
+
13893,
|
|
354
354
|
"The browser blocked opening a new tab or window for '{0}'. Press 'Retry' to try again.",
|
|
355
355
|
this.getRecentLabel(workspace)
|
|
356
356
|
)) :
|
|
357
357
|
( localize(
|
|
358
|
-
|
|
358
|
+
13894,
|
|
359
359
|
"The browser blocked opening a new tab or window. Press 'Retry' to try again."
|
|
360
360
|
)),
|
|
361
361
|
custom: {
|
|
362
362
|
markdownDetails: [{ markdown: ( new MarkdownString(( localize(
|
|
363
|
-
|
|
363
|
+
13895,
|
|
364
364
|
"Please allow pop-ups for this website in your [browser settings]({0}).",
|
|
365
365
|
'https://aka.ms/allow-vscode-popup'
|
|
366
366
|
)), true)) }]
|
|
367
367
|
},
|
|
368
368
|
buttons: [
|
|
369
369
|
{
|
|
370
|
-
label: ( localize(
|
|
370
|
+
label: ( localize(13896, "&&Retry")),
|
|
371
371
|
run: () => this.workspaceProvider.open(workspace, options)
|
|
372
372
|
}
|
|
373
373
|
],
|
|
@@ -395,13 +395,15 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
const webkitDocument = targetWindow.document;
|
|
399
|
+
const webkitElement = target;
|
|
400
|
+
if (webkitDocument.webkitIsFullScreen !== undefined) {
|
|
399
401
|
try {
|
|
400
|
-
if (!
|
|
401
|
-
|
|
402
|
+
if (!webkitDocument.webkitIsFullScreen) {
|
|
403
|
+
webkitElement.webkitRequestFullscreen();
|
|
402
404
|
}
|
|
403
405
|
else {
|
|
404
|
-
|
|
406
|
+
webkitDocument.webkitExitFullscreen();
|
|
405
407
|
}
|
|
406
408
|
}
|
|
407
409
|
catch {
|