From c9352c0fd17d4a0b43389ae4347371402927c0e8 Mon Sep 17 00:00:00 2001 From: Mykola Morhun Date: Tue, 8 May 2018 16:30:28 +0300 Subject: [PATCH 1/2] Make plugin-ext npm module Signed-off-by: Mykola Morhun --- packages/plugin-ext/package.json | 2 ++ packages/plugin-ext/src/common/index.ts | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 packages/plugin-ext/src/common/index.ts diff --git a/packages/plugin-ext/package.json b/packages/plugin-ext/package.json index 43b1cd5a05a0e..df085cb4ccb28 100644 --- a/packages/plugin-ext/package.json +++ b/packages/plugin-ext/package.json @@ -2,6 +2,8 @@ "name": "@theia/plugin-ext", "version": "0.3.10", "description": "Theia - Plugin Extension", + "main": "lib/common/index.js", + "typings": "lib/common/index.d.ts", "dependencies": { "@theia/core": "^0.3.10", "@theia/filesystem": "^0.3.10", diff --git a/packages/plugin-ext/src/common/index.ts b/packages/plugin-ext/src/common/index.ts new file mode 100644 index 0000000000000..2371511f44376 --- /dev/null +++ b/packages/plugin-ext/src/common/index.ts @@ -0,0 +1,8 @@ +/* + * Copyright (C) 2018 Red Hat, Inc. and others. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + */ + +export * from '../hosted/node/hosted-plugin-uri-postprocessor'; From 0fe6719b86a1884fa494440ece825b3b730f13b5 Mon Sep 17 00:00:00 2001 From: Mykola Morhun Date: Tue, 8 May 2018 17:11:34 +0300 Subject: [PATCH 2/2] Add comments about contribution points Signed-off-by: Mykola Morhun --- packages/plugin-ext/README.md | 3 +++ packages/plugin-ext/src/common/index.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/packages/plugin-ext/README.md b/packages/plugin-ext/README.md index 1cbcdac10ae1d..87424f7bb975f 100644 --- a/packages/plugin-ext/README.md +++ b/packages/plugin-ext/README.md @@ -2,5 +2,8 @@ See [here](https://github.com/theia-ide/theia) for a detailed documentation. +## Contribution points: + - Hosted Istance uri post processor + ## License [Apache-2.0](https://github.com/theia-ide/theia/blob/master/LICENSE) diff --git a/packages/plugin-ext/src/common/index.ts b/packages/plugin-ext/src/common/index.ts index 2371511f44376..a04919b6b09bb 100644 --- a/packages/plugin-ext/src/common/index.ts +++ b/packages/plugin-ext/src/common/index.ts @@ -5,4 +5,6 @@ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ +// Exports contribution point for uri postprocessor of hosted plugin manager. +// This could be used to alter hosted instance uri, for example, change port. export * from '../hosted/node/hosted-plugin-uri-postprocessor';