Skip to content

Commit

Permalink
Merge pull request #47 from Open-Sourced-Olaf/reset-commit
Browse files Browse the repository at this point in the history
Revert "refactor naming for extension ids (#46)"
  • Loading branch information
ShrillShrestha authored Feb 27, 2021
2 parents 3f80f18 + eeda53b commit 887b06e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 19 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,21 @@ Rather than having a separate Kanban board for collaborating on projects separat
- Rollup
- GitHub API (Apollo GraphQL)

## Icon source
- [Codicons](https://microsoft.github.io/vscode-codicons/dist/codicon.html)

## Contributors

- [Samuel Yuan](https://github.com/yuansamuel)
- [Shrill Shrestha](https://github.com/shrillshrestha)
- [Aitik Gupta](https://github.com/aitikgupta)
- [Dean Gladish](https://github.com/gladishd)
- [Samuel Yuan] (https://github.com/yuansamuel)
- [Shrill Shrestha] (https://github.com/shrillshrestha)
- [Aitik Gupta] (https://github.com/aitikgupta)
- [Dean Gladish] (https://github.com/gladishd)

## How to run locally?
- `git` clone https://github.com/Open-Sourced-Olaf/vscode-github-projects.git
- `cd` into the project folder
- `code .`
- `npm install`
- `npm run webpack`
- git clone https://github.com/Open-Sourced-Olaf/vscode-github-projects.git
- npm install
- npm run watch
- code .
- fn + F5 (or Launch Extension in command palette)
- Don't forget to sign in with GitHub!

Expand Down
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@
"Other"
],
"activationEvents": [
"onView:vsc-github-projects",
"onCommand:vscode-github-projects.revelProjects"
"onView:proj-sidebar",
"onCommand:vscode-github-projects.helloWorld",
"onCommand:vscode-github-projects.showWarningMessage"
],
"main": "./dist/extension",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "vsc-github-projects-view",
"id": "proj-sidebar-view",
"title": "VS-GitHub-Projects",
"icon": "media/project.svg"
}
]
},
"views": {
"vsc-github-projects-view": [
"proj-sidebar-view": [
{
"type": "webview",
"id": "vsc-github-projects",
"id": "proj-sidebar",
"name": "VS-GitHub-Projects",
"icon": "media/project.svg",
"contextualTitle": "VS-GitHub-Projects"
Expand All @@ -37,9 +38,12 @@
},
"commands": [
{
"command": "vscode-github-projects.revelProjects",
"title": "Revel Projects",
"category": "VSCODE-GITHUB-PROJECTS"
"command": "vscode-github-projects.helloWorld",
"title": "Hello World"
},
{
"command": "vscode-github-projects.showWarningMessage",
"title": "Show Warning Message"
}
]
},
Expand Down
17 changes: 15 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,29 @@ export function activate(context: vscode.ExtensionContext) {
const sidebarProvider = new SidebarProvider(context.extensionUri, context);
context.subscriptions.push(
vscode.window.registerWebviewViewProvider(
"vsc-github-projects",
"proj-sidebar",
sidebarProvider
)
);

context.subscriptions.push(vscode.commands.registerCommand('vscode-github-projects.revelProjects', () => {
// Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated
console.log('Congratulations, your extension "vscode-github-projects" is now active!');

// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
context.subscriptions.push(vscode.commands.registerCommand('vscode-github-projects.helloWorld', () => {
// The code you place here will be executed every time your command is executed
HomePanel.createOrShow(context.extensionUri, {});
})
);

context.subscriptions.push(vscode.commands.registerCommand('vscode-github-projects.showWarningMessage', () => {
//warning message
vscode.window.showWarningMessage("Hey, here's a sample warning message");
})
);
}

// this method is called when your extension is deactivated
Expand Down

0 comments on commit 887b06e

Please sign in to comment.