Skip to content

Commit 751dc13

Browse files
WIP: Editing Profile via UI
1 parent 581baae commit 751dc13

File tree

3 files changed

+296
-109
lines changed

3 files changed

+296
-109
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This is for if you want to enhance the extension or fix bugs.
7070
> [!TIP]
7171
> You don't usually need to run this from source unless you are working on this extension.
7272
73-
Open this repo via `code .` and then press F5 to run a new workspace with this in it.
73+
Open this repo via `code .`, open `src/extension.ts` and then press F5 to run a new workspace with this in it.
7474

7575
### Packaging the Extension
7676

package.json

+70-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
"license": "Apache-2.0",
1616
"description": "This is a vscode extension for goose: a programming agent that runs on your machine. Consider this extension experimental at this stage. You need goose-ai package installed for this to work. https://github.com/block-open-source/goose",
1717
"devDependencies": {
18+
"@types/js-yaml": "^4.0.9",
1819
"@types/node": "^22.3.0",
1920
"@types/vscode": "^1.91.0",
2021
"typescript": "^5.5.4",
2122
"vsce": "^2.15.0"
2223
},
2324
"dependencies": {
24-
"@vscode/l10n": "^0.0.18"
25+
"@vscode/l10n": "^0.0.18",
26+
"js-yaml": "^4.1.0"
2527
},
2628
"engines": {
2729
"vscode": "^1.91.1"
@@ -34,6 +36,29 @@
3436
"*"
3537
],
3638
"contributes": {
39+
"viewsContainers": {
40+
"activitybar": [
41+
{
42+
"id": "profileManager",
43+
"title": "Profile Manager",
44+
"icon": "goose-icon.png"
45+
}
46+
]
47+
},
48+
"views": {
49+
"profileManager": [
50+
{
51+
"type": "webview",
52+
"id": "profileFormView",
53+
"name": "Profile Form"
54+
},
55+
{
56+
"type": "tree",
57+
"id": "profileExplorer",
58+
"name": "Profiles"
59+
}
60+
]
61+
},
3762
"configuration": {
3863
"type": "object",
3964
"title": "Goose Settings",
@@ -58,6 +83,26 @@
5883
{
5984
"command": "extension.openGoose",
6085
"title": "🪿 open goose 🪿"
86+
},
87+
{
88+
"command": "extension.refreshProfiles",
89+
"title": "🪿 Refresh Profiles"
90+
},
91+
{
92+
"command": "extension.addProfile",
93+
"title": "🪿 Add Profile"
94+
},
95+
{
96+
"command": "profileExplorer.select",
97+
"title": "Select Profile"
98+
},
99+
{
100+
"command": "extension.updateProfile",
101+
"title": "Update Profile"
102+
},
103+
{
104+
"command": "extension.deleteProfile",
105+
"title": "🪿 Delete Profile"
61106
}
62107
],
63108
"menus": {
@@ -67,6 +112,30 @@
67112
"when": "editorHasSelection",
68113
"group": "navigation"
69114
}
115+
],
116+
"view/title": [
117+
{
118+
"command": "extension.refreshProfiles",
119+
"when": "view == profileExplorer",
120+
"group": "navigation"
121+
},
122+
{
123+
"command": "extension.addProfile",
124+
"when": "view == profileExplorer",
125+
"group": "navigation"
126+
}
127+
],
128+
"view/item/context": [
129+
{
130+
"command": "profileExplorer.select",
131+
"when": "view == profileExplorer",
132+
"group": "inline"
133+
},
134+
{
135+
"command": "extension.deleteProfile",
136+
"when": "view == profileExplorer",
137+
"group": "inline"
138+
}
70139
]
71140
}
72141
}

0 commit comments

Comments
 (0)