Skip to content

Commit 9f433d0

Browse files
committed
Fix commands
1 parent 324387f commit 9f433d0

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

package.json

+7-12
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
"workspace"
4040
],
4141
"activationEvents": [
42-
"onView:gitHubIntegration"
42+
"onView:gitHubIntegration",
43+
"onCommand:openjdkDevel.gitHubIntegration.refresh",
44+
"onCommand:openjdkDevel.setGithubToken",
45+
"onCommand:openjdkDevel.setGithubUsername"
4346
],
4447
"contributes": {
4548
"configuration": {
@@ -66,28 +69,21 @@
6669
{
6770
"command": "openjdkDevel.gitHubIntegration.refresh",
6871
"title": "Refresh GitHub Integration",
69-
"category": "JDK Development",
72+
"category": "OpenJDK Development",
7073
"icon": "$(refresh)"
7174
},
7275
{
7376
"command": "openjdkDevel.setGithubToken",
7477
"title": "Setup GitHub API Token",
75-
"category": "JDK Development"
78+
"category": "OpenJDK Development"
7679
},
7780
{
7881
"command": "openjdkDevel.setGithubUsername",
7982
"title": "Setup GitHub username",
80-
"category": "JDK Development"
83+
"category": "OpenJDK Development"
8184
}
82-
8385
],
8486
"menus": {
85-
"commandPalette": [
86-
{
87-
"command": "openjdkDevel.gitHubIntegration.refresh",
88-
"when": "false"
89-
}
90-
],
9187
"view/title": [
9288
{
9389
"command": "openjdkDevel.gitHubIntegration.refresh",
@@ -125,7 +121,6 @@
125121
"contents": "In order to use the GitHub integration, you need to specify a GitHub user name.\n[Setup GitHub user name](command:openjdkDevel.setGithubUsername)",
126122
"when": "config.openjdkDevel.github.username == ''"
127123
}
128-
129124
]
130125
},
131126
"scripts": {

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { GitHubProvider } from './github';
44

55
// this method is called when your extension is activated
66
// your extension is activated the very first time the command is executed
7-
export function activate(context: vscode.ExtensionContext) {
7+
export function activate(context: vscode.ExtensionContext): void {
88
console.log('Loading extension "OpenJDK Development"');
99

1010
const githubProvider = new GitHubProvider();

0 commit comments

Comments
 (0)