forked from microsoft/typescript-go
-
Notifications
You must be signed in to change notification settings - Fork 1
[WIP] Implement yarn pnp support #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
GGomez99
wants to merge
56
commits into
main
Choose a base branch
from
guyllian.gomez/yarn-pnp-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
b603e65
Implement yarn pnp api
GGomez99 a68a977
Create zipvfs + tests
GGomez99 7ab707a
Wrap all vfs to handle zip
GGomez99 faea6f7
Temporarly insert virtual path handling in zipvfs
GGomez99 d42bf23
Insert pnp in most important resolvers
GGomez99 ccb4524
Add some todos for potential unimplemented places
GGomez99 c505d83
Add basic caching for zipvfs
GGomez99 e6f86e8
Improve data structure for FindLocator
GGomez99 17d4e68
Parse pnp data from .pnp.cjs
GGomez99 aa12649
Use pointers for GetPackage and implement WIP GetResolvedProjectRefer…
GGomez99 1e204b1
Generate zip URIs for Go to definition
GGomez99 9eafbd4
Use pnp api in readPackageJsonPeerDependencies
GGomez99 3129404
Enable typescript on zip files in IDE
GGomez99 1c44670
Rephrase todo comment on caching
GGomez99 cd3fa19
Fix type roots not working depending on where tsc is run
GGomez99 53c7edc
Don't log anything when the pnp api is not available
GGomez99 545e075
Merge remote-tracking branch 'upstream/main' into guyllian.gomez/yarn…
arcanis 7a0bf26
Merge pull request #2 from arcanis/guyllian.gomez/yarn-pnp-support
GGomez99 94b4f5d
Add comment on pnp api spec
GGomez99 0045eac
Use zipfs only when pnp api is available
GGomez99 6cbb866
Extract tryGetModuleNameFromPnp
GGomez99 7db373f
Mark files from __virtual__ folders as ExternalLibraryImport
GGomez99 512f118
Make go to definition work in zip files + add test case
GGomez99 c7f1846
Only display importable symbols on completion from pnpapi
GGomez99 a8e777e
Fix import suggestion and autocomplete with yarn pnp
GGomez99 cc09cad
Remove fonction that has been moved after rebase
GGomez99 9c27cbe
Make GetEffectiveTypeRoots use the correct baseDir for pnp resolution
GGomez99 4e844d1
Fix parsing for pnpExclusionList
GGomez99 e2bbb8b
Rename zipvfs to pnpvfs
GGomez99 2bd397f
Always return true for pnpvfs.UseCaseSensitiveFileNames()
GGomez99 43354f3
Merge branch 'main' into guyllian.gomez/yarn-pnp-support
GGomez99 8d73cd4
Merge branch 'main' into guyllian.gomez/yarn-pnp-support
GGomez99 a96aab5
Improve pnpvfs init
GGomez99 227839e
Extract pnp type roots appending
GGomez99 bd256ad
Add comments on pnp helpers and create a IsExternalLibraryImport helper
GGomez99 b589ce0
Merge branch 'main' into guyllian.gomez/yarn-pnp-support
GGomez99 df10a92
Refine zipvfs tests and fix issue with GetAccessibleEntries
GGomez99 fe6e4a5
Initialise the FS at the session level for LSP
GGomez99 0b8d7da
Add tests for virtual paths and panic on fs.WriteFile
GGomez99 be2aad8
Fix current unit tests
GGomez99 90bd2e0
Make a pnp cache compatible with tests
GGomez99 8cbd23d
Add simple pnp test
GGomez99 5588157
Simplify caching and use permanent cache for pnpvfs
GGomez99 da6b622
Merge branch 'main' into guyllian.gomez/yarn-pnp-support
GGomez99 c13f422
Fix FindLocator implementation
GGomez99 a6c6db8
Add more pnp resolver tests
GGomez99 cf02630
Add declaration emit test for pnp
GGomez99 05e27f1
Remove usage of filepath
GGomez99 9872c4e
Error handling for wrong regexes of ignorePatternData in pnp manifest
GGomez99 f8e8d8a
Fix pnpVfs with usages of tspath.CombinePaths
GGomez99 b98ce24
Remove usages of os, abstract the provided fs and init PnP API separa…
GGomez99 ded9d9f
Cleanup code and update comments
GGomez99 59ab5e6
Merge branch 'main' into guyllian.gomez/yarn-pnp-support
GGomez99 18c94aa
Apply lint fixes
GGomez99 4551f2b
Remove unnecessary comment
GGomez99 4f10fb8
Merge branch 'main' into guyllian.gomez/yarn-pnp-support
GGomez99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.