Skip to content

Produce 'invisible' squiggles for 'Remove Unnecessary Usings' and 'Simpl... - #1243

Merged
shyamnamboodiripad merged 1 commit into
dotnet:masterfrom
shyamnamboodiripad:InvisibleSquiggle
Mar 14, 2015
Merged

Produce 'invisible' squiggles for 'Remove Unnecessary Usings' and 'Simpl...#1243
shyamnamboodiripad merged 1 commit into
dotnet:masterfrom
shyamnamboodiripad:InvisibleSquiggle

Conversation

@shyamnamboodiripad

Copy link
Copy Markdown
Contributor

...ify Type Name'.

Produce invisible / suggestion squiggles (which will in turn display Quick Info on mouse hover) for the hidden diagnostics that we report for 'Remove Unnecessary Usings' and 'Simplify Type Name'. The presence of Quick Info pane for such squiggles allows allows platform to display Light Bulb for the corresponding fixes. Per their current design platform can only display light bulb if Quick Info pane is present.

Here's some screenshots that show how the quick info + light bulb will look -
1

If we have multiple issues on the line -
2

@shyamnamboodiripad

Copy link
Copy Markdown
Contributor Author

@srivatsn @heejaechang @mavasani @tmeschter @jmarolf - could you please take a look?

FYI @balajikris

@shyamnamboodiripad

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test this please

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be nice to keep the descriptor here so that both of the descriptors are together instead of being spread across three files. Instead of the abstract GetClassificationIdDescriptor, you could simply have an abstract GetMessage(). That way if we make changes to the descriptor we can make it in one place.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure will change that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@srivatsn

Copy link
Copy Markdown
Contributor

Jenkins is failing because PredefinedErrorTypeNames.Suggestion is a new value that's not in the CTP6 build that Jenkins uses. I think we should have a conditional constant in RoslynLight.sln and then ifdef out this statement when that constant is not defined.

@heejaechang

Copy link
Copy Markdown
Contributor

👍

@shyamnamboodiripad

Copy link
Copy Markdown
Contributor Author

Introducing solution level conditional constant in a way that works smoothly for both command line and VS builds of this solution is complicated. For now, I've removed the projects that depend on the new API from RoslynLight.sln to fix Jenkins.

I've addressed the remaining pieces of feedback above. Waiting for Jenkins build to succeed. I will go ahead and merge this once that succeeds.

@shyamnamboodiripad

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test this please

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You could write analyzerMap?.Count > 0 and flip then/else branches.

…mplify Type Name'.

Produce invisible / suggestion squiggles (which will in turn display Quick Info on mouse hover) for the hidden diagnostics that we report for 'Remove Unnecessary Usings' and 'Simplify Type Name'. The presence of Quick Info pane for such squiggles allows allows platform to display Light Bulb for the corresponding fixes. Per their current design platform can only display light bulb if Quick Info pane is present.
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.

5 participants