Skip to content

Adds more fixtures#302840

Merged
hediet merged 1 commit intomainfrom
hediet/b/quintessential-horse
Mar 18, 2026
Merged

Adds more fixtures#302840
hediet merged 1 commit intomainfrom
hediet/b/quintessential-horse

Conversation

@hediet
Copy link
Member

@hediet hediet commented Mar 18, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 18, 2026 14:27
@hediet hediet enabled auto-merge (rebase) March 18, 2026 14:27
@hediet hediet self-assigned this Mar 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds new component-explorer fixtures under src/vs/workbench/test/browser/componentFixtures/ to broaden UI coverage for additional workbench/editor components (peek references, image carousel, and chat input).

Changes:

  • Add a Peek References widget fixture backed by an in-memory editor model.
  • Add an Image Carousel editor fixture with generated in-memory PNG images and multiple collection layouts.
  • Add a Chat Input fixture with menu/tooling/todos/artifacts variations using mocked services.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/vs/workbench/test/browser/componentFixtures/peekReference.fixture.ts Adds a themed fixture that renders the references peek UI inside a code editor.
src/vs/workbench/test/browser/componentFixtures/imageCarousel.fixture.ts Adds themed fixtures for the Image Carousel editor with several sample collections.
src/vs/workbench/test/browser/componentFixtures/chatInput.fixture.ts Adds themed fixtures for ChatInputPart across multiple states (default, artifacts, edits, todos).

Comment on lines +119 to +121
const model = new ReferencesModel(links, 'processFile');
disposableStore.add(model);
referenceWidget.setModel(model);
Comment on lines +105 to +106
// eslint-disable-next-line local/code-no-dangerous-type-assertions
reg.defineInstance(ITextModelService, new class extends mock<ITextModelService>() { override async createModelReference() { return { object: { textEditorModel: null }, dispose() { } } as unknown as Awaited<ReturnType<ITextModelService['createModelReference']>>; } }());
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 18, 2026
@hediet hediet force-pushed the hediet/b/quintessential-horse branch from 148d796 to 0206bda Compare March 18, 2026 15:59
@hediet hediet merged commit c29acf3 into main Mar 18, 2026
20 checks passed
@hediet hediet deleted the hediet/b/quintessential-horse branch March 18, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants