Skip to content

Commit 6940de0

Browse files
committed
Initial implementation of github integration
1 parent a4cc9ce commit 6940de0

17 files changed

+621
-27
lines changed

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Magnus Ihse Bursie
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

media/duke.png

3.39 KB
Loading

media/duke.svg

Lines changed: 10 additions & 0 deletions
Loading

media/github-bug.svg

Lines changed: 4 additions & 0 deletions
Loading

media/github-conversation.svg

Lines changed: 4 additions & 0 deletions
Loading

media/github-diff.svg

Lines changed: 4 additions & 0 deletions
Loading

media/github-item.svg

Lines changed: 4 additions & 0 deletions
Loading

media/github-logo.svg

Lines changed: 5 additions & 0 deletions
Loading

media/github-notification.svg

Lines changed: 5 additions & 0 deletions
Loading

media/github-overview.svg

Lines changed: 4 additions & 0 deletions
Loading

media/github-pullrequest.svg

Lines changed: 4 additions & 0 deletions
Loading

media/github-tags.svg

Lines changed: 4 additions & 0 deletions
Loading

package-lock.json

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

package.json

Lines changed: 89 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,113 @@
11
{
2-
"name": "openjdk-dev",
3-
"publisher": "magicus",
2+
"name": "openjdk-devel",
3+
"version": "0.0.1",
44
"displayName": "OpenJDK Development",
55
"description": "Support for OpenJDK developers",
6-
"version": "0.0.1",
6+
"publisher": "magicus",
77
"author": {
88
"name": "magicus"
99
},
10+
"license": "SEE LICENSE IN LICENSE.txt",
1011
"keywords": [
1112
"jdk",
1213
"openjdk",
1314
"github",
1415
"development"
1516
],
16-
"engines": {
17-
"vscode": "^1.61.0"
18-
},
1917
"categories": [
2018
"Other"
2119
],
20+
"icon": "media/duke.png",
21+
"galleryBanner": {
22+
"color": "338feb",
23+
"theme": "light"
24+
},
25+
"homepage": "https://github.com/magicus/vscode-openjdk-devel",
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/magicus/vscode-openjdk-devel.git"
29+
},
30+
"bugs": {
31+
"url": "https://github.com/magicus/vscode-openjdk-devel/issues"
32+
},
33+
"main": "./dist/extension.js",
34+
"engines": {
35+
"vscode": "^1.61.0"
36+
},
2237
"extensionKind": [
2338
"ui",
2439
"workspace"
2540
],
2641
"activationEvents": [
27-
"onCommand:openjdk-dev.helloWorld"
42+
"onView:gitHubIntegration"
2843
],
29-
"main": "./dist/extension.js",
3044
"contributes": {
45+
"configuration": {
46+
"title": "OpenJDK Development",
47+
"properties": {
48+
"openjdkDevel.github.apiToken": {
49+
"type": "string",
50+
"default": "",
51+
"markdownDescription": "Your GitHub API access token. Create a new token [at GitHub](https://github.com/settings/tokens) and paste it here."
52+
},
53+
"openjdkDevel.locale": {
54+
"type": "string",
55+
"default": "",
56+
"description": "Locale descriptor to override default (e.g. 'sv-SE')"
57+
}
58+
}
59+
},
3160
"commands": [
3261
{
33-
"command": "openjdk-dev.helloWorld",
34-
"title": "Hello World"
62+
"command": "openjdkDevel.gitHubIntegration.refresh",
63+
"title": "Refresh GitHub Integration",
64+
"category": "JDK Development",
65+
"icon": "$(refresh)"
66+
},
67+
{
68+
"command": "openjdkDevel.setGithubToken",
69+
"title": "Setup GitHub API Token",
70+
"category": "JDK Development"
71+
}
72+
],
73+
"menus": {
74+
"commandPalette": [
75+
{
76+
"command": "openjdkDevel.gitHubIntegration.refresh",
77+
"when": "false"
78+
}
79+
],
80+
"view/title": [
81+
{
82+
"command": "openjdkDevel.gitHubIntegration.refresh",
83+
"when": "view == gitHubIntegration",
84+
"group": "navigation@10"
85+
}
86+
]
87+
},
88+
"viewsContainers": {
89+
"activitybar": [
90+
{
91+
"id": "openjdk-devel",
92+
"title": "OpenJDK Development",
93+
"icon": "media/duke.svg"
94+
}
95+
]
96+
},
97+
"views": {
98+
"openjdk-devel": [
99+
{
100+
"id": "gitHubIntegration",
101+
"name": "GitHub Integration",
102+
"icon": "media/github-logo.svg"
103+
}
104+
]
105+
},
106+
"viewsWelcome": [
107+
{
108+
"view": "gitHubIntegration",
109+
"contents": "In order to use the GitHub integration, you need to specify a GitHub API token.\n[Setup GitHub token](command:openjdkDevel.setGithubToken)",
110+
"when": "config.openjdkDevel.github.apiToken == ''"
35111
}
36112
]
37113
},
@@ -46,6 +122,9 @@
46122
"lint": "eslint src --ext ts",
47123
"test": "node ./out/test/runTest.js"
48124
},
125+
"dependencies": {
126+
"node-fetch": ">=2.6.1"
127+
},
49128
"devDependencies": {
50129
"@types/vscode": "^1.61.0",
51130
"@types/glob": "^7.1.4",

0 commit comments

Comments
 (0)