@codingame/monaco-vscode-lifecycle-service-override 21.5.0 → 21.5.1
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/index.d.ts +1 -1
- package/index.js +14 -15
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export interface LifecycleServiceParams {
|
|
|
9
9
|
*/
|
|
10
10
|
resolveStartupKind?: StartupKindResolver;
|
|
11
11
|
}
|
|
12
|
-
export default function getServiceOverride(
|
|
12
|
+
export default function getServiceOverride(params?: LifecycleServiceParams): IEditorOverrideServices;
|
|
13
13
|
export { StartupKind };
|
package/index.js
CHANGED
|
@@ -11,22 +11,21 @@ import { TimerService } from './vscode/src/vs/workbench/services/timer/browser/t
|
|
|
11
11
|
import { ITimerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/timer/browser/timerService.service';
|
|
12
12
|
|
|
13
13
|
const DEFAULT_RESOLVE_STARTUP_KIND = (resolveDefault) => resolveDefault();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
BrowserLifecycleServiceOverride = __decorate([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
], BrowserLifecycleServiceOverride);
|
|
27
|
-
function getServiceOverride(options = {}) {
|
|
14
|
+
function getServiceOverride(params = {}) {
|
|
15
|
+
let BrowserLifecycleServiceOverride = class BrowserLifecycleServiceOverride extends BrowserLifecycleService {
|
|
16
|
+
constructor(logService, storageService) {
|
|
17
|
+
super(logService, storageService);
|
|
18
|
+
}
|
|
19
|
+
doResolveStartupKind() {
|
|
20
|
+
return (params.resolveStartupKind ?? DEFAULT_RESOLVE_STARTUP_KIND)(() => super.doResolveStartupKind());
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
BrowserLifecycleServiceOverride = __decorate([
|
|
24
|
+
__param(0, ILogService),
|
|
25
|
+
__param(1, IStorageService)
|
|
26
|
+
], BrowserLifecycleServiceOverride);
|
|
28
27
|
return {
|
|
29
|
-
[ILifecycleService.toString()]: new SyncDescriptor(BrowserLifecycleServiceOverride
|
|
28
|
+
[ILifecycleService.toString()]: new SyncDescriptor(BrowserLifecycleServiceOverride),
|
|
30
29
|
[ITimerService.toString()]: new SyncDescriptor(TimerService)
|
|
31
30
|
};
|
|
32
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-lifecycle-service-override",
|
|
3
|
-
"version": "21.5.
|
|
3
|
+
"version": "21.5.1",
|
|
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": "21.5.
|
|
18
|
+
"@codingame/monaco-vscode-api": "21.5.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|