Flow-for-vscode: LSP Umbrella

Created on 10 May 2018  路  6Comments  路  Source: flowtype/flow-for-vscode

We're going to track LSP (Language Server Protocol) related stuff, so we can reach feature parity with current extension.

  • [x] Monorepo support (Yarn workspaces)
  • [x] VSCode workspaces support
  • [x] Coverage with flow status
  • [ ] Go To Reference of values that are imported from modules without @flow (not sure if possible yet)
  • [x] Make use of relatedInformation for richer diagnostics with Flow >=0.67 (PR #258).
  • Integrate with current options

    • [ ] runOnEdit

    • [ ] runOnAllFiles

Nice to haves, but not sure if possible with @builtin TS disabled:

  • [x] Intellisense features could we support through LSP? Right now, without the TS @builtin, there's no support for Rename Symbol, for instance.
  • [ ] Apparently the TS builtin extension is what provides inline documentation when hovering over values that have doc-block comments (i.e. /** foo */). Maybe this should just be broken out from the main TS @builtin so you can disable other TS features but keep the doc-block parsing feature? Otherwise I'm guessing flow-for-vscode would have to reimplement this.

cc @wbinnssmith @kpsroka @jslauthor @orta

Most helpful comment

Please add displaying flow status to the list (current extension supports that feature).
I find it essential for any large codebase where flow recheck is not instant.

All 6 comments

Intellisense features could we support through LSP? Right now, without the TS @builtin, there's no support for Rename Symbol, for instance.

馃槵 I wasn't aware of this limitation. Is there a way around this somehow? Intellisense was a big part of why we wanted to support this.

Please add displaying flow status to the list (current extension supports that feature).
I find it essential for any large codebase where flow recheck is not instant.

Features like rename symbol work through the LSP for TS, so if there's a way to track IDs through flows internals then it should be feasible

Related issue in the flow repo regarding supporting documentation fields in LSP: https://github.com/facebook/flow/issues/7725

Is this issue tracks usage with builtin extension disabled?

You can create a separate issue for it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sgronblo picture sgronblo  路  6Comments

ghost picture ghost  路  3Comments

ajhyndman picture ajhyndman  路  4Comments

dominictwlee picture dominictwlee  路  5Comments

spudly picture spudly  路  6Comments