Skip to content

Conversation

@TIHan
Copy link
Contributor

@TIHan TIHan commented Oct 1, 2020

This fixes an issue when performing a find-all refs, it would not look through all files and/or projects.

This is a weird one, it's blowing up inside Roslyn because it's constructing a TextSpan with an invalid start value. To mitigate it, simply putting a try/with around the Roslyn call fixes the main issue mentioned above.

@cartermp
Copy link
Contributor

cartermp commented Oct 1, 2020

What is the specific problem this solves? Is there a bug that demonstrates the issue?

@TIHan
Copy link
Contributor Author

TIHan commented Oct 2, 2020

it would not look through all files and/or projects.

If you do a find-all-refs on string in our repo, you will not get results from both FSharp.Compiler.Private (net472) and FSharp.Compiler.Private (netstandard 2.0) - you will also notice that there are several projects missing from the results that clearly reference the type string.

@TIHan TIHan merged commit 0dac9c0 into dotnet:main Oct 2, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
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