Skip to content

Simplify navbar code further.#53898

Merged
CyrusNajmabadi merged 4 commits intodotnet:mainfrom
CyrusNajmabadi:removeMethod
Jun 7, 2021
Merged

Simplify navbar code further.#53898
CyrusNajmabadi merged 4 commits intodotnet:mainfrom
CyrusNajmabadi:removeMethod

Conversation

@CyrusNajmabadi
Copy link
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from dibarbet June 5, 2021 16:09
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 5, 2021 16:09
@ghost ghost added the Area-IDE label Jun 5, 2021
}
// We only show items in gray when near that actually exist (i.e. are not meant for codegen).
// This will be all C# items, and only VB non-codegen items.
return ((WrappedNavigationBarItem)item).UnderlyingItem is SymbolItem;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was just pulling the VB impl up to the VB/C# shared impl. It's the same effective logic for both.

{
var notificationService = workspace.Services.GetRequiredService<INotificationService>();
notificationService.SendNotification(EditorFeaturesResources.The_definition_of_the_object_is_hidden, severity: NotificationSeverity.Error);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

had this code already. So removed the duplicated method and had the caller just call into the otehr impl.

@CyrusNajmabadi CyrusNajmabadi merged commit 2e8cce1 into dotnet:main Jun 7, 2021
@ghost ghost added this to the Next milestone Jun 7, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the removeMethod branch June 7, 2021 19:08
@RikkiGibson RikkiGibson modified the milestones: Next, 17.0.P2 Jun 29, 2021
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.

4 participants