@theia/plugin-ext-vscode 1.23.0-next.5 → 1.23.0-next.51
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/lib/browser/plugin-vscode-commands-contribution.d.ts +0 -15
- package/lib/browser/plugin-vscode-commands-contribution.d.ts.map +1 -1
- package/lib/browser/plugin-vscode-commands-contribution.js +42 -42
- package/lib/browser/plugin-vscode-commands-contribution.js.map +1 -1
- package/lib/browser/plugin-vscode-contribution.d.ts +0 -15
- package/lib/browser/plugin-vscode-contribution.d.ts.map +1 -1
- package/lib/browser/plugin-vscode-contribution.js +16 -16
- package/lib/browser/plugin-vscode-contribution.js.map +1 -1
- package/lib/browser/plugin-vscode-frontend-module.d.ts +0 -15
- package/lib/browser/plugin-vscode-frontend-module.d.ts.map +1 -1
- package/lib/browser/plugin-vscode-frontend-module.js +15 -15
- package/lib/browser/plugin-vscode-frontend-module.js.map +1 -1
- package/lib/common/plugin-vscode-environment.d.ts +0 -15
- package/lib/common/plugin-vscode-environment.d.ts.map +1 -1
- package/lib/common/plugin-vscode-environment.js +17 -17
- package/lib/common/plugin-vscode-environment.js.map +1 -1
- package/lib/common/plugin-vscode-types.d.ts +0 -15
- package/lib/common/plugin-vscode-types.d.ts.map +1 -1
- package/lib/common/plugin-vscode-types.js +15 -15
- package/lib/common/plugin-vscode-types.js.map +1 -1
- package/lib/node/context/plugin-vscode-init-fe.d.ts +3 -0
- package/lib/node/context/plugin-vscode-init-fe.d.ts.map +1 -0
- package/lib/node/context/plugin-vscode-init-fe.js +38 -0
- package/lib/node/context/plugin-vscode-init-fe.js.map +1 -0
- package/lib/node/package.spec.d.ts +0 -15
- package/lib/node/package.spec.d.ts.map +1 -1
- package/lib/node/package.spec.js +15 -15
- package/lib/node/package.spec.js.map +1 -1
- package/lib/node/plugin-reader.d.ts +7 -0
- package/lib/node/plugin-reader.d.ts.map +1 -0
- package/lib/node/plugin-reader.js +37 -0
- package/lib/node/plugin-reader.js.map +1 -0
- package/lib/node/plugin-vscode-backend-module.d.ts +0 -15
- package/lib/node/plugin-vscode-backend-module.d.ts.map +1 -1
- package/lib/node/plugin-vscode-backend-module.js +18 -15
- package/lib/node/plugin-vscode-backend-module.js.map +1 -1
- package/lib/node/plugin-vscode-cli-contribution.d.ts +0 -15
- package/lib/node/plugin-vscode-cli-contribution.d.ts.map +1 -1
- package/lib/node/plugin-vscode-cli-contribution.js +16 -16
- package/lib/node/plugin-vscode-cli-contribution.js.map +1 -1
- package/lib/node/plugin-vscode-deployer-participant.d.ts +0 -15
- package/lib/node/plugin-vscode-deployer-participant.d.ts.map +1 -1
- package/lib/node/plugin-vscode-deployer-participant.js +17 -17
- package/lib/node/plugin-vscode-deployer-participant.js.map +1 -1
- package/lib/node/plugin-vscode-directory-handler.d.ts +0 -15
- package/lib/node/plugin-vscode-directory-handler.d.ts.map +1 -1
- package/lib/node/plugin-vscode-directory-handler.js +16 -16
- package/lib/node/plugin-vscode-directory-handler.js.map +1 -1
- package/lib/node/plugin-vscode-file-handler.d.ts +0 -15
- package/lib/node/plugin-vscode-file-handler.d.ts.map +1 -1
- package/lib/node/plugin-vscode-file-handler.js +18 -18
- package/lib/node/plugin-vscode-file-handler.js.map +1 -1
- package/lib/node/plugin-vscode-init.d.ts +0 -15
- package/lib/node/plugin-vscode-init.d.ts.map +1 -1
- package/lib/node/plugin-vscode-init.js +17 -16
- package/lib/node/plugin-vscode-init.js.map +1 -1
- package/lib/node/scanner-vscode.d.ts +0 -15
- package/lib/node/scanner-vscode.d.ts.map +1 -1
- package/lib/node/scanner-vscode.js +36 -19
- package/lib/node/scanner-vscode.js.map +1 -1
- package/package.json +13 -13
- package/src/browser/plugin-vscode-commands-contribution.ts +15 -15
- package/src/browser/plugin-vscode-contribution.ts +15 -15
- package/src/browser/plugin-vscode-frontend-module.ts +15 -15
- package/src/common/plugin-vscode-environment.ts +15 -15
- package/src/common/plugin-vscode-types.ts +15 -15
- package/src/node/context/plugin-vscode-init-fe.ts +43 -0
- package/src/node/package.spec.ts +15 -15
- package/src/node/plugin-reader.ts +28 -0
- package/src/node/plugin-vscode-backend-module.ts +20 -16
- package/src/node/plugin-vscode-cli-contribution.ts +15 -15
- package/src/node/plugin-vscode-deployer-participant.ts +15 -15
- package/src/node/plugin-vscode-directory-handler.ts +15 -15
- package/src/node/plugin-vscode-file-handler.ts +15 -15
- package/src/node/plugin-vscode-init.ts +15 -15
- package/src/node/scanner-vscode.ts +43 -23
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2022 Arm and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import * as path from 'path';
|
|
18
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
19
|
+
import { Application, static as ExpressStatic } from '@theia/core/shared/express';
|
|
20
|
+
import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application';
|
|
21
|
+
|
|
22
|
+
@injectable()
|
|
23
|
+
export class HostedPluginReader implements BackendApplicationContribution {
|
|
24
|
+
|
|
25
|
+
configure(app: Application): void {
|
|
26
|
+
app.use('/context', ExpressStatic(path.join(__dirname, 'context')));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
18
|
import {
|
|
@@ -22,10 +22,11 @@ import { PluginVsCodeFileHandler } from './plugin-vscode-file-handler';
|
|
|
22
22
|
import { PluginVsCodeDirectoryHandler } from './plugin-vscode-directory-handler';
|
|
23
23
|
import { VsCodePluginScanner } from './scanner-vscode';
|
|
24
24
|
import { PluginVsCodeCliContribution } from './plugin-vscode-cli-contribution';
|
|
25
|
-
import { CliContribution } from '@theia/core/lib/node';
|
|
25
|
+
import { BackendApplicationContribution, CliContribution } from '@theia/core/lib/node';
|
|
26
26
|
import { PluginHostEnvironmentVariable } from '@theia/plugin-ext/lib/common';
|
|
27
27
|
import { PluginVSCodeEnvironment } from '../common/plugin-vscode-environment';
|
|
28
28
|
import { PluginVSCodeDeployerParticipant } from './plugin-vscode-deployer-participant';
|
|
29
|
+
import { HostedPluginReader } from './plugin-reader';
|
|
29
30
|
|
|
30
31
|
export default new ContainerModule(bind => {
|
|
31
32
|
bind(PluginVSCodeEnvironment).toSelf().inSingletonScope();
|
|
@@ -40,4 +41,7 @@ export default new ContainerModule(bind => {
|
|
|
40
41
|
bind(PluginVsCodeCliContribution).toSelf().inSingletonScope();
|
|
41
42
|
bind(CliContribution).toService(PluginVsCodeCliContribution);
|
|
42
43
|
bind(PluginHostEnvironmentVariable).toService(PluginVsCodeCliContribution);
|
|
44
|
+
|
|
45
|
+
bind(HostedPluginReader).toSelf().inSingletonScope();
|
|
46
|
+
bind(BackendApplicationContribution).toService(HostedPluginReader);
|
|
43
47
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 Red Hat, Inc. and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { Argv, Arguments } from '@theia/core/shared/yargs';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2020 TypeFox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
18
|
import { PluginVSCodeEnvironment } from '../common/plugin-vscode-environment';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as fs from '@theia/core/shared/fs-extra';
|
|
18
18
|
import * as path from 'path';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { PluginDeployerFileHandler, PluginDeployerEntry, PluginDeployerFileHandlerContext, PluginType } from '@theia/plugin-ext';
|
|
18
18
|
import * as fs from '@theia/core/shared/fs-extra';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018-2019 Red Hat, Inc.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
18
18
|
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2015-2021 Red Hat, Inc.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as path from 'path';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { PluginScanner, PluginEngine, PluginPackage, PluginModel, PluginLifecycle } from '@theia/plugin-ext';
|
|
19
|
+
import { PluginScanner, PluginEngine, PluginPackage, PluginModel, PluginLifecycle, PluginEntryPoint, buildFrontendModuleName, UIKind } from '@theia/plugin-ext';
|
|
20
20
|
import { TheiaPluginScanner } from '@theia/plugin-ext/lib/hosted/node/scanners/scanner-theia';
|
|
21
|
+
import { environment } from '@theia/core/shared/@theia/application-package/lib/environment';
|
|
22
|
+
|
|
23
|
+
const uiKind = environment.electron.is() ? UIKind.Desktop : UIKind.Web;
|
|
21
24
|
|
|
22
25
|
@injectable()
|
|
23
26
|
export class VsCodePluginScanner extends TheiaPluginScanner implements PluginScanner {
|
|
@@ -25,13 +28,30 @@ export class VsCodePluginScanner extends TheiaPluginScanner implements PluginSca
|
|
|
25
28
|
private readonly VSCODE_TYPE: PluginEngine = 'vscode';
|
|
26
29
|
private readonly VSCODE_PREFIX: string = 'vscode:extension/';
|
|
27
30
|
|
|
28
|
-
get apiType(): PluginEngine {
|
|
31
|
+
override get apiType(): PluginEngine {
|
|
29
32
|
return this.VSCODE_TYPE;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
getModel(plugin: PluginPackage): PluginModel {
|
|
35
|
+
override getModel(plugin: PluginPackage): PluginModel {
|
|
33
36
|
// publisher can be empty on vscode extension development
|
|
34
37
|
const publisher = plugin.publisher || '';
|
|
38
|
+
|
|
39
|
+
// Only one entrypoint is valid in vscode extensions
|
|
40
|
+
// Mimic choosing frontend (web extension) and backend (local/remote extension) as described here:
|
|
41
|
+
// https://code.visualstudio.com/api/advanced-topics/extension-host#preferred-extension-location
|
|
42
|
+
const entryPoint: PluginEntryPoint = {};
|
|
43
|
+
|
|
44
|
+
// Act like codespaces when run in the browser (UIKind === 'web' and extensionKind is ['ui'])
|
|
45
|
+
const preferFrontend = uiKind === UIKind.Web && (plugin.extensionKind?.length === 1 && plugin.extensionKind[0] === 'ui');
|
|
46
|
+
|
|
47
|
+
if (plugin.browser && (!plugin.main || preferFrontend)) {
|
|
48
|
+
// Use frontend if available and there is no backend or frontend is preferred
|
|
49
|
+
entryPoint.frontend = plugin.browser;
|
|
50
|
+
} else {
|
|
51
|
+
// Default to using backend
|
|
52
|
+
entryPoint.backend = plugin.main;
|
|
53
|
+
}
|
|
54
|
+
|
|
35
55
|
const result: PluginModel = {
|
|
36
56
|
packagePath: plugin.packagePath,
|
|
37
57
|
packageUri: this.pluginUriFactory.createUri(plugin).toString(),
|
|
@@ -46,9 +66,7 @@ export class VsCodePluginScanner extends TheiaPluginScanner implements PluginSca
|
|
|
46
66
|
type: this.VSCODE_TYPE,
|
|
47
67
|
version: plugin.engines[this.VSCODE_TYPE]
|
|
48
68
|
},
|
|
49
|
-
entryPoint
|
|
50
|
-
backend: plugin.main
|
|
51
|
-
},
|
|
69
|
+
entryPoint,
|
|
52
70
|
iconUrl: plugin.icon && PluginPackage.toPluginUrl(plugin, plugin.icon),
|
|
53
71
|
readmeUrl: PluginPackage.toPluginUrl(plugin, './README.md'),
|
|
54
72
|
licenseUrl: PluginPackage.toPluginUrl(plugin, './LICENSE')
|
|
@@ -59,7 +77,7 @@ export class VsCodePluginScanner extends TheiaPluginScanner implements PluginSca
|
|
|
59
77
|
/**
|
|
60
78
|
* Maps extension dependencies to deployable extension dependencies.
|
|
61
79
|
*/
|
|
62
|
-
getDependencies(plugin: PluginPackage): Map<string, string> | undefined {
|
|
80
|
+
override getDependencies(plugin: PluginPackage): Map<string, string> | undefined {
|
|
63
81
|
// Store the list of dependencies.
|
|
64
82
|
const dependencies = new Map<string, string>();
|
|
65
83
|
// Iterate through the list of dependencies from `extensionDependencies` and `extensionPack`.
|
|
@@ -76,11 +94,13 @@ export class VsCodePluginScanner extends TheiaPluginScanner implements PluginSca
|
|
|
76
94
|
return dependencies.size > 0 ? dependencies : undefined;
|
|
77
95
|
}
|
|
78
96
|
|
|
79
|
-
getLifecycle(plugin: PluginPackage): PluginLifecycle {
|
|
97
|
+
override getLifecycle(plugin: PluginPackage): PluginLifecycle {
|
|
80
98
|
return {
|
|
81
99
|
startMethod: 'activate',
|
|
82
100
|
stopMethod: 'deactivate',
|
|
101
|
+
frontendModuleName: buildFrontendModuleName(plugin),
|
|
83
102
|
|
|
103
|
+
frontendInitPath: 'plugin-vscode-init-fe.js',
|
|
84
104
|
backendInitPath: path.join(__dirname, 'plugin-vscode-init'),
|
|
85
105
|
};
|
|
86
106
|
}
|