|
12 | 12 | "activationEvents": [ |
13 | 13 | "onCommand:codecount.countLines", |
14 | 14 | "onCommand:codecount.countFilesLines", |
15 | | - "onCommand:codecount.countLinesByExtension" |
| 15 | + "onCommand:codecount.countLinesByExtension", |
| 16 | + "onCommand:codecount.refreshStats", |
| 17 | + "onCommand:codecount.gitRepoMissing", |
| 18 | + "onView:codecount.stats" |
16 | 19 | ], |
17 | 20 | "main": "./out/extension.js", |
18 | 21 | "contributes": { |
| 22 | + "viewsContainers": { |
| 23 | + "activitybar": [ |
| 24 | + { |
| 25 | + "id": "codecount", |
| 26 | + "title": "CodeCount", |
| 27 | + "icon": "resources/codecount.svg" |
| 28 | + } |
| 29 | + ] |
| 30 | + }, |
| 31 | + "views": { |
| 32 | + "codecount": [ |
| 33 | + { |
| 34 | + "id": "codecount.stats", |
| 35 | + "name": "CodeCount" |
| 36 | + } |
| 37 | + ] |
| 38 | + }, |
19 | 39 | "commands": [ |
20 | | - { |
21 | | - "command": "codecount.helloWorld", |
22 | | - "title": "Hello World" |
23 | | - }, |
24 | 40 | { |
25 | 41 | "command": "codecount.countLines", |
26 | 42 | "title": "Count Lines of Code" |
|
32 | 48 | { |
33 | 49 | "command": "codecount.countLinesByExtension", |
34 | 50 | "title": "Count Lines of Code by Extension" |
| 51 | + }, |
| 52 | + { |
| 53 | + "command": "codecount.refreshStats", |
| 54 | + "title": "Refresh CodeCount Stats" |
| 55 | + }, |
| 56 | + { |
| 57 | + "command": "codecount.gitRepoMissing", |
| 58 | + "title": "Git Repo Missing" |
35 | 59 | } |
36 | | - ] |
| 60 | + ], |
| 61 | + "menus": { |
| 62 | + "view/title": [ |
| 63 | + { |
| 64 | + "command": "codecount.refreshStats", |
| 65 | + "when": "view == codecount.stats", |
| 66 | + "group": "navigation" |
| 67 | + } |
| 68 | + ] |
| 69 | + } |
37 | 70 | }, |
38 | 71 | "scripts": { |
39 | 72 | "vscode:prepublish": "pnpm run compile", |
|
0 commit comments