Skip to content

Commit cee6877

Browse files
committed
ECOSYS-93 Payara Server's lifecycle operation support in VSCode
1 parent e075fc2 commit cee6877

25 files changed

+2105
-88
lines changed

Diff for: .vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"type": "yarn",
7+
"type": "npm",
88
"script": "watch",
99
"problemMatcher": "$tsc-watch",
1010
"isBackground": true,

Diff for: package.json

+165-22
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,23 @@
1414
"Payara"
1515
],
1616
"engines": {
17-
"vscode": "^1.40.0"
17+
"vscode": "^1.22.0"
1818
},
1919
"categories": [
2020
"Other"
2121
],
2222
"activationEvents": [
2323
"onCommand:payara.server.add",
24-
"onCommand:payara.server.remove",
25-
"onCommand:payara.server.rename",
2624
"onCommand:payara.server.refresh",
25+
"onCommand:payara.server.start",
26+
"onCommand:payara.server.start.debug",
27+
"onCommand:payara.server.restart",
28+
"onCommand:payara.server.stop",
29+
"onCommand:payara.server.rename",
30+
"onCommand:payara.server.remove",
31+
"onCommand:payara.server.console.open",
32+
"onCommand:payara.server.log.open",
33+
"onCommand:payara.server.config.open",
2734
"onView:payaraServerExplorer",
2835
"onView:payaraServer"
2936
],
@@ -35,13 +42,37 @@
3542
"title": "Add Payara Server",
3643
"category": "Payara",
3744
"icon": {
38-
"light": "resources/light/add.svg",
39-
"dark": "resources/dark/add.svg"
45+
"light": "resources/theme/light/add.svg",
46+
"dark": "resources/theme/dark/add.svg"
4047
}
4148
},
4249
{
43-
"command": "payara.server.remove",
44-
"title": "Remove Payara Server",
50+
"command": "payara.server.refresh",
51+
"title": "Refresh Payara Servers",
52+
"category": "Payara",
53+
"icon": {
54+
"light": "resources/theme/light/refresh.svg",
55+
"dark": "resources/theme/dark/refresh.svg"
56+
}
57+
},
58+
{
59+
"command": "payara.server.start",
60+
"title": "Start Payara Server",
61+
"category": "Payara"
62+
},
63+
{
64+
"command": "payara.server.start.debug",
65+
"title": "Start in Debug Mode",
66+
"category": "Payara"
67+
},
68+
{
69+
"command": "payara.server.restart",
70+
"title": "Restart Payara Server",
71+
"category": "Payara"
72+
},
73+
{
74+
"command": "payara.server.stop",
75+
"title": "Stop Payara Server",
4576
"category": "Payara"
4677
},
4778
{
@@ -50,21 +81,60 @@
5081
"category": "Payara"
5182
},
5283
{
53-
"command": "payara.server.refresh",
54-
"title": "Refresh Payara Servers",
55-
"category": "Payara",
56-
"icon": {
57-
"light": "resources/light/refresh.svg",
58-
"dark": "resources/dark/refresh.svg"
59-
}
84+
"command": "payara.server.remove",
85+
"title": "Remove Payara Server",
86+
"category": "Payara"
6087
},
6188
{
62-
"command": "payara.server.remove.context",
63-
"title": "Remove"
89+
"command": "payara.server.console.open",
90+
"title": "View Domain Admin Console",
91+
"category": "Payara"
92+
},
93+
{
94+
"command": "payara.server.log.open",
95+
"title": "View Domain Server Log",
96+
"category": "Payara"
97+
},
98+
{
99+
"command": "payara.server.config.open",
100+
"title": "View Domain Server Config",
101+
"category": "Payara"
102+
},
103+
{
104+
"command": "payara.server.start.context",
105+
"title": "Start"
106+
},
107+
{
108+
"command": "payara.server.start.debug.context",
109+
"title": "Start in Debug Mode"
110+
},
111+
{
112+
"command": "payara.server.restart.context",
113+
"title": "Restart"
114+
},
115+
{
116+
"command": "payara.server.stop.context",
117+
"title": "Stop"
64118
},
65119
{
66120
"command": "payara.server.rename.context",
67121
"title": "Rename"
122+
},
123+
{
124+
"command": "payara.server.remove.context",
125+
"title": "Remove"
126+
},
127+
{
128+
"command": "payara.server.console.open.context",
129+
"title": "View Domain Admin Console"
130+
},
131+
{
132+
"command": "payara.server.log.open.context",
133+
"title": "View Domain Server Log"
134+
},
135+
{
136+
"command": "payara.server.config.open.context",
137+
"title": "View Domain Server Config"
68138
}
69139
],
70140
"views": {
@@ -104,23 +174,88 @@
104174
}
105175
],
106176
"commandPalette": [
177+
{
178+
"command": "payara.server.start.context",
179+
"when": "never"
180+
},
181+
{
182+
"command": "payara.server.start.debug.context",
183+
"when": "never"
184+
},
185+
{
186+
"command": "payara.server.restart.context",
187+
"when": "never"
188+
},
189+
{
190+
"command": "payara.server.stop.context",
191+
"when": "never"
192+
},
107193
{
108194
"command": "payara.server.remove.context",
109195
"when": "never"
110196
},
111197
{
112198
"command": "payara.server.rename.context",
113199
"when": "never"
200+
},
201+
{
202+
"command": "payara.server.console.open.context",
203+
"when": "never"
204+
},
205+
{
206+
"command": "payara.server.log.open.context",
207+
"when": "never"
208+
},
209+
{
210+
"command": "payara.server.config.open.context",
211+
"when": "never"
114212
}
115213
],
116214
"view/item/context": [
117215
{
118-
"command": "payara.server.remove.context",
119-
"when": "view == payaraServerExplorer || view == payaraServer"
216+
"command": "payara.server.start.context",
217+
"when": "view == payaraServerExplorer || view == payaraServer",
218+
"group": "manage@0"
219+
},
220+
{
221+
"command": "payara.server.start.debug.context",
222+
"when": "view == payaraServerExplorer || view == payaraServer",
223+
"group": "manage@1"
224+
},
225+
{
226+
"command": "payara.server.restart.context",
227+
"when": "view == payaraServerExplorer || view == payaraServer",
228+
"group": "manage@2"
229+
},
230+
{
231+
"command": "payara.server.stop.context",
232+
"when": "view == payaraServerExplorer || view == payaraServer",
233+
"group": "manage@3"
120234
},
121235
{
122236
"command": "payara.server.rename.context",
123-
"when": "view == payaraServerExplorer || view == payaraServer"
237+
"when": "view == payaraServerExplorer || view == payaraServer",
238+
"group": "update@4"
239+
},
240+
{
241+
"command": "payara.server.remove.context",
242+
"when": "view == payaraServerExplorer || view == payaraServer",
243+
"group": "update@5"
244+
},
245+
{
246+
"command": "payara.server.console.open.context",
247+
"when": "view == payaraServerExplorer || view == payaraServer",
248+
"group": "view@6"
249+
},
250+
{
251+
"command": "payara.server.log.open.context",
252+
"when": "view == payaraServerExplorer || view == payaraServer",
253+
"group": "view@7"
254+
},
255+
{
256+
"command": "payara.server.config.open.context",
257+
"when": "view == payaraServerExplorer || view == payaraServer",
258+
"group": "view@8"
124259
}
125260
]
126261
}
@@ -133,8 +268,15 @@
133268
"test": "node ./out/test/runTest.js"
134269
},
135270
"dependencies": {
271+
"@types/tail": "^2.0.0",
272+
"@types/xml2js": "^0.4.5",
136273
"fs-extra": "^8.1.0",
137-
"lodash": "^4.17.15"
274+
"lodash": "^4.17.15",
275+
"open": "^6.2.1 ",
276+
"request": "^2.88.0",
277+
"sync-request": "^6.1.0",
278+
"tail": "^2.0.3",
279+
"xml2js": "^0.4.23"
138280
},
139281
"devDependencies": {
140282
"@types/glob": "^7.1.1",
@@ -147,6 +289,7 @@
147289
"mocha": "^6.2.2",
148290
"typescript": "^3.6.4",
149291
"tslint": "^5.20.0",
150-
"vscode-test": "^1.2.2"
292+
"vscode-test": "^1.2.2",
293+
"os": "^0.1.1"
151294
}
152-
}
295+
}

Diff for: resources/payara-loading.svg

+30
Loading

Diff for: resources/payara-started-debug.svg

+34
Loading

Diff for: resources/payara-started.svg

+30
Loading

0 commit comments

Comments
 (0)