@codingame/monaco-vscode-lifecycle-service-override 4.5.1 → 5.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-lifecycle-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -10,6 +10,7 @@ import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
|
10
10
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
11
11
|
import { firstOrDefault } from 'vscode/vscode/vs/base/common/arrays';
|
|
12
12
|
|
|
13
|
+
const _moduleId = "vs/workbench/services/lifecycle/browser/lifecycleService";
|
|
13
14
|
let BrowserLifecycleService = class BrowserLifecycleService extends AbstractLifecycleService {
|
|
14
15
|
constructor(logService, storageService) {
|
|
15
16
|
super(logService, storageService);
|
|
@@ -36,8 +37,8 @@ let BrowserLifecycleService = class BrowserLifecycleService extends AbstractLife
|
|
|
36
37
|
vetoBeforeUnload(event) {
|
|
37
38
|
event.preventDefault();
|
|
38
39
|
event.returnValue = ( localizeWithPath(
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
_moduleId,
|
|
41
|
+
0,
|
|
41
42
|
"Changes that you made may not be saved. Please check press 'Cancel' and try again."
|
|
42
43
|
));
|
|
43
44
|
}
|
|
@@ -130,9 +131,9 @@ let BrowserLifecycleService = class BrowserLifecycleService extends AbstractLife
|
|
|
130
131
|
return startupKind;
|
|
131
132
|
}
|
|
132
133
|
};
|
|
133
|
-
BrowserLifecycleService = ( __decorate([
|
|
134
|
-
( __param(0, ILogService)),
|
|
135
|
-
( __param(1, IStorageService))
|
|
136
|
-
], BrowserLifecycleService));
|
|
134
|
+
BrowserLifecycleService = ( (__decorate([
|
|
135
|
+
( (__param(0, ILogService))),
|
|
136
|
+
( (__param(1, IStorageService)))
|
|
137
|
+
], BrowserLifecycleService)));
|
|
137
138
|
|
|
138
139
|
export { BrowserLifecycleService };
|
|
@@ -112,7 +112,9 @@ let AbstractTimerService = class AbstractTimerService {
|
|
|
112
112
|
}
|
|
113
113
|
get startupMetrics() {
|
|
114
114
|
if (!this._startupMetrics) {
|
|
115
|
-
throw new Error(
|
|
115
|
+
throw ( new Error(
|
|
116
|
+
'illegal state, MUST NOT access startupMetrics before whenReady has resolved'
|
|
117
|
+
));
|
|
116
118
|
}
|
|
117
119
|
return this._startupMetrics;
|
|
118
120
|
}
|