-
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
Auto import paths dont handle source of projectReferenceRedirect in editor #34677
Comments
Also from the issue comment
|
@vilic the repro you provided has some issues.. I don't see module resolution happening..
|
@sheetalkamat Are you using yarn or npm? The repro is using yarn workspaces linking projects. |
I have cloned and ran the tsc with nightly. If those aren't the steps to repro, please provide correct repro steps. |
@sheetalkamat Steps after clone:
BTW just confirmed that setting |
Is there any way to get intellisence proposals across referenced projects when the "shared" project has a directory of type declarations? So multiple |
* Add test for project reference and auto import Test for #34677 * Add project reference redirect to the possible file name to import if file is source of project reference redirect Fixes the auto import suggestion when project is built * Use fileExists that mimics presence of project reference redirect file when trying to get auto import file name
This is a really awesome cool fix! Looks like, at last, In April 2020, TS & VSCode become both monorepo-friendly! I also prepared a repro steps where IntelliSense incorrectly proposes to auto-import files from src/ instead of dist/, but I can confirm that in 3.9.1-rc it stopped reproducing. Just in case, here are these repro examples: https://github.com/DmitryKoterov/intellisense-composite A screenshot from default/ folder from there (TS 3.8.3, wrong behavior): And a screenshot from disableSourceOfProjectReferenceRedirect-true folder which sets disableSourceOfProjectReferenceRedirect=true (TS 3.8.3 still, the above behavior disappeared): In TS 3.9.1-rc, the 1st screenshot stopped reproducing - and it's great! |
https://github.com/vilic/bug-repros/tree/typescript-32028
3.8.0-dev.20191023
3.6.3
Originally posted by @vilic in #32028 (comment)
The text was updated successfully, but these errors were encountered: