Skip to content

Conversation

@jasonmalinowski
Copy link
Member

@jasonmalinowski jasonmalinowski commented Aug 31, 2021

EditorFeatures.Wpf is supposed to be independent of the VS Shell, the idea is this layer can be hosted in other applications using the VS editor but not VS itself. This re-adds indirection for fetching the dashboard colors, but now only does it when the dashboard is opened.

While I was here I ended up renaming CodeAnalysisColors to DashboardColors which is a bit clearer what it is.

@jasonmalinowski jasonmalinowski requested a review from a team as a code owner August 31, 2021 22:47
@jasonmalinowski jasonmalinowski requested a review from a team August 31, 2021 22:47
@jasonmalinowski jasonmalinowski self-assigned this Aug 31, 2021
ViewIncludesBufferFromWorkspace(_textView, _renameService.ActiveSession.Workspace))
{
_dashboardColorUpdater?.UpdateColors();

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work with theme updates after opening?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, since the thing we're passing around here is the keys, not the colors/brushes themselves. Turns out that's what makes the other approaches difficult -- it's not just the values that are dynamic, but the keys themselves.

@jasonmalinowski jasonmalinowski force-pushed the fix-editorfeatures.wpf-layering branch from d26c2d7 to 492d172 Compare September 1, 2021 00:35
@jasonmalinowski jasonmalinowski force-pushed the fix-editorfeatures.wpf-layering branch from 492d172 to 9e1df28 Compare September 1, 2021 17:39
EditorFeatures.Wpf is supposed to be independent of the VS Shell, the
idea is this layer can be hosted in other applications using the
VS editor but not VS itself. This re-adds indirection for fetching
the dashboard colors, but now only does it when the dashboard is
opened.

While I was here I ended up renaming CodeAnalysisColors to
DashboardColors which is a bit clearer what it is.
@jasonmalinowski jasonmalinowski force-pushed the fix-editorfeatures.wpf-layering branch from 9e1df28 to 074fe49 Compare September 3, 2021 21:53
@jasonmalinowski jasonmalinowski merged commit c8deeaa into dotnet:main Sep 3, 2021
@ghost ghost added this to the Next milestone Sep 3, 2021
@jasonmalinowski jasonmalinowski deleted the fix-editorfeatures.wpf-layering branch September 9, 2021 00:16
@Cosifne Cosifne modified the milestones: Next, 17.0.P5 Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants