-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Declaration maps and transparent goto definition using them #22658
Merged
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
ab7cb27
Add compiler option to enable declaration sourcemaps
weswigham 91cc19c
Transparent goto definition for sourcemapped declaration files
weswigham c291828
Post-rebase touchups
weswigham 2b26a27
Rename API methods
weswigham ec44da5
Fix lints
weswigham ffb7f85
Fix typo in name XD
weswigham 589ac28
Log sourcemap decode errors
weswigham 5584a2d
Share the cache more, but also invalidate it more
weswigham 238ba98
Remove todo
weswigham ff158cf
Enable mapping on go to implementation as well
weswigham b9f6149
Allow fourslash to test declaration maps mroe easily
weswigham 53f72de
more test
weswigham 29c732e
Merge branch 'master' into decl-maps
weswigham 6070108
Handle sourceRoot
weswigham 0a63553
Add tests documenting current behavior with other sourcemapping flags
weswigham d8480b2
Ignore inline options for declaration file maps, simplify dispatch in…
weswigham ca88d5e
Change program diagnostic
weswigham 2b231d7
Fix nit
weswigham fed6132
Use charCodeAt
weswigham 509e4f3
Rename internal methods + veriables
weswigham 0c44ba1
Avoid filter
weswigham c8620e3
span -> position
weswigham 5687e10
Use character codes
weswigham e64e73d
Dont parse our sourcemap names until we need to start using them
weswigham 47e701a
zero-index parsed positions
weswigham 6a467ba
Handle sourceMappingURL comments, including base64 encoded ones
weswigham f2c8d3f
Unittest b64 decoder, make mroe robust to handle unicode properly
weswigham bd9cccf
Fix lint
weswigham c7a5296
declarationMaps -> declarationMap
weswigham f6e81f2
Merge branch 'master' into decl-maps
weswigham d0a5e28
Even more feedback
weswigham 943dc12
USE Mroe lenient combined regexp
weswigham 265cc1a
only match base64 characters
weswigham e34a6bd
Fix nit
weswigham 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'd just use a nested
if
to avoid havingmatch
declared outside of the block since it isn't used elsewhere.