You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sub folders and files of a folder listed in exports do not resolve in VS Code's autocomplete.
Also, the modules aren't displayed with a subfolder icon. The files should be displayed with a file icon, but they're not displayed at all.
For this example, I'm using a library named sandstone and a tests folder. I'm trying to import sandstone submodules from tests.
Expected paths & icons:
Actual paths & icons:
When reaching a submodule (submodules have several .ts files), it gets even weirder. Expected paths:
Actual paths:
You can see the submodule appears as a submodule of itself.
Despite autocompletion not working, the code runs fine. However, auto imports don't work either. Live demo (ignore the Copilot suggestions):
Only the hardcoded submodules appear in the autocompletion. The submodule appears as a submodule of itself.
🙂 Expected behavior
Since there is a wildcard export, all submodules of submodules & all files should appear in the autocompletion. The submodule shouldn't appear as a submodule of itself.
Bug Report
Sub folders and files of a folder listed in
exportsdo not resolve in VS Code's autocomplete.Also, the modules aren't displayed with a subfolder icon. The files should be displayed with a file icon, but they're not displayed at all.
For this example, I'm using a library named
sandstoneand atestsfolder. I'm trying to importsandstonesubmodules fromtests.Expected paths & icons:

Actual paths & icons:

When reaching a submodule (submodules have several .ts files), it gets even weirder. Expected paths:

Actual paths:

You can see the submodule appears as a submodule of itself.
Despite autocompletion not working, the code runs fine. However, auto imports don't work either. Live demo (ignore the Copilot suggestions):
imports_work.mp4
🔎 Search Terms
typescript, exports, field, package.json, exports map, autocompletion, paths, import, auto import, icons, 4.7 beta
🕗 Version & Regression Information
💻 Code
Sandstone's
package.json:Tests'
tsconfig.json:🙁 Actual behavior
Only the hardcoded submodules appear in the autocompletion. The submodule appears as a submodule of itself.
🙂 Expected behavior
Since there is a wildcard export, all submodules of submodules & all files should appear in the autocompletion. The submodule shouldn't appear as a submodule of itself.