Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { IPromptsService } from '../../../../workbench/contrib/chat/common/promp
import { PromptsType } from '../../../../workbench/contrib/chat/common/promptSyntax/promptTypes.js';
import { AICustomizationManagementSection } from '../../../../workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js';
import { AICustomizationManagementEditorInput } from '../../../../workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js';
import { AICustomizationManagementEditor } from '../../../../workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js';
import { agentIcon, instructionsIcon, mcpServerIcon, pluginIcon, skillIcon } from '../../../../workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js';
import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
import { IAICustomizationWorkspaceService } from '../../../../workbench/contrib/chat/common/aiCustomizationWorkspaceService.js';
Expand Down Expand Up @@ -222,7 +223,13 @@ export class AICustomizationOverviewView extends ViewPane {

private async openOverview(): Promise<void> {
const input = AICustomizationManagementEditorInput.getOrCreate();
await this.editorService.openEditor(input, { pinned: true });
const editor = await this.editorService.openEditor(input, { pinned: true });

// Always reset to the welcome page when opening from the sidebar,
// so we don't restore the previously selected section.
if (editor instanceof AICustomizationManagementEditor) {
editor.showWelcomePage();
}
Comment thread
joshspicer marked this conversation as resolved.
}

protected override layoutBody(height: number, width: number): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ export class AICustomizationManagementEditor extends EditorPane {
/**
* Navigates to the welcome page (no section selected).
*/
private showWelcomePage(): void {
public showWelcomePage(): void {
if (this.viewMode === 'editor') {
this.goBackToList();
}
Expand Down
Loading