Skip to content
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

TypeScript Auto Import only uses relative paths #54513

Closed
trulysinclair opened this issue Jul 17, 2018 · 3 comments
Closed

TypeScript Auto Import only uses relative paths #54513

trulysinclair opened this issue Jul 17, 2018 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@trulysinclair
Copy link

screenshot_2
Issue Type: Bug

Trigger auto import suggestion dropdown in any way (for me at least)

  • VS Code constantly suggests the relative path to a module inside of node_modules instead of the module itself.
  • VS Code Insiders resolves modules correctly.
  • I disabled all extensions and it still happens.
  • Reinstalled VS Code and still happens.
  • Restarted TypeScript Server after I commented out my tsconfig and it still happens.

Expected Result: Auto import from 'fuse-box' or something similar

Actual Result: Auto import from '../../../node_modules/fuse-box/index.d.ts'
The deeper the file the longer the relative path.

VS Code version: Code 1.25.1 (1dfc5e5, 2018-07-11T15:43:53.668Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i3-7100T CPU @ 3.40GHz (4 x 3408)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 5.90GB (1.66GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe C:\Users\adria\Desktop\dnd-testing
Screen Reader no
VM 0%
Extensions: none
@vscodebot
Copy link

vscodebot bot commented Jul 17, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@trulysinclair
Copy link
Author

No no no, totally different issue you little bot

@mjbvz
Copy link
Contributor

mjbvz commented Jul 17, 2018

Duplicate of #53597

Fixed in VS Code insiders and if you upgrade to to use TypeScript 3.0 in your workspace (or downgrade to use TS 2.9.1)

@mjbvz mjbvz closed this as completed Jul 17, 2018
@mjbvz mjbvz self-assigned this Jul 17, 2018
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Jul 17, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants