Quramy / tsuquyomi

A Vim plugin for TypeScript
http://www.vim.org/scripts/script.php?script_id=5151
1.39k stars 72 forks source link

TsuImport: Incorrect short and long import paths #221

Open mboughaba opened 6 years ago

mboughaba commented 6 years ago

Hi,

Thanks for creating this awesome plugin, can image typescript in vim without this 👍

I have a small issue which I am not sure how to tackle.

Import paths are not correct. Say I want to TsuImport angular Router The result will be: import { Router } from '@angular/router/src/router'; with or without:

let g:tsuquyomi_shortest_import_path = 1

The type is indeed defined in @angular/router/src/router.d.ts however, there is a router.d.ts on parent level @angular/router which exports the public apis.

Do you think this can be enhanced ? this way I can attempt to work on it 💯

Thank you so much for your feedback

Cheers

varsis commented 6 years ago

I have the same issue, it only seems to happen on Angular projects.

adrianoviana87 commented 6 years ago

The issue happens on my Windows machine. Angular projects too.

dubcdr commented 5 years ago

anyone figure out how to resolve this?

bihorco36 commented 2 years ago

Still the same issue for angular projects. Would be super nice if this could be fixed