Skip to content

Use codicons from npm package#278593

Closed
alexr00 wants to merge 17 commits intomainfrom
alexr00/definite-elephant
Closed

Use codicons from npm package#278593
alexr00 wants to merge 17 commits intomainfrom
alexr00/definite-elephant

Conversation

@alexr00
Copy link
Copy Markdown
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
Copy link
Copy Markdown
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)

Comment thread src/vs/editor/standalone/browser/standaloneThemeService.ts
@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
Copy Markdown
Contributor

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
Copy Markdown
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 <38270282+alexr00@users.noreply.github.com>

* Simplify _environment initialization to use object literal

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
@alexr00 alexr00 marked this pull request as draft November 21, 2025 10:41
@alexr00 alexr00 marked this pull request as ready for review January 12, 2026 10:59
@alexr00 alexr00 marked this pull request as draft January 12, 2026 10:59
@alexr00 alexr00 removed this from the December 2025 milestone Jan 12, 2026
@alexr00 alexr00 added this to the January 2026 milestone Jan 12, 2026
@alexr00 alexr00 closed this Jan 22, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants