Skip to content

chore: update npm dependencies#11

Merged
dfuchss merged 3 commits into
mainfrom
copilot/update-dependencies
May 6, 2026
Merged

chore: update npm dependencies#11
dfuchss merged 3 commits into
mainfrom
copilot/update-dependencies

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

  • Replace ThemeIcon('circle-filled', ThemeColor) in HistoryItem with an SVG data-URI icon so the colour is embedded and not overridden by VS Code's selection foreground when the tree item is clicked
  • Add DecorationService.createCircleIconUri(colorHex) helper (consistent with existing gutter-dot helpers)
  • Lint / build checked — all errors are pre-existing environment issues (missing @types/node/vscode stubs), not regressions

Copilot AI and others added 2 commits May 6, 2026 11:56
Agent-Logs-Url: https://github.com/ardoco/traceviz/sessions/51118205-8e62-4d3d-bd8e-0769b52713a3

Co-authored-by: dfuchss <22198798+dfuchss@users.noreply.github.com>
…s tree-item selection

When a tree item is selected VS Code applies list.activeSelectionIconForeground to
ThemeIcon colours, making the circle-filled codicon appear black (light theme) or
white (dark theme) instead of the configured visualisation colour.

Replace the ThemeIcon with a vscode.Uri pointing to an inline SVG data-URI (same
technique already used for gutter dots) so the hex colour is embedded in the image
and is not overridden by selection styles.

Add DecorationService.createCircleIconUri() as a reusable helper alongside the
existing gutter-dot helpers.

Agent-Logs-Url: https://github.com/ardoco/traceviz/sessions/89bcab2d-727f-4c83-b9df-894c893fb76a

Co-authored-by: dfuchss <22198798+dfuchss@users.noreply.github.com>
Copilot finished work on behalf of dfuchss May 6, 2026 12:14
@dfuchss dfuchss marked this pull request as ready for review May 6, 2026 12:20
Copilot AI review requested due to automatic review settings May 6, 2026 12:20
@dfuchss dfuchss merged commit 4c31684 into main May 6, 2026
4 checks passed
@dfuchss dfuchss deleted the copilot/update-dependencies branch May 6, 2026 12:21
Copy link
Copy Markdown

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 updates the Trace History tree item icon rendering to use an SVG data-URI so the active visualization color is preserved even when the item is selected, and refreshes the npm lockfile (including a bump to @vscode/test-cli).

Changes:

  • Replace ThemeIcon('circle-filled', ThemeColor) in HistoryItem with an SVG data-URI icon generated via DecorationService.
  • Add DecorationService.createCircleIconUri(colorHex) helper to generate a single-circle SVG URI.
  • Update @vscode/test-cli (and regenerate package-lock.json, pulling in various transitive updates).

Reviewed changes

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

File Description
src/views/traceHistoryViewProvider.ts Switch active history item icon to an SVG data-URI circle using embedded hex colors.
src/services/decoration.service.ts Add helper to generate a single colored circle SVG URI for use in tree item icons.
package.json Bump @vscode/test-cli version range.
package-lock.json Lockfile refresh reflecting the dependency update and newer transitive resolutions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +122 to +128
const colorHex: Record<VizColor, string> = {
blue: CONSTANTS_COLOR_HEX_BLUE,
red: CONSTANTS_COLOR_HEX_RED,
orange: CONSTANTS_COLOR_HEX_ORANGE,
green: CONSTANTS_COLOR_HEX_GREEN
};
this.iconPath = DecorationService.createCircleIconUri(colorHex[this.color]);
Comment on lines +56 to +59
static createCircleIconUri(colorHex: string): vscode.Uri {
const svg = `<svg width="${CONSTANTS_NUMBER_SVG_WIDTH}" height="${CONSTANTS_NUMBER_SVG_HEIGHT}" viewBox="0 0 ${CONSTANTS_NUMBER_SVG_WIDTH} ${CONSTANTS_NUMBER_SVG_HEIGHT}" xmlns="${CONSTANTS_STRING_SVG_NAMESPACE}"><circle cx="${CONSTANTS_NUMBER_SVG_CIRCLE_CENTER_X}" cy="${CONSTANTS_NUMBER_SVG_CIRCLE_CENTER_Y}" r="${CONSTANTS_NUMBER_SVG_CIRCLE_RADIUS}" fill="${colorHex}" stroke="${colorHex}" stroke-width="${CONSTANTS_NUMBER_SVG_CIRCLE_STROKE_WIDTH}"/></svg>`;
return vscode.Uri.parse(CONSTANTS_STRING_SVG_DATA_URI_PREFIX + Buffer.from(svg).toString('base64'));
}
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