Open tvvignesh opened 3 years ago
hmmm, will look into this, this may be baked into vscode though? or perhaps we need a path resolution to ignore symlinks somewhere
I had same problem and turns out problem wasn't with pnpm
at all. Linking was all right the problem was the way vscode was interpreting it.
double-check your tsconfig.json
, tsconfig.base.json
. etc..
you shouldn't have
"preserveSymlinks": true,
according to tsconfig
With this enabled, references to modules and packages (e.g. imports and ///
directives) are all resolved relative to the location of the symbolic link file, rather than relative to the path that the symbolic link resolves to.
Actual Behavior
Hi. I have my project setup as a PNPM workspace and VSCode GraphQL has been working well except for 1 issue - It navigates within
node_modules
folder where PNPM has symlinked the file (as part of PNPM workspaces) instead of the actual file itself. I am adding a gif below demonstrating the same:If you notice, the real fragment file is within
sdk/fragments
but it gooes insidenode_modules
and gets the same file from the symlinkednode_modules
folder.Expected Behavior
Code navigation navigates to the real graphql file instead.
Specifications