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

Sample(s) of C# editor extensibility leveraging Roslyn semantic analysis #535

Closed
dsaf opened this issue Feb 16, 2015 · 5 comments
Closed
Labels
Area-SDK and Samples Documentation help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@dsaf
Copy link

dsaf commented Feb 16, 2015

It seems that compiler and editor extensions are separate worlds at the moment:

http://www.visualstudio.com/integrate/explore/explore-vside-vsi

It would be great to have some documentation on how to bridge them.

For example:

  1. Basic: extend the C# editor to show a tooltip on class name displaying the full inheritance chain; bonus point: make the chain navigatable.

  2. Medium: extend the C# editor to show an adorner on every method call giving details of every exception it might throw; bonus point: make details actionable - generate try-catch blocks.

  3. Advanced: create a basic custom DSL with C#-powered intellisense and simple rename refactoring; bonus point: jump-to C# implementation navigation.

Roslyn could be a great boost to extensions gallery not just analyzers. Look at JetBrains - they are reluctant to update their SDK samples, and there are much less extensions for R# then there should be.

PS: 2012/2013 would be great, 2015 is also OK.

@dsaf dsaf changed the title Sample of editor extensibility leveraging semantic analysis Sample(s) of C# editor extensibility leveraging Roslyn semantic analysis Feb 16, 2015
@dsaf
Copy link
Author

dsaf commented Feb 17, 2015

To be more practical: is there any way I can get the whole solution's semantic model in an editor extension? What are the performance implications of doing this in many extensions?

@SLaks
Copy link
Contributor

SLaks commented Feb 17, 2015

@SLaks
Copy link
Contributor

SLaks commented Feb 17, 2015

For less-specific information, see http://blog.slaks.net/2014-04-07/exploring-roslyn-part-1-introduction/.
I still need to update this for the more-recent changes (the desktop/portable split, and the fact that everything is now open-source)

@Pilchie Pilchie added the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Feb 24, 2015
@Pilchie Pilchie added this to the Unknown milestone Feb 24, 2015
@Pilchie
Copy link
Member

Pilchie commented Feb 24, 2015

This is not something the team is likely to work on, however, we'd be happy to incorporate or link to samples others want to write.

@jmarolf
Copy link
Contributor

jmarolf commented Dec 15, 2017

Issue moved to dotnet/roslyn-sdk #31 via ZenHub

@jmarolf jmarolf closed this as completed Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-SDK and Samples Documentation help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

6 participants