Skip to content

Commit a03baa4

Browse files
Merge pull request #4862 from Kilo-Org/catrielmuller/open-action-on-editor-actions
Kilo Icon on editor actions
2 parents c65b798 + 10ce725 commit a03baa4

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

.changeset/cold-sheep-feel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Add Kilo icon to editor toolbar for quick access to open Kilo from any context

packages/types/src/vscode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const commandIds = [
4141
"settingsButtonClicked",
4242

4343
"openInNewTab",
44+
"open", // kilocode_change
4445
"agentManagerOpen", // kilocode_change
4546

4647
"showHumanRelayDialog",

src/activate/registerCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
129129

130130
return openClineInNewTab({ context, outputChannel })
131131
},
132+
open: () => openClineInNewTab({ context, outputChannel }), // kilocode_change
132133
openInNewTab: () => openClineInNewTab({ context, outputChannel }),
133134
settingsButtonClicked: () => {
134135
const visibleProvider = getVisibleProviderOrLog(outputChannel)

src/package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@
293293
"title": "Open Agent Manager",
294294
"icon": "$(circuit-board)",
295295
"category": "%configuration.title%"
296+
},
297+
{
298+
"command": "kilo-code.popoutButtonClicked",
299+
"title": "%command.openInEditor.title%",
300+
"icon": "$(link-external)"
301+
},
302+
{
303+
"command": "kilo-code.open",
304+
"title": "%views.activitybar.title%",
305+
"icon": {
306+
"light": "assets/icons/kilo-light.svg",
307+
"dark": "assets/icons/kilo-dark.svg"
308+
}
296309
}
297310
],
298311
"menus": {
@@ -403,11 +416,6 @@
403416
"group": "navigation@3",
404417
"when": "activeWebviewPanelId == kilo-code.TabPanelProvider"
405418
},
406-
{
407-
"command": "kilo-code.popoutButtonClicked",
408-
"group": "navigation@4",
409-
"when": "activeWebviewPanelId == kilo-code.TabPanelProvider"
410-
},
411419
{
412420
"command": "kilo-code.settingsButtonClicked",
413421
"group": "navigation@5",
@@ -417,6 +425,11 @@
417425
"command": "kilo-code.helpButtonClicked",
418426
"group": "navigation@6",
419427
"when": "activeWebviewPanelId == kilo-code.TabPanelProvider"
428+
},
429+
{
430+
"command": "kilo-code.open",
431+
"group": "navigation",
432+
"when": "true"
420433
}
421434
],
422435
"scm/input": [

0 commit comments

Comments
 (0)