Skip to content

Commit

Permalink
fix #4693: deprecate extension manager
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Apr 11, 2019
1 parent 7d37b12 commit bc063e1
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 37 deletions.
1 change: 0 additions & 1 deletion examples/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion examples/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
32 changes: 32 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
@@ -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<ContainerModule>` 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
Expand Down
34 changes: 2 additions & 32 deletions packages/extension-manager/README.md
Original file line number Diff line number Diff line change
@@ -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<ContainerModule>` 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)
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"@theia/core/lib/*": [
"packages/core/src/*"
],
"@theia/extension-manager/lib/*": [
"packages/extension-manager/src/*"
],
"@theia/filesystem/lib/*": [
"packages/filesystem/src/*"
],
Expand Down

0 comments on commit bc063e1

Please sign in to comment.