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.
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
Add string literal completions for
package.json
imports
field #57718Add string literal completions for
package.json
imports
field #57718Changes from 22 commits
238651d
2adb14c
22b6148
08eaa16
083c5b8
b48f752
07f6c3c
117415a
db0d416
294c7da
0d0b881
475c0b1
a0ea1b9
c00448b
e96bd5a
c36d20a
0f4a6f8
6759383
48b2c78
56a1563
b84468a
a80cdfa
96209a9
17b2aae
22e4d49
a18104e
36bed48
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
this is kinda a reverse of
getOutputPathWithoutChangingExt
:TypeScript/src/compiler/emitter.ts
Lines 542 to 554 in 3fca8c8
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.
I have no idea if this is completely correct. I added it to make pathCompletionsPackageJsonImportsSrcNoDistWildcard6 pass as it's using
?
in the component path component.I have added that test based on the existing pathCompletionsPackageJsonExportsWildcard6. The difference is that the test I have added is a
fourslash/server
test and it follows a slightly different codepath.The existing one validates here:
TypeScript/src/harness/vfsUtil.ts
Lines 1104 to 1108 in b8e4ed8
And the
ValidationFlags.AllowWildcard
was added there hereOn the other hand, the
fourslash/server
validates here, where I'm adding this comment. This codepath was added as part of #20763 - which proceeds the PR that introducedValidationFlags.AllowWildcard
. So perhaps this was just a harmless omission in that newer PR. I don't know why this is a flag in the first place though so 🤷♂️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.
@rbuckton can you advise?