@codingame/monaco-vscode-host-service-override 30.0.1 → 31.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": "30.0.1",
3
+ "version": "31.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": "30.0.1"
18
+ "@codingame/monaco-vscode-api": "31.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -66,6 +66,7 @@ export declare class BrowserHostService extends Disposable implements IHostServi
66
66
  restart(): Promise<void>;
67
67
  reload(): Promise<void>;
68
68
  close(): Promise<void>;
69
+ shutdown(): Promise<void>;
69
70
  withExpectedShutdown<T>(expectedShutdownTask: () => Promise<T>): Promise<T>;
70
71
  private handleExpectedShutdown;
71
72
  getScreenshot(): Promise<VSBuffer | undefined>;
@@ -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
- 16200,
456
+ 16417,
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
- 16201,
460
+ 16418,
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
- 16202,
466
+ 16419,
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(16203, "&&Retry")),
473
+ label: ( localize(16420, "&&Retry")),
474
474
  run: () => this.workspaceProvider.open(workspace, options)
475
475
  }],
476
476
  cancelButton: true
@@ -549,6 +549,9 @@ let BrowserHostService = class BrowserHostService extends Disposable {
549
549
  await this.handleExpectedShutdown(ShutdownReason.CLOSE);
550
550
  mainWindow.close();
551
551
  }
552
+ async shutdown() {
553
+ return this.close();
554
+ }
552
555
  async withExpectedShutdown(expectedShutdownTask) {
553
556
  const previousShutdownReason = this.shutdownReason;
554
557
  try {