@codingame/monaco-vscode-extension-api 24.2.0 → 25.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/localExtensionHost.d.ts +3 -1
- package/localExtensionHost.js +6 -3
- package/package.json +3 -3
package/localExtensionHost.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-ap
|
|
|
11
11
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
12
12
|
import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
13
13
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
14
|
+
import { IDefaultLogLevelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/log/common/defaultLogLevels.service";
|
|
14
15
|
declare class LocalExtensionHost implements IExtensionHost {
|
|
15
16
|
readonly runningLocation: LocalProcessRunningLocation;
|
|
16
17
|
readonly startup: ExtensionHostStartup;
|
|
@@ -23,12 +24,13 @@ declare class LocalExtensionHost implements IExtensionHost {
|
|
|
23
24
|
private readonly _environmentService;
|
|
24
25
|
private readonly _productService;
|
|
25
26
|
private readonly _userDataProfilesService;
|
|
27
|
+
private readonly _defaultLogLevelsService;
|
|
26
28
|
readonly remoteAuthority: null;
|
|
27
29
|
extensions: ExtensionHostExtensions | null;
|
|
28
30
|
private readonly _extensionHostLogsLocation;
|
|
29
31
|
private _protocolPromise;
|
|
30
32
|
pid: null;
|
|
31
|
-
constructor(runningLocation: LocalProcessRunningLocation, startup: ExtensionHostStartup, _initDataProvider: IWebWorkerExtensionHostDataProvider, _telemetryService: ITelemetryService, _contextService: IWorkspaceContextService, _labelService: ILabelService, _logService: ILogService, _loggerService: ILoggerService, _environmentService: IBrowserWorkbenchEnvironmentService, _productService: IProductService, _userDataProfilesService: IUserDataProfilesService);
|
|
33
|
+
constructor(runningLocation: LocalProcessRunningLocation, startup: ExtensionHostStartup, _initDataProvider: IWebWorkerExtensionHostDataProvider, _telemetryService: ITelemetryService, _contextService: IWorkspaceContextService, _labelService: ILabelService, _logService: ILogService, _loggerService: ILoggerService, _environmentService: IBrowserWorkbenchEnvironmentService, _productService: IProductService, _userDataProfilesService: IUserDataProfilesService, _defaultLogLevelsService: IDefaultLogLevelsService);
|
|
32
34
|
onExit: Event<any>;
|
|
33
35
|
start(): Promise<IMessagePassingProtocol>;
|
|
34
36
|
_start(): Promise<IMessagePassingProtocol>;
|
package/localExtensionHost.js
CHANGED
|
@@ -37,6 +37,7 @@ import { registerServiceInitializePostParticipant } from '@codingame/monaco-vsco
|
|
|
37
37
|
import { IExtHostTelemetry, ExtHostTelemetry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTelemetry';
|
|
38
38
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
39
39
|
import { IExtHostAuthentication, ExtHostAuthentication } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostAuthentication';
|
|
40
|
+
import { IDefaultLogLevelsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/log/common/defaultLogLevels.service';
|
|
40
41
|
|
|
41
42
|
const apiFactoryDeferred = new DeferredPromise();
|
|
42
43
|
class LocalExtHostExtensionService extends ExtHostExtensionService {
|
|
@@ -103,7 +104,7 @@ const hostUtil = new (class {
|
|
|
103
104
|
}
|
|
104
105
|
})();
|
|
105
106
|
let LocalExtensionHost = class LocalExtensionHost {
|
|
106
|
-
constructor(runningLocation, startup, _initDataProvider, _telemetryService, _contextService, _labelService, _logService, _loggerService, _environmentService, _productService, _userDataProfilesService) {
|
|
107
|
+
constructor(runningLocation, startup, _initDataProvider, _telemetryService, _contextService, _labelService, _logService, _loggerService, _environmentService, _productService, _userDataProfilesService, _defaultLogLevelsService) {
|
|
107
108
|
this.runningLocation = runningLocation;
|
|
108
109
|
this.startup = startup;
|
|
109
110
|
this._initDataProvider = _initDataProvider;
|
|
@@ -115,6 +116,7 @@ let LocalExtensionHost = class LocalExtensionHost {
|
|
|
115
116
|
this._environmentService = _environmentService;
|
|
116
117
|
this._productService = _productService;
|
|
117
118
|
this._userDataProfilesService = _userDataProfilesService;
|
|
119
|
+
this._defaultLogLevelsService = _defaultLogLevelsService;
|
|
118
120
|
this.remoteAuthority = null;
|
|
119
121
|
this.extensions = null;
|
|
120
122
|
this.pid = null;
|
|
@@ -163,7 +165,7 @@ let LocalExtensionHost = class LocalExtensionHost {
|
|
|
163
165
|
extensionTestsLocationURI: this._environmentService.extensionTestsLocationURI,
|
|
164
166
|
globalStorageHome: this._userDataProfilesService.defaultProfile.globalStorageHome,
|
|
165
167
|
workspaceStorageHome: this._environmentService.workspaceStorageHome,
|
|
166
|
-
extensionLogLevel: this.
|
|
168
|
+
extensionLogLevel: this._defaultLogLevelsService.defaultLogLevels.extensions
|
|
167
169
|
},
|
|
168
170
|
workspace: this._contextService.getWorkbenchState() === WorkbenchState.EMPTY
|
|
169
171
|
? undefined
|
|
@@ -215,7 +217,8 @@ LocalExtensionHost = __decorate([
|
|
|
215
217
|
__param(7, ILoggerService),
|
|
216
218
|
__param(8, IBrowserWorkbenchEnvironmentService),
|
|
217
219
|
__param(9, IProductService),
|
|
218
|
-
__param(10, IUserDataProfilesService)
|
|
220
|
+
__param(10, IUserDataProfilesService),
|
|
221
|
+
__param(11, IDefaultLogLevelsService)
|
|
219
222
|
], LocalExtensionHost);
|
|
220
223
|
async function createLocalApi(extensionId) {
|
|
221
224
|
const apiFactory = await apiFactoryDeferred.p;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extension-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - VSCode extension compatible api",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-extensions-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "25.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-extensions-service-override": "25.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "extension.api.js",
|
|
22
22
|
"module": "extension.api.js",
|