feat: open autocomplete tab directly from status bar settings link

The settingsButtonClicked command now accepts an optional tab argument,
and the autocomplete status bar passes "autocomplete" via the command
URI so clicking the settings link deep-links to the autocomplete tab.
This commit is contained in:
Mark IJbema
2026-03-16 13:00:27 +01:00
parent 91c3c6683f
commit 0b42d8aec6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand("kilo-code.new.profileButtonClicked", () => {
settingsEditorProvider.openPanel("profile")
}),
vscode.commands.registerCommand("kilo-code.new.settingsButtonClicked", () => {
settingsEditorProvider.openPanel("settings")
vscode.commands.registerCommand("kilo-code.new.settingsButtonClicked", (tab?: string) => {
settingsEditorProvider.openPanel("settings", tab)
}),
// legacy-migration start
vscode.commands.registerCommand("kilo-code.new.openMigrationWizard", () => {
@@ -4,7 +4,7 @@ import type { AutocompleteStatusBarStateProps } from "./types"
import { humanFormatSessionCost, formatTime } from "./statusbar-utils"
const SUPPORTED_PROVIDER_DISPLAY_NAME = "Kilo Gateway"
const SETTINGS_COMMAND = "command:kilo-code.new.settingsButtonClicked"
const SETTINGS_COMMAND = `command:kilo-code.new.settingsButtonClicked?${encodeURIComponent(JSON.stringify(["autocomplete"]))}`
export class AutocompleteStatusBar {
statusBar: vscode.StatusBarItem