Skip to content

Commit 29b5e75

Browse files
TheZokerdzungbk156mohschmidroxhens
committed
#5 - Initial theia plugin code
Co-authored-by: dzungbk156 <[email protected]> Co-authored-by: mohschmid <[email protected]> Co-authored-by: roxhens <[email protected]>
1 parent e647a9a commit 29b5e75

File tree

9 files changed

+1416
-0
lines changed

9 files changed

+1416
-0
lines changed

theia-plugin/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
node_modules/
3+
*.theia

theia-plugin/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# theia-plugin
2+
theia-plugin Plugin example for Theia.

theia-plugin/lib/theia-plugin-backend.js

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theia-plugin/lib/theia-plugin-backend.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theia-plugin/package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "theia-plugin",
3+
"publisher": "theia",
4+
"keywords": [
5+
"theia-plugin"
6+
],
7+
"version": "0.0.1",
8+
"license": "none",
9+
10+
"files": [
11+
"src"
12+
],
13+
"devDependencies": {
14+
"@theia/plugin": "next",
15+
"@theia/plugin-packager": "latest",
16+
"rimraf": "2.6.2",
17+
"typescript-formatter": "7.2.2",
18+
"typescript": "2.9.2"
19+
},
20+
"scripts": {
21+
"prepare": "yarn run clean && yarn run build",
22+
"clean": "rimraf lib",
23+
"format-code": "tsfmt -r",
24+
"watch": "tsc -watch",
25+
"compile": "tsc",
26+
"build": "yarn run format-code && yarn run compile && theia:plugin pack"
27+
},
28+
"engines": {
29+
"theiaPlugin": "next"
30+
},
31+
"theiaPlugin": {
32+
33+
34+
"backend": "lib/theia-plugin-backend.js"
35+
36+
}
37+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
/**
3+
* Generated using theia-plugin-generator
4+
*/
5+
6+
import * as theia from '@theia/plugin';
7+
8+
export function start(context: theia.PluginContext) {
9+
const informationMessageTestCommand = {
10+
id: 'hello-world-example-generated',
11+
label: "Hello World"
12+
};
13+
context.subscriptions.push(theia.commands.registerCommand(informationMessageTestCommand, (...args: any[]) => {
14+
theia.window.showInformationMessage('Hello World!');
15+
}));
16+
17+
}
18+
19+
export function stop() {
20+
21+
}

theia-plugin/tsconfig.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
"strict": true,
4+
"experimentalDecorators": true,
5+
"noUnusedLocals": true,
6+
"emitDecoratorMetadata": true,
7+
"downlevelIteration": true,
8+
"module": "commonjs",
9+
"moduleResolution": "node",
10+
"target": "es5",
11+
"lib": [
12+
"es6",
13+
14+
15+
"webworker"
16+
17+
],
18+
"sourceMap": true,
19+
"rootDir": "src",
20+
"outDir": "lib"
21+
},
22+
"include": [
23+
"src"
24+
]
25+
}

theia-plugin/tsfmt.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"baseIndentSize": 0,
3+
"newLineCharacter": "\n",
4+
"indentSize": 4,
5+
"tabSize": 4,
6+
"indentStyle": 4,
7+
"convertTabsToSpaces": true,
8+
"insertSpaceAfterCommaDelimiter": true,
9+
"insertSpaceAfterSemicolonInForStatements": true,
10+
"insertSpaceBeforeAndAfterBinaryOperators": true,
11+
"insertSpaceAfterKeywordsInControlFlowStatements": true,
12+
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
13+
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
14+
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
15+
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
16+
"placeOpenBraceOnNewLineForFunctions": false,
17+
"placeOpenBraceOnNewLineForControlBlocks": false
18+
}

0 commit comments

Comments
 (0)