Skip to content

Conversation

@mochja
Copy link
Contributor

@mochja mochja commented Nov 2, 2020

Enables type coverage trough LSP in non pragma workspaces with all=true option. Previously the files were ignored and type coverage was only working on pragma files.

flow/flow-for-vscode#138 (comment)

@mochja
Copy link
Contributor Author

mochja commented Nov 2, 2020

@mroch would this be something that could be potentially merged? I have read the original commit (d0b46ea), but I think it should not be necessary to include @flow pragma if all option is set to true.

With force set to true (in case of all=true option present), the type coverage works nicely as in the cli.

LSP did only check coverage for pragma files and simply ignoring the all option.

I did mimic the functionality from `flow coverage` command.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mroch has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mroch merged this pull request in aa33df7.

facebook-github-bot pushed a commit that referenced this pull request Nov 12, 2020
Summary:
Enables type coverage trough LSP in non pragma workspaces with `all=true` option. Previously the files were ignored and type coverage was only working on pragma files.

flow/flow-for-vscode#138 (comment)

<!--
  If this is a change to library defintions, please include links to relevant documentation.
  If this is a documentation change, please prefix the title with [DOCS].

  If this is neither, ensure you opened a discussion issue and link it in the PR description.
-->

Pull Request resolved: #8522

Reviewed By: nmote

Differential Revision: D24890501 (aa33df7)

Pulled By: mroch

fbshipit-source-id: a1bb7bf136a660c3838a60e96455a23480d571cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants