We maintain all of our Javascript related SDKs in a monorepo at Sentry. https://github.com/getsentry/sentry-javascript
If you decide to clone this repository, make sure to properly set it up by running
yarn install
and then navigate to any file such as packages/node/src/backend.ts
and attempt to locate the implementation of another package's function, like limitObjectDepthToSize
, which is located in the utils
package.
Initially, if you have not previously built the project (ensuring all type definitions are in place), you may encounter the following error:
https://i.sstatic.net/PCBFO.png
Even if everything has been built before, clicking on CMD+Click
for the function may direct you to the compiled object.d.ts
file instead of the desired source file, which can be found at
packages/utils/src/object.ts
rather than /packages/utils/object.d.ts
.
https://i.sstatic.net/hNmDN.gif
My current inquiry is whether our setup is incorrect, if there might be an option in VSCode or perhaps within the tsconfig.json
that resolves this code navigation issue?
Alternatively, could this be a known limitation of VSCode in monorepo settings?
Any assistance would be greatly appreciated, and I hope the solution isn't something glaringly obvious that I've overlooked, thank you!