Skip to content

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Nov 20, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 20, 2025 14:16
@alexr00 alexr00 self-assigned this Nov 20, 2025
Copilot finished reviewing on behalf of alexr00 November 20, 2025 14:19
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 migrates from bundled codicon font files to using the @vscode/codicons npm package (version 0.0.42). The change centralizes the codicon font source and improves maintainability by leveraging the published npm package.

Key Changes

  • Added @vscode/codicons npm package as a dependency
  • Modified getIconsStyleSheet to accept an IEnvironmentService parameter to determine the correct module path
  • Removed the static @font-face declaration from codicon.css and replaced it with dynamic CSS generation

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Added @vscode/codicons version 0.0.42 as a dependency
package-lock.json Added lockfile entry for @vscode/codicons package
src/vs/platform/theme/browser/iconsStyleSheet.ts Added getModuleLocation helper and updated getIconsStyleSheet to accept environmentService, dynamically generates @font-face rule
src/vs/workbench/services/themes/browser/workbenchThemeService.ts Updated call to getIconsStyleSheet to pass environmentService
src/vs/editor/standalone/browser/standaloneThemeService.ts Updated call to getIconsStyleSheet to pass _environment
src/vs/workbench/contrib/issue/browser/baseIssueReporterService.ts Added environmentService parameter and updated call to getIconsStyleSheet
src/vs/workbench/contrib/issue/electron-browser/issueReporterService.ts Added environmentService parameter and passed to parent constructor
src/vs/workbench/contrib/issue/browser/issueReporterService.ts Added environmentService parameter and passed to parent constructor
src/vs/base/browser/ui/codicons/codicon/codicon.css Removed static @font-face declaration (now generated dynamically)

@alexr00 alexr00 requested a review from aeschli November 21, 2025 09:47
@alexr00 alexr00 marked this pull request as ready for review November 21, 2025 09:47
@vs-code-engineering
Copy link

vs-code-engineering bot commented Nov 21, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/base/browser/ui/codicons/codicon/codicon.css

Copy link
Contributor

Copilot AI commented Nov 21, 2025

@alexr00 I've opened a new pull request, #278734, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits November 21, 2025 11:21
…eme service (#278734)

* Initial plan

* Initialize _environment with isBuilt: false for standalone editor

Co-authored-by: alexr00 <[email protected]>

* Simplify _environment initialization to use object literal

Co-authored-by: alexr00 <[email protected]>
@alexr00 alexr00 marked this pull request as draft November 21, 2025 10:41
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.

2 participants