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
The typescript.preferences.importModuleSpecifier setting states that using auto will "infer the shortest path type". However, when a compilerOptions.paths value matches the import, only a full path is offered even if it is longer than the relative one. Oddly, this appears to the be opposite of #25876
(What would actually be nice is to configure the number of parent directories / ../ before preferring an absolute path)
Set the workpace typescript.preferences.importModuleSpecifier setting to auto
Issue Type: Bug
The
typescript.preferences.importModuleSpecifier
setting states that usingauto
will "infer the shortest path type". However, when a compilerOptions.paths value matches the import, only a full path is offered even if it is longer than the relative one. Oddly, this appears to the be opposite of #25876(What would actually be nice is to configure the number of parent directories /
../
before preferring an absolute path)Set the workpace
typescript.preferences.importModuleSpecifier
setting toauto
Add
[email protected]
and configure the workspace to use itCreate the following structure:
file1.ts
, referenceExportedInterface
and use the "Quick Fix" to add an import.Expected:
import { ExportedInterface } from './file2'
Actual:
import { ExportedInterface } from './features/feature/file2'
VS Code version: Code 1.25.1 (1dfc5e557209371715f655691b1235b6b26a06be, 2018-07-11T15:43:11.471Z)
OS version: Windows_NT ia32 10.0.17134
System Info
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
Related Issues:
#25876 appears to be the opposite (?)
The text was updated successfully, but these errors were encountered: