Skip to content

Commit 25c76b8

Browse files
committed
refactor: update AI Config editor button locator and remove unused toolbar contribution
1 parent a8ef985 commit 25c76b8

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

packages/app-e2e/e2e/coupled-editors.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ async function openAiConfigWithAuxOnAiAssistant(page: Page) {
2828
await expect(decoyPanel).not.toHaveAttribute('active');
2929
await expect(auxTabs.locator('wa-tab-group')).toHaveAttribute('active', 'aiview');
3030

31-
// Open AI Config editor in the main area (the id the real tab couples to).
32-
const aiConfigButton = page.getByRole('button', { name: /AI Config/i });
31+
// Open AI Config editor from the AI view toolbar (same command as former main-right button).
32+
const aiConfigButton = page.locator('docks-aiview').getByRole('button', { name: /AI Settings/i });
3333
await expect(aiConfigButton).toBeVisible({ timeout: 30_000 });
3434
await aiConfigButton.click();
3535

packages/extension-ai-system/src/ai-system-extension.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { HTMLContribution } from '@eclipse-docks/core';
66
import { editorRegistry } from '@eclipse-docks/core';
77
import type { EditorInput } from '@eclipse-docks/core';
88
import { registerAll, appSettings } from '@eclipse-docks/core';
9-
import { TOOLBAR_BOTTOM, TOOLBAR_MAIN_RIGHT, SIDEBAR_AUXILIARY } from '@eclipse-docks/core';
9+
import { TOOLBAR_BOTTOM, SIDEBAR_AUXILIARY } from '@eclipse-docks/core';
1010
import { CID_AGENTS, KEY_AI_CONFIG } from './core/constants';
1111
import type { AgentContribution, AgentToolsConfig } from './core/interfaces';
1212
import type { AIConfig } from './core/types';
@@ -77,11 +77,6 @@ registerAll({
7777
editorRegistry.loadEditor(editorInput).then();
7878
}
7979
},
80-
contribution: {
81-
target: TOOLBAR_MAIN_RIGHT,
82-
icon: 'robot',
83-
label: 'AI Config'
84-
}
8580
});
8681

8782
rootContext.put('aiService', aiService);

0 commit comments

Comments
 (0)