@codingame/monaco-vscode-dialogs-service-override 25.1.1 → 26.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.
@@ -19,16 +19,22 @@ let DialogService = class DialogService extends Disposable {
19
19
  }
20
20
  skipDialogs() {
21
21
  if (this.environmentService.enableSmokeTestDriver) {
22
- this.logService.warn('DialogService: Dialog requested during smoke test.');
22
+ this.logService.warn("DialogService: Dialog requested during smoke test.");
23
23
  }
24
24
  return this.environmentService.isExtensionDevelopment && !!this.environmentService.extensionTestsLocationURI;
25
25
  }
26
26
  async confirm(confirmation) {
27
27
  if (this.skipDialogs()) {
28
- this.logService.trace('DialogService: refused to show confirmation dialog in tests.');
29
- return { confirmed: true };
28
+ this.logService.trace("DialogService: refused to show confirmation dialog in tests.");
29
+ return {
30
+ confirmed: true
31
+ };
30
32
  }
31
- const handle = this.model.show({ confirmArgs: { confirmation } });
33
+ const handle = this.model.show({
34
+ confirmArgs: {
35
+ confirmation
36
+ }
37
+ });
32
38
  return await handle.result;
33
39
  }
34
40
  async prompt(prompt) {
@@ -37,7 +43,11 @@ let DialogService = class DialogService extends Disposable {
37
43
  `DialogService: refused to show dialog in tests. Contents: ${prompt.message}`
38
44
  ));
39
45
  }
40
- const handle = this.model.show({ promptArgs: { prompt } });
46
+ const handle = this.model.show({
47
+ promptArgs: {
48
+ prompt
49
+ }
50
+ });
41
51
  const dialogResult = await handle.result;
42
52
  return {
43
53
  result: await dialogResult.result,
@@ -46,31 +56,44 @@ let DialogService = class DialogService extends Disposable {
46
56
  }
47
57
  async input(input) {
48
58
  if (this.skipDialogs()) {
49
- throw ( new Error('DialogService: refused to show input dialog in tests.'));
59
+ throw ( new Error("DialogService: refused to show input dialog in tests."));
50
60
  }
51
- const handle = this.model.show({ inputArgs: { input } });
61
+ const handle = this.model.show({
62
+ inputArgs: {
63
+ input
64
+ }
65
+ });
52
66
  return await handle.result;
53
67
  }
54
68
  async info(message, detail) {
55
- await this.prompt({ type: Severity.Info, message, detail });
69
+ await this.prompt({
70
+ type: Severity.Info,
71
+ message,
72
+ detail
73
+ });
56
74
  }
57
75
  async warn(message, detail) {
58
- await this.prompt({ type: Severity.Warning, message, detail });
76
+ await this.prompt({
77
+ type: Severity.Warning,
78
+ message,
79
+ detail
80
+ });
59
81
  }
60
82
  async error(message, detail) {
61
- await this.prompt({ type: Severity.Error, message, detail });
83
+ await this.prompt({
84
+ type: Severity.Error,
85
+ message,
86
+ detail
87
+ });
62
88
  }
63
89
  async about() {
64
90
  if (this.skipDialogs()) {
65
- throw ( new Error('DialogService: refused to show about dialog in tests.'));
91
+ throw ( new Error("DialogService: refused to show about dialog in tests."));
66
92
  }
67
93
  const handle = this.model.show({});
68
94
  await handle.result;
69
95
  }
70
96
  };
71
- DialogService = ( __decorate([
72
- ( __param(0, IWorkbenchEnvironmentService)),
73
- ( __param(1, ILogService))
74
- ], DialogService));
97
+ DialogService = ( __decorate([( __param(0, IWorkbenchEnvironmentService)), ( __param(1, ILogService))], DialogService));
75
98
 
76
99
  export { DialogService };