-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed #63 Signed-off-by: Jonas Helming <[email protected]>
- Loading branch information
1 parent
6214ca1
commit 4f4361f
Showing
7 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Backend Communication Example | ||
|
||
The example extension demonstrates how to communicate with backend services. | ||
It contains the following two backend service examples: | ||
* `HelloBackendService`: Can be called by the client to create a "Hello World" string. The client provides a name as a parameter, and the server returns the name prefixed with "Hello" (ex: "World" as a parameter returns "Hello World"). | ||
* `HelloBackendWithClientService`: Same as `HelloBackendService`, but the name parameter is not directly passed by the client in the first call. Instead, the backend services retrieves the name to say "Hello" to from the client again (`BackendClient`). This example shows how to implement call backs from the backend to the client. | ||
Further, the example contributes two commands to trigger both types of backend calls. | ||
|
||
## How to use the backend communication example | ||
|
||
In the running application, trigger the command "Say hello on the backend" or "Say hello on the backend with a callback to the client" via the command palette (F1 => "Say Hello"). A message will be printed out on the console from where you launched the application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Empty Template Extension | ||
|
||
This template extension does not contain any features, but provides an empty stub including a frontend module and a generic contribution. It can be used as a starting point to implement any custom extension. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Hello World Example | ||
|
||
The example extension demonstrates how to register a command in Theia saying "Hello world" using the message service. | ||
|
||
## How to use the Hello World example | ||
|
||
In the running application, trigger the command "Say hello" via the command palette (F1 => "Say Hello"). A message dialog will pop up saying "Hello World". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Example Label Provider | ||
|
||
The example extension demonstrates how to contribute a custom label provider in order to customize the `label` and `icon` when displaying specific file types (using the ".my" file extension as an example). | ||
|
||
## How to use the label provider example | ||
|
||
In the running application, create a new file with the file extension ".my". | ||
The Theia file explorer will be show the file using a custom icon and an augmented label. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Example Widget | ||
|
||
The example extension demonstrates how to contribute a custom widget (i.e. a view or editor) to Eclipse Theia. | ||
|
||
## How to use the widget example | ||
|
||
In the running application, open the widget using the menu "View" => "<%= params.extensionPrefix %> Widget" |