Open
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.101.2
- OS Version: MacOS 15.1.1
Steps to Reproduce:
- Clone https://github.com/ishchhabra/pnpm-workspace-example
- Open
apps/web/src/app/page.tsx
and CMD+Click onLink
. It'll open theLink.d.ts
file (from dist).
If I add
"sourceRoot": "/Volumes/Development/pnpm-workspace-example/packages/ui/src"
to packages/ui/tsconfig.json
, it takes me to the Link.tsx
file in packages/ui/src/components
, however, using "sourceRoot": "./src"
takes user to the declaration file in dist/
.
I am able to workaround by adding "@packages/ui": ["../../packages/ui/src"]
in paths
in the tsconfig
for apps/web
, however that is not ideal since that requires defining paths in every app that uses the package.
Metadata
Metadata
Assignees
Labels
No labels