Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unfound tests when using Go to Test feature with F# #156

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

CPardi
Copy link
Contributor

@CPardi CPardi commented Oct 26, 2018

Hi,
I found when trying to go to tests in my F# project, I got a symbol not found error. I thought I would have a go at trying to fix it myself and so created a pull request.

I found the problem was that Ionide returns symbols for F# test functions as SymbolType.Variable (not sure why a variable and not a function), whereas currently symbols are filtered to be SymbolType.Method. Therefore, I added a check on the file extension and if it's a .fs I filter to be SymbolType.Variable. I also added a couple of tests.

@stefanforsberg
Copy link
Collaborator

Hello and thanks for the PR! At the moment we're trying to rewrite some things related to what you're doing since the vscode api has had a few changes. It might be a while before that is completed so I just wanted you to give a heads up that we've seen your PR and it might take a while before it's merged =)

@stefanforsberg stefanforsberg merged commit 466730e into formulahendry:master Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants