-
Notifications
You must be signed in to change notification settings - Fork 50
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
Path Intellisense does not display files in the current folder #161
Comments
Could you provide a more data? |
stay tsconfig.json That happens when you set "baseurl": "." / " |
I'm experiencing something similar. In my repository (a monorepo with multiple packages), which is not TypeScript-based (just pure JS), we have a build process that generates typing definitions (a bunch of index.d.ts files). So I added a tsconfig.json with But now, Path Intellisense picks-up on So basically, I'd want the extension to ignore the tsconfig.json in this case, since I only want it to help VSCode resolve typings, not file paths. |
It seems the author is not going to fix it, I have changed to Path Autocomplete |
@BWrong Thanks for the lead, this ^^^ looks like a great alternative! |
@stefcameron Thanks for the good description and @BWrong for the hint. Currently the extension reads the tsconfig and the baseUrl by default if it exists. I guess it is a sensible default for most TS projects. In your case, what would be the best option? Only thing which currently comes to my mind is to add a setting to tell the extension to ignore the tsconfig 🤔 |
I can't think of anything else that would work. Just because there's a tsconfig.json file in the repo doesn't necessarily mean it's a TS project. As I said earlier, we generate typings, but we don't author code in TS, and to verify those typings, we need to compile them, hence the need for tsconfig.json in our repo, but our repo is not authored in TS. |
# [2.5.0](v2.4.2...v2.5.0) (2021-11-22) ### Features * **ignoreTsConfigBaseUrl:** implemented ([fb323d9](fb323d9)), closes [#161](#161)
🎉 This issue has been resolved in version 2.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hey @stefcameron Could you test if the new release 2.5.0 solves you issue? You can add the following setting to disable the tsconfig baseurl mapping:
Thank you for your help. |
@ChristianKohler Thanks for the new feature! I haven't forgotten about your request, just haven't been in a position to test it out just yet, but I'll let you know. Just one remark, though, For my test, I will install the new version (2.5.0) and then set, |
Thank you @stefcameron
Good point. Agree. To bad that I‘ve already released it in that way :-/ I feel, creating a migration path for that would not be justified though..
Thank you. Looking forward to hear if it helped. |
@ChristianKohler I finally had some time to check this out, and it does work! Thank you. But there's a typo in the documentation (the double-negative trap 😉 ):
Agreed since it's already published and now in use. |
Thank you for checking it out @stefcameron 🙏
🤦♂️ Ups. Fixed it. Thx. |
When I type "./" the files in the current folder are not shown, but the folder above the project folder. How do I resolve?
The text was updated successfully, but these errors were encountered: