GitShow/antfu/vscode-pnpm-catalog-lens
antfu

vscode-pnpm-catalog-lens

Show versions inline for PNPM/Yarn/Bun catalogfield

by antfu
pnpmpnpm-monorepopnpm-workspacevscode-extension
Star on GitHubForkWebsitenpm

TypeScript

256 stars25 forks12 contributorsQuiet · 5mo agoSince 2024v1.0.2MIT

Meet the team

See all 12 on GitHub →
antfu
antfu37 contributions
jinghaihan
jinghaihan4 contributions
Debbl
Debbl2 contributions
sxzz
sxzz2 contributions
Rascal-Coder
Rascal-Coder1 contribution
Daydreamer-riri
Daydreamer-riri1 contribution
9romise
9romise1 contribution
YangJonghun
YangJonghun1 contribution

Languages

View on GitHub →
TypeScript99.5%
JavaScript0.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · 2 in progress · Last activity 5mo ago
See all on GitHub →
s-h-a-d-o-w
feat: add "upgrade to latest"OpenPR

🔗 Linked issue I saw the discuss first but I'd be fine with continuing to use my fork, if need be. Of course, I hope that you will agree that this would be a beneficial addition. 🧭 Context I was actually looking for a convenient way to upgrade dependencies that are declared through a catalog. Especially when it comes to dependencies that have 0 as the major version. Because currently, the flow is: 1. Navigate to and open the catalog. 2. Use e.g. to figure out what the latest version is. 2. Manually bump the version number. 3. Run package installation. With this contribution, it would simply be: https://github.com/user-attachments/assets/2004da29-b5c5-410e-9084-9b2edd7fc5c0 This video also illustrates why I chose to spawn a terminal instead of simply upgrading in the background. Sometimes, we get prompts. 📚 Description Added upgrade link to the markdown code in the popup. (As well as info about what version is currently actually installed and whether it's already the latest.) Added command that actually does the upgrade: Added a node_modules watcher to invalidate info about what's currently installed. A new tracked ref also gets triggered by this, so that a possibly already open package.json updates when the user runs package installation. Minor changes Fixed task waiting forever if there was already a build when starting the extension via debugger. Subjective changes Please let me know if I should revert/change this. I initially had issues with it during development, hence the adjustments. Bump pnpm (also removed it as a dev dependency, since that caused a conflict and that dependecy seems to be unused anyway) and disable due to buggy behavior.

s-h-a-d-o-w · 3w ago
benny123tw
feat: hover package info on catalog entries (pnpm / yarn / bun)OpenPR

Description Adds a hover provider that shows package description, latest version (with relative publish time), and homepage when you hover a catalog entry. Works across all three supported workspace formats: pnpm: yarn: bun: root (root-level / plus the legacy / shape) Uses pacote to fetch package metadata. Handles , scoped packages, auth tokens, and registry resolution natively. Thanks to @ikeyan for the suggestion. Linked Issues resolves #4 Additional context 1. Respects (same gate VS Code's built-in npm extension uses for hovers.) Off → no hover. 2. helper for relative date formatting is adapted from VS Code's npm extension date.ts Demo: https://github.com/user-attachments/assets/4b605690-111f-44fa-a3f5-e21517bd5354

benny123tw · 3mo ago
RYGRIT
Avoid error log for Bun workspaces without bun.lockOpenIssue

Describe the bug When opening a inside a Bun workspace, the extension logs: I tracked this down to , and disabling the extension makes the message go away. In my case the workspace is using Bun, but there is no / yet. VS Code is also configured with . I think this case should not be treated as an error. If no is present, maybe the extension can fall back to other Bun signals, for example: in the root Bun workspace/catalog fields in the root At minimum, this log probably should not be . Reproduction 1. Create a Bun workspace with catalogs in root 2. Do not generate / 3. Open a child package 4. Check the Debug Console System Info Used Package Manager bun Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

RYGRIT · 4mo ago

Recent fixes

View closed PRs →
9romise
feat: detect package manager automatically with the vscode commandMergedPR

Please be aware that vibe-coding contributions are 🚫 STRICTLY PROHIBITED. We are humans behind these open source projects, trying hard to maintain good quality and a healthy community. Not only do vibe-coding contributions pollute the code, but they also drain A LOT of unnecessary energy and time from maintainers and toxify the community and collaboration. All vibe-coded, AI-generated PRs will be rejected and closed without further notice. In severe cases, your account might be banned organization-wide and reported to GitHub. PLEASE SHOW SOME RESPECT and do not do so. Before submitting the PR, please make sure you do the following: Read the Contributing Guide. Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate. Provide a description in this PR that addresses what the PR is solving and WHY**, or reference the issue that it solves (e.g. ). Ideally, include relevant tests that fail without this PR but pass with it. [x] Linked Issues fixes # Additional context

9romise · 5mo ago
9romise
perf: use workspace folder path as cache key for lookupMergedPR

Please be aware that vibe-coding contributions are 🚫 STRICTLY PROHIBITED. We are humans behind these open source projects, trying hard to maintain good quality and a healthy community. Not only do vibe-coding contributions pollute the code, but they also drain A LOT of unnecessary energy and time from maintainers and toxify the community and collaboration. All vibe-coded, AI-generated PRs will be rejected and closed without further notice. In severe cases, your account might be banned organization-wide and reported to GitHub. PLEASE SHOW SOME RESPECT and do not do so. Before submitting the PR, please make sure you do the following: Read the Contributing Guide. Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate. Provide a description in this PR that addresses what the PR is solving and WHY**, or reference the issue that it solves (e.g. ). Ideally, include relevant tests that fail without this PR but pass with it. [x] ~~Please merge #34 first.~~ Edit after merged: This PR also migrate manual package manager detection to the vscode command Linked Issues fixes # Additional context

9romise · 5mo ago
Debbl
feat: bun root catalogsMergedPR

support top level catalogs for bun. https://bun.com/docs/pm/catalogs [x] Linked Issues fixes # Additional context

Debbl · 7mo ago
Structured data for AI agents

Repository: antfu/vscode-pnpm-catalog-lens. Description: Show versions inline for PNPM/Yarn/Bun catalogfield Stars: 256, Forks: 25. Primary language: TypeScript. Languages: TypeScript (99.5%), JavaScript (0.5%). License: MIT. Homepage: https://marketplace.visualstudio.com/items?itemName=antfu.pnpm-catalog-lens Topics: pnpm, pnpm-monorepo, pnpm-workspace, vscode-extension. Latest release: v1.0.2 (7mo ago). Open PRs: 2, open issues: 4. Last activity: 5mo ago. Community health: 85%. Top contributors: antfu, jinghaihan, Debbl, sxzz, Rascal-Coder, Daydreamer-riri, 9romise, YangJonghun, njzydark, pacexy and others.

·@ofershap

Replace github.com with gitshow.dev