@codingame/monaco-vscode-host-service-override 37.2.0 → 37.3.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": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - host service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -132,7 +132,12 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
132
132
|
) => {
|
|
133
133
|
const focusTracker = disposables.add(trackFocus(window));
|
|
134
134
|
const visibilityTracker = disposables.add(( new DomEmitter(window.document, "visibilitychange")));
|
|
135
|
-
Event.any(
|
|
135
|
+
Event.any(
|
|
136
|
+
Event.map(focusTracker.onDidFocus, () => this.hasFocus, disposables),
|
|
137
|
+
Event.map(focusTracker.onDidBlur, () => this.hasFocus, disposables),
|
|
138
|
+
Event.map(visibilityTracker.event, () => this.hasFocus, disposables),
|
|
139
|
+
Event.map(this.onDidChangeActiveWindow, () => this.hasFocus, disposables)
|
|
140
|
+
)(focus => emitter.fire(focus), undefined, disposables);
|
|
136
141
|
}, {
|
|
137
142
|
window: mainWindow,
|
|
138
143
|
disposables: this._store
|
|
@@ -370,7 +375,7 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
370
375
|
if (options.mergeMode) {
|
|
371
376
|
filesToWaitFor.push(fileOpenables[3].fileUri );
|
|
372
377
|
} else {
|
|
373
|
-
filesToWaitFor.push(...
|
|
378
|
+
filesToWaitFor.push(...fileOpenables.map(fileOpenable => fileOpenable.fileUri));
|
|
374
379
|
}
|
|
375
380
|
await this.instantiationService.invokeFunction(accessor => whenEditorClosed(accessor, filesToWaitFor));
|
|
376
381
|
await this.fileService.del(waitMarkerFileURI);
|
|
@@ -453,24 +458,24 @@ let BrowserHostService = class BrowserHostService extends Disposable {
|
|
|
453
458
|
await this.dialogService.prompt({
|
|
454
459
|
type: Severity.Warning,
|
|
455
460
|
message: workspace ? ( localize(
|
|
456
|
-
|
|
461
|
+
21981,
|
|
457
462
|
"The browser blocked opening a new tab or window for '{0}'. Press 'Retry' to try again.",
|
|
458
463
|
this.getRecentLabel(workspace)
|
|
459
464
|
)) : ( localize(
|
|
460
|
-
|
|
465
|
+
21982,
|
|
461
466
|
"The browser blocked opening a new tab or window. Press 'Retry' to try again."
|
|
462
467
|
)),
|
|
463
468
|
custom: {
|
|
464
469
|
markdownDetails: [{
|
|
465
470
|
markdown: ( new MarkdownString(( localize(
|
|
466
|
-
|
|
471
|
+
21983,
|
|
467
472
|
"Please allow pop-ups for this website in your [browser settings]({0}).",
|
|
468
473
|
"https://aka.ms/allow-vscode-popup"
|
|
469
474
|
)), true))
|
|
470
475
|
}]
|
|
471
476
|
},
|
|
472
477
|
buttons: [{
|
|
473
|
-
label: ( localize(
|
|
478
|
+
label: ( localize(21984, "&&Retry")),
|
|
474
479
|
run: () => this.workspaceProvider.open(workspace, options)
|
|
475
480
|
}],
|
|
476
481
|
cancelButton: true
|