Emacs can do that (there are a couple of add-ons that layer in inference). I believe Neovim can also.
On the commercial side IntelliJ and other JetBrains IDEs now have local-inference single-line completion model included. It won't build a project for you (incorrectly... that doesn't compile...), but will help you code faster.