-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
No scrollbar in Code Style preview pane #17844
Conversation
Thanks @reaction1989! @dotnet/roslyn-ide can you review. @KirillOsenkov @olegtk do you know of any other effects of switching to the Interactive role? |
I think it also means you'll get a caret, which isn't really terrible. |
@@ -173,7 +173,7 @@ public void UpdatePreview(string text) | |||
LineSpan.FromBounds(startLine, endLine)); | |||
|
|||
var textView = _textEditorFactoryService.CreateTextView(projection, | |||
_textEditorFactoryService.CreateTextViewRoleSet(PredefinedTextViewRoles.Analyzable)); | |||
_textEditorFactoryService.CreateTextViewRoleSet(PredefinedTextViewRoles.Interactive)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also need Analyzable as well? Otherwise we might lose classification or other tagging.
Does this make the view editable? |
Nope it can not be edited. Side effect is that you get an caret and that you are able to mark the code. But it is not possible to copy it |
Note: many of our samples would technically have errors in them (due to duplicated symbols). Can we verify that we don't show squiggles here? |
@CyrusNajmabadi I made my way through all examples in this pane. There were no squiggles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it out locally. Looks good to me.
Thanks @reaction1989! |
Fixes #17679
Before:

After:
