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

Language support: C# #12

Open
sor opened this issue Dec 19, 2019 · 8 comments
Open

Language support: C# #12

sor opened this issue Dec 19, 2019 · 8 comments
Assignees
Labels
enhancement New feature or request language
Milestone

Comments

@sor
Copy link

sor commented Dec 19, 2019

Hey, I really like the idea of your plugin and thought it would be nice to have for C# (Rider).
Additionally you could highlight break, continue, throw and goto statements, then all of the possibly hidden control flow statements would be nicely visible.

@sor sor added enhancement New feature or request language labels Dec 19, 2019
@lppedd
Copy link
Owner

lppedd commented Dec 19, 2019

I think we should stop at return and, maybe, goto for the languages that support it.

I'd like to avoid cluttering the gutter icon space. Anyway I'll certainly look into C++ during the weekend.

Can you split the two languages in two issues?

@sor
Copy link
Author

sor commented Dec 19, 2019

The solution with the gutter is only one possibility, but its the easiest for you since you already did this.
I was thinking to only have a different highlighting for these control flow statements, but Rider does only have one color for all keywords. I would be fine with them being able to have a different color. The gutter would be cluttered ^^

@sor sor changed the title Language support: C# and C++ Language support: C# Dec 19, 2019
@lppedd
Copy link
Owner

lppedd commented Dec 19, 2019

@sor So basically what I could do is

return    > gutter icon
throw     > gutter icon (new color or shape)
goto      > different foreground / background
break     > different foreground / background
continue  > different foreground / background

Is it ok?
I plan on implementing return only for now, I will have more time for the other in the beginning of January.

@lppedd lppedd added this to the 0.9.0 milestone Dec 19, 2019
@sor
Copy link
Author

sor commented Dec 19, 2019

That's super nice, thanks!
For the far future it would be nice to be able to configure to either use colors and/or an icon.

@lppedd
Copy link
Owner

lppedd commented Dec 19, 2019

@sor so do you prefer I go C# first?

@sor
Copy link
Author

sor commented Dec 20, 2019 via email

@rodion-m
Copy link

rodion-m commented Dec 20, 2019

@sor so do you prefer I go C# first?

@lppedd, Thanks in advance for C#!

@lppedd
Copy link
Owner

lppedd commented Dec 20, 2019

I was studying how to do this.
It seems there is no straightforward way, as C# is not available as a plugin.
I'll have to download Rider and check where the PSI elements are stored.

@lppedd lppedd modified the milestones: 0.9.0, Backlog Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language
Projects
None yet
Development

No branches or pull requests

3 participants