@codingame/monaco-vscode-lifecycle-service-override 15.0.3 → 16.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": "16.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - lifecycle service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"default": "./index.js"
|
|
26
26
|
},
|
|
27
|
+
"./vscode/*.css": {
|
|
28
|
+
"default": "./vscode/src/*.css"
|
|
29
|
+
},
|
|
27
30
|
"./vscode/*": {
|
|
28
31
|
"types": "./vscode/src/*.d.ts",
|
|
29
32
|
"default": "./vscode/src/*.js"
|
|
@@ -38,7 +38,7 @@ let BrowserLifecycleService = class BrowserLifecycleService extends AbstractLife
|
|
|
38
38
|
vetoBeforeUnload(event) {
|
|
39
39
|
event.preventDefault();
|
|
40
40
|
event.returnValue = ( localize(
|
|
41
|
-
|
|
41
|
+
12348,
|
|
42
42
|
"Changes that you made may not be saved. Please check press 'Cancel' and try again."
|
|
43
43
|
));
|
|
44
44
|
}
|
|
@@ -100,6 +100,7 @@ let BrowserLifecycleService = class BrowserLifecycleService extends AbstractLife
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
this.didUnload = true;
|
|
103
|
+
this._willShutdown = true;
|
|
103
104
|
this._register(addDisposableListener(mainWindow, EventType.PAGE_SHOW, (e) => this.onLoadAfterUnload(e)));
|
|
104
105
|
const logService = this.logService;
|
|
105
106
|
this._onWillShutdown.fire({
|
|
@@ -16,7 +16,7 @@ import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/v
|
|
|
16
16
|
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
17
17
|
import { TelemetryTrustedValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
18
18
|
import { isWeb } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
19
|
-
import { createBlobWorker } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
19
|
+
import { createBlobWorker } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/webWorkerFactory';
|
|
20
20
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
21
21
|
import { TerminalExtensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal';
|
|
22
22
|
|
|
@@ -67,7 +67,7 @@ let AbstractTimerService = class AbstractTimerService {
|
|
|
67
67
|
this._telemetryService = _telemetryService;
|
|
68
68
|
this._barrier = ( new Barrier());
|
|
69
69
|
this._marks = ( new PerfMarks());
|
|
70
|
-
this._rndValueShouldSendTelemetry = Math.random() < .
|
|
70
|
+
this._rndValueShouldSendTelemetry = Math.random() < .03;
|
|
71
71
|
Promise.all([
|
|
72
72
|
this._extensionService.whenInstalledExtensionsRegistered(),
|
|
73
73
|
_lifecycleService.when(LifecyclePhase.Restored),
|