facebook / flow

Adds static typing to JavaScript to improve developer productivity and code quality.
https://flow.org/
MIT License
22.07k stars 1.86k forks source link

[Summary] Flowtype / VSCode pain points and potential improvements #7918

Open vicapow opened 5 years ago

vicapow commented 5 years ago

Flowtype VSCode pain points and potential improvements

A lot of engineers have started using VSCode for day to day development. A good portion of these engineers are coming from a background of TypeScript which has very good built in support within VSCode. This is the case for a few reasons:

Collecting ideas for IDE improvements (will continue to update this)

- [] Add “codelens” support https://github.com/facebook/flow/issues/7890

Xiot commented 5 years ago

A couple more improvements image Better syntax highlighting when using generics (currently using the Babel JavaScript "language")

Cmd + clicking on the import path, should jump to the file. Currently only cmd + click on the imported names works

mroch commented 5 years ago

Awesome, thanks for starting this list! This is an area that we're going to be investing in over the next couple of months, so the list of issues (please tag them with LSP!) and their relative priority will help me out a lot.

We don't use flow-for-vscode internally but vscode is still very important to us. You are correct that we've made Nuclide communicate with Flow solely over the LSP. All of our other editor integration is deprecated in favor of the LSP, and I hope we remove the legacy stuff ASAP so that we can focus (what were you saying about an unstable api? 😂).

Accurately implementing the LSP is our priority. In my experience so far, there aren't many LSP + vscode bugs as it's the reference LSP implementation. So it's a matter of us returning poor LSP responses, which so far have impacted Nuclide and VSCode equally -- e.g. returning bad ranges made them both filter out autocomplete results.

goodmind commented 5 years ago

@mroch maybe also check autocomplete and type-at-pos labels

goodmind commented 5 years ago

@mroch do you have any news about this?