Auto import suggestion across referenced composite projects #55879
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Type: Bug
I am trying to make auto-import suggestions to work when using composite projects via typescripts tsconfig. I've set up a small repo where my issue can be reproduced.
Here is the repo: https://github.com/ekr3peeK/vscode-autoimport-bug
What is happening
When trying to use
TestClass
in a file insideprojectA
, I get no auto-import suggestions for the class. Auto-import suggestions work for files from which there was something manually imported at least once insideprojectA
.What I am expecting
I am expecting that if
projectA
is referencingprojectB
viatsconfig.json
, I should receive auto import suggestion for things exported fromprojectB
, even if no file was added beforehand.If I add the folder of
projectB
to theincludes
insideprojectA/tsconfig.json
auto-import suggestions work, but the projects are not buildable anymore.VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64
Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (26)
A/B Experiments
The text was updated successfully, but these errors were encountered: