diff --git a/CHANGELOG.md b/CHANGELOG.md index b9bbf3905b40d..d1173fa52ea37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ Breaking changes: } } ``` +- [extension-manager] deprecated [#4876](https://github.com/theia-ide/theia/pull/4876) ## v0.5.0 diff --git a/examples/browser/package.json b/examples/browser/package.json index dc208eeb9305d..c38c351cb8c0f 100644 --- a/examples/browser/package.json +++ b/examples/browser/package.json @@ -23,7 +23,6 @@ "@theia/editor": "^0.5.0", "@theia/editor-preview": "^0.5.0", "@theia/editorconfig": "^0.5.0", - "@theia/extension-manager": "^0.5.0", "@theia/file-search": "^0.5.0", "@theia/filesystem": "^0.5.0", "@theia/getting-started": "^0.5.0", diff --git a/examples/browser/test/left-panel/left-panel.ts b/examples/browser/test/left-panel/left-panel.ts index 1e9b9c9ded1ee..7274b7899be64 100644 --- a/examples/browser/test/left-panel/left-panel.ts +++ b/examples/browser/test/left-panel/left-panel.ts @@ -89,16 +89,6 @@ export class LeftPanel { this.driver.pause(300); } - isExtensionsContainerVisible(): boolean { - return this.driver.isExisting('#extensions') && (this.driver.element('#extensions').getAttribute('class').split(' ').indexOf('theia-extensions') !== -1); - } - - waitForExtensionsViewVisible(): void { - this.driver.waitForVisible('#extensions'); - // Wait for animations to finish - this.driver.pause(300); - } - isGitHistoryContainerVisible(): boolean { return (this.driver.isExisting('#git-history') && this.driver.element('#git-history').getAttribute('class').split(' ').indexOf('p-mod-hidden') === -1 && this.isPanelVisible()); diff --git a/examples/browser/test/top-panel/top-panel.ts b/examples/browser/test/top-panel/top-panel.ts index 0d6aa6c09d0f4..e94c2c84cab30 100644 --- a/examples/browser/test/top-panel/top-panel.ts +++ b/examples/browser/test/top-panel/top-panel.ts @@ -34,11 +34,6 @@ export class TopPanel { this.clickSubMenu('Call Hierarchy'); } - toggleExtensionsView() { - this.clickMenuTab('View'); - this.clickSubMenu('Extensions'); - } - toggleFilesView() { this.clickMenuTab('View'); this.clickSubMenu('Explorer'); diff --git a/examples/browser/test/top-panel/top-panel.ui-spec.ts b/examples/browser/test/top-panel/top-panel.ui-spec.ts index 370c8821e796f..7d3904342f60e 100644 --- a/examples/browser/test/top-panel/top-panel.ui-spec.ts +++ b/examples/browser/test/top-panel/top-panel.ui-spec.ts @@ -114,21 +114,6 @@ describe('theia top panel (menubar)', () => { }); }); - describe('extensions view UI', () => { - it('should start with extensions view not visible', () => { - expect(leftPanel.isExtensionsContainerVisible()).to.be.false; - }); - it('extensions view should toggle-on then toggle-off', () => { - if (!leftPanel.isExtensionsContainerVisible()) { - topPanel.toggleExtensionsView(); - leftPanel.waitForExtensionsViewVisible(); - } - expect(leftPanel.isExtensionsContainerVisible()).to.be.true; - topPanel.toggleExtensionsView(); - expect(leftPanel.isExtensionsContainerVisible()).to.be.false; - }); - }); - describe('files view UI', () => { it('should start with files view not visible', () => { expect(leftPanel.isFileTreeVisible()).to.be.false; diff --git a/examples/electron/package.json b/examples/electron/package.json index d649b30b6a571..6eb236e6af97f 100644 --- a/examples/electron/package.json +++ b/examples/electron/package.json @@ -25,7 +25,6 @@ "@theia/editor": "^0.5.0", "@theia/editor-preview": "^0.5.0", "@theia/editorconfig": "^0.5.0", - "@theia/extension-manager": "^0.5.0", "@theia/file-search": "^0.5.0", "@theia/filesystem": "^0.5.0", "@theia/getting-started": "^0.5.0", diff --git a/packages/core/README.md b/packages/core/README.md index bef229aa2450b..bdadf1c179008 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,5 +1,37 @@ # Theia - Core extension +See [here](https://www.theia-ide.org/doc/index.html) for a detailed documentation. + +## Theia Extension + +A Theia extension is a node package declaring `theiaExtensions` property in `package.json`: + +```json +{ + "theiaExtensions": [{ + "frontend": "lib/myExtension/browser/myextension-frontend-module", + "backend": "lib/myExtension/node/myextension-backend-module", + }, { + "frontend": "lib/myExtension2/browser/myextension2-browser-module", + "frontendElectron": "lib/myExtension2/electron-browser/myextension2-electron-browser-module", + "backend": "lib/myExtension2/node/myextension2-node-module", + "backendElectron": "lib/myExtension2/electron-main/myextension2-electron-main-module" + }] +} +``` + +Each extension can consist of the following modules: +- `frontend` is used in the browser env and as well in the electron if `frontendElectron` is not provided +- `frontendElectron` is used in the electron env +- `backend` is used in the node env and as well in the electron env if `backendElectron` is not provided +- `backendElectron` is used in the electron env + +An extension module should have a default export of `ContainerModule | Promise` type. + +## Theia Application + +A Theia application is a node package listing [Theia extensions](#theia-extension) as dependencies and managed with [Theia CLI](../../dev-packages/cli/README.md). + ## Logging configuration It's possible to change the log level for the entire Theia application by diff --git a/packages/extension-manager/README.md b/packages/extension-manager/README.md index 825563ef77d23..6849d941a9424 100644 --- a/packages/extension-manager/README.md +++ b/packages/extension-manager/README.md @@ -1,37 +1,7 @@ # Theia - Extension Manager -See [here](https://www.theia-ide.org/doc/index.html) for a detailed documentation. - -## Theia Extension - -A Theia extension is a node package declaring `theiaExtensions` property in `package.json`: - -```json -{ - "theiaExtensions": [{ - "frontend": "lib/myExtension/browser/myextension-frontend-module", - "backend": "lib/myExtension/node/myextension-backend-module", - }, { - "frontend": "lib/myExtension2/browser/myextension2-browser-module", - "frontendElectron": "lib/myExtension2/electron-browser/myextension2-electron-browser-module", - "backend": "lib/myExtension2/node/myextension2-node-module", - "backendElectron": "lib/myExtension2/electron-main/myextension2-electron-main-module" - }] -} -``` - -Each extension can consist of the following modules: -- `frontend` is used in the browser env and as well in the electron if `frontendElectron` is not provided -- `frontendElectron` is used in the electron env -- `backend` is used in the node env and as well in the electron env if `backendElectron` is not provided -- `backendElectron` is used in the electron env - -An extension module should have a default export of `ContainerModule | Promise` type. - -## Theia Application - -A Theia application is a node package listing [Theia extensions](#theia-extension) as dependencies and managed with [Theia CLI](../../dev-packages/cli/README.md). +This extension is depreacted. It will be merged into the plugin management eventually in order to reuse UI. ## License - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/) -- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp) \ No newline at end of file +- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp) diff --git a/tsconfig.json b/tsconfig.json index 3e2c0edd6da6a..52dc87d9236ce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,9 +16,6 @@ "@theia/core/lib/*": [ "packages/core/src/*" ], - "@theia/extension-manager/lib/*": [ - "packages/extension-manager/src/*" - ], "@theia/filesystem/lib/*": [ "packages/filesystem/src/*" ],