@codingame/monaco-vscode-host-service-override 34.1.3 → 35.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": "34.1.3",
3
+ "version": "35.0.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": "34.1.3"
18
+ "@codingame/monaco-vscode-api": "35.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -453,24 +453,24 @@ let BrowserHostService = class BrowserHostService extends Disposable {
453
453
  await this.dialogService.prompt({
454
454
  type: Severity.Warning,
455
455
  message: workspace ? ( localize(
456
- 17097,
456
+ 17761,
457
457
  "The browser blocked opening a new tab or window for '{0}'. Press 'Retry' to try again.",
458
458
  this.getRecentLabel(workspace)
459
459
  )) : ( localize(
460
- 17098,
460
+ 17762,
461
461
  "The browser blocked opening a new tab or window. Press 'Retry' to try again."
462
462
  )),
463
463
  custom: {
464
464
  markdownDetails: [{
465
465
  markdown: ( new MarkdownString(( localize(
466
- 17099,
466
+ 17763,
467
467
  "Please allow pop-ups for this website in your [browser settings]({0}).",
468
468
  "https://aka.ms/allow-vscode-popup"
469
469
  )), true))
470
470
  }]
471
471
  },
472
472
  buttons: [{
473
- label: ( localize(17100, "&&Retry")),
473
+ label: ( localize(17764, "&&Retry")),
474
474
  run: () => this.workspaceProvider.open(workspace, options)
475
475
  }],
476
476
  cancelButton: true
@@ -32,18 +32,18 @@ async function showBrowserToast(controller, options, token) {
32
32
  supported: true,
33
33
  clicked: false
34
34
  })));
35
- Event.once(toast.onClick)(() => resolve({
35
+ disposables.add(Event.once(toast.onClick)(() => resolve({
36
36
  supported: true,
37
37
  clicked: true
38
- }));
39
- Event.once(toast.onClose)(() => resolve({
38
+ })));
39
+ disposables.add(Event.once(toast.onClose)(() => resolve({
40
40
  supported: true,
41
41
  clicked: false
42
- }));
43
- Event.once(toast.onError)(() => resolve({
42
+ })));
43
+ disposables.add(Event.once(toast.onError)(() => resolve({
44
44
  supported: false,
45
45
  clicked: false
46
- }));
46
+ })));
47
47
  }));
48
48
  }
49
49
  async function triggerBrowserToast(message, options) {