[Feature] PnPify (Typescript) for VSCode workspaces
See original GitHub issue- I’d be willing to implement this feature
- This feature can already be implemented through a plugin
Describe the user story
I develop a big system that includes many Git repos. All repos use Typescript and they’re added to one VSCode workspace. I very often do refactoring on all repos together. Howerer, PnPify always installed in projects folders. So I can’t refactor all repos together because PnPify can’t process all .pnp.js
at once.
Describe the solution you’d like
I want that it would be possible to install PnPify on the VSCode workspace level and it processes all .pnp.js
at once.
Describe the drawbacks of your solution
I think that all projects in a workspace should use PnP, I.e. I guess it’s impossible to mix projects with and without PnP.
Describe alternatives you’ve considered
There aren’t alternatives that can satisfy it.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Editor SDKs | Yarn - Package Manager
An overview of the editor SDKs used to bring PnP compatibility to editors.
Read more >TypeScript Programming with Visual Studio Code
TypeScript in Visual Studio Code. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces ......
Read more >Is `pnpify --sdk vscode` needed if you aren't using PnP with ...
No, its not necessary with node-modules linker.
Read more >Getting started with Yarn 2 and TypeScript | by xsmith - Medium
It's that simple. Of course, you can also run yarn pnpify --sdk vim . I personally use Visual Studio Code. Either way, this...
Read more >Using Yarn v2 workspace, Docker Compose and Visual Studio ...
workspaces. Plug'n'Play. The following features of Visual Studio Code: The Remote Container Extension. IntelliSense provided by the TypeScript language server.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having issues with this as well. I’m not sure if this is necessarily a yarn/berry issue or something that vscode is incapable of doing at the moment. My use case is that I have a single workspace for a backend that has multiple services, each with their own repo.
You should be able to repro this by creating a new workspace with multiple folders:
>Workspaces: Add Folder to Workspace
.vscode/settings.json
you should see:There is a related issue over at microsoft/vscode#108866 that didn’t gain enough thumbs unfortunately.
I also just tracked down my same issue to this.
Is it correct to say that in order to use yarn 2 pnp workspaces you must create a different vscode workspace per directory?
Also, this user says they have created a forked version of vscode’s native tsserver to support his use case: https://github.com/microsoft/vscode/issues/108866#issuecomment-753240892 but I haven’t tried it personally.