Skip to content

Commit

Permalink
feat: 사이드바 아이콘 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mdgarden committed Oct 5, 2024
1 parent f499f50 commit 2ed9590
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"activationEvents": [
"*",
"onView:mySidebar"
"onView:githruSidebar"
],
"main": "./dist/extension.js",
"contributes": {
Expand Down Expand Up @@ -73,18 +73,18 @@
"viewsContainers": {
"activitybar": [
{
"id": "mySidebarView",
"title": "My Sidebar",
"icon": "path/to/icon.svg"
"id": "githruSidebarView",
"title": "Githru Sidebar",
"icon": "images/logo.png"
}
]
},
"views": {
"mySidebarView": [
"githruSidebarView": [
{
"type": "webview",
"id": "mySidebar",
"name": "My Sidebar"
"id": "githruSidebar",
"name": "Githru Sidebar"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function normalizeFsPath(fsPath: string) {
export async function activate(context: vscode.ExtensionContext) {
const provider = new SidebarProvider(context.extensionUri);

context.subscriptions.push(vscode.window.registerWebviewViewProvider("mySidebar", provider));
context.subscriptions.push(vscode.window.registerWebviewViewProvider("githruSidebar", provider));

const { subscriptions, extensionPath, secrets } = context;
const credentials = new Credentials();
Expand Down

0 comments on commit 2ed9590

Please sign in to comment.