Skip to content

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Feb 12, 2018

Sets document diagnostic analyzer error priorities.

Can be integrated when dotnet/roslyn#24673 is available in Roslyn

NOTE: Should NOT be integrated into the nightly update branch until we know we can rely on the binaries above being available

  • After this the error-messages appear in about 2 seconds after a small edit regardless of whether of "SimplifyName" is on by default
  • Prior to this change error-messages appeared in about 5-6 seconds if "SimplifyName" is on by default
  • Prior to this change error-messages appeared in about 2 seconds if "SimplifyName" is off by default
  • I used Elmish.WPF as the test case, editing the last line of ViewModel.fs

This doesn't yet turn SimplifyName on by default

@dsyme dsyme changed the title set diagnostic analyzer priorities [roslyn update needed] set diagnostic analyzer priorities Feb 12, 2018
@dsyme
Copy link
Contributor Author

dsyme commented Feb 12, 2018

The roslyn update has been approved for merge to 15.7 dotnet/roslyn#24673

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

Can we move each of the integer literals to values in Common/Constants.fs?

Love this change for 15.7

@dsyme
Copy link
Contributor Author

dsyme commented Feb 12, 2018

Note the failures are due to roslyn version

Re one file - yes, np. (I'm on the train if I forget can the person who eventually accepts this do this please)

return results
}

override __.Priority = 10 // Default = 50
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should make this 0, as that is the highest priority available. (In Roslyn, compiler is -2 and 'regular diagnostics' are -1.)

@cartermp
Copy link
Contributor

@dsyme can you retarget since the Roslyn fix went in for 15.7? We'll merge that back into master once it ships.

@dsyme
Copy link
Contributor Author

dsyme commented Feb 21, 2018

See #4369, closing this one

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.

3 participants