Closed bloadvenro closed 4 years ago
Going to mark this as a nice to have. I've never really liked import as your types setups (I'm lame I guess). If someone is up to making a PR for this, I'd happily accept it!
This feature requires implementation of completion resolve and handle the codeActions
from tsserver response on complete done, it would be much easier if completion manager could provide this kind of feature, instead of handled be completion provider.
I really would like to have this feature.
This is basically the feature that made me move from neovim to VS Code for typescript. Adding imports for angular/react typescript projects manually is an incredible amount of effort that I just can't be bothered with.
VSCodeVim is such a pain but its inadequacies still waste a lot less time than having to manually import.
This is basically the feature that made me move from neovim to VS Code for typescript. Adding imports for angular/react typescript projects manually is an incredible amount of effort that I just can't be bothered with.
VSCodeVim is such a pain but its inadequacies still waste a lot less time than having to manually import.
Have you seen that you can get the import by moving the cursor onto the missing type doing :TSGetCodeFix
?
@SnowCone161803 I'm using neovim-coc now, with that you just highlight the completion and press enter.
@ohjames wicked, thanks! 😀
Problems summary
Suppose we are able to import
Component
from React oradd
from lodash. We have to know exact identifier name to perform:TSImport
.Expected
It would be great to see
Component
in suggestions when we wrote only part of name (e.g.Compo
). Such behavior is supported in VSCode.Environment Information
Provide a minimal vim rc with less than 50 lines (Required!)
The reproduce ways from neovim starting
npm i react @types/react lodash @types/lodash
Screen shot (if possible)
Neovim:
VSCode: