Skip to content

Comments clean up for inheritance margin#52379

Merged
Cosifne merged 11 commits intodotnet:features/inheritanceMarginfrom
Cosifne:dev/shech/inheritanceMarginCleanup
Apr 3, 2021
Merged

Comments clean up for inheritance margin#52379
Cosifne merged 11 commits intodotnet:features/inheritanceMarginfrom
Cosifne:dev/shech/inheritanceMarginCleanup

Conversation

@Cosifne
Copy link
Member

@Cosifne Cosifne commented Apr 2, 2021

Commits name indicates all the code change

@Cosifne Cosifne requested a review from sharwell April 2, 2021 21:50
@Cosifne Cosifne requested a review from a team as a code owner April 2, 2021 21:50
@Cosifne Cosifne requested a review from a team April 2, 2021 21:50
@ghost ghost added the Area-IDE label Apr 2, 2021
@Cosifne Cosifne removed the request for review from a team April 2, 2021 21:50
if (member.IsKind(
SyntaxKind.MethodDeclaration,
SyntaxKind.PropertyDeclaration,
SyntaxKind.EventDeclaration))
Copy link
Member Author

@Cosifne Cosifne Apr 2, 2021

Choose a reason for hiding this comment

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

Original comment: #52357 (comment)

</data>
<data name="Multiple_members_are_inherited_on_line_0" xml:space="preserve">
<value>Multiple members are inherited on line {0}</value>
<comment>Line number info is needed for accessibility purpose.</comment>
Copy link
Member Author

Choose a reason for hiding this comment

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

Orginal comment: #52357 (comment)

_threadingContext,
_streamingFindUsagesPresenter,
_classificationTypeMap,
_classificationFormatMapService.GetClassificationFormatMap("tooltip"),
Copy link
Member Author

Choose a reason for hiding this comment

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

Original comment: #52357 (comment)

var inlines = member.DisplayTexts.ToInlines(classificationFormatMap, classificationTypeMap);
WrapMemberWithinApostrophe(inlines);
inlines.Add(new Run(textAppended));
var startOfThePlaceholder = ServicesVSResources._0_is_inherited.IndexOf("{0}", StringComparison.Ordinal);
Copy link
Member Author

Choose a reason for hiding this comment

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

Original comment: #52357 (comment)

{
SetResourceReference(BackgroundProperty, "VsBrush.CommandBarMenuBackgroundGradient");
SetResourceReference(BorderBrushProperty, "VsBrush.CommandBarMenuBorder");
SetResourceReference(BackgroundProperty, VsBrushes.CommandBarMenuBackgroundGradientKey);
Copy link
Member Author

Choose a reason for hiding this comment

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

Orignal comment #52357 (comment)

<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="$(MicrosoftVisualStudioTextUIWpfVersion)" />
<PackageReference Include="Microsoft.VisualStudio.SDK.EmbedInteropTypes" Version="$(MicrosoftVisualStudioSDKEmbedInteropTypesVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="$(MicrosoftVisualStudioThreadingVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Shell.15.0" Version="$(MicrosoftVisualStudioShell150Version)" />
Copy link
Member Author

Choose a reason for hiding this comment

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

Original comment:
#52357 (comment)
I have move the whole UI part to Microsoft.VisualStudio.LanguageServices project

return ToDefinitionItemAsync(
definition, solution, isPrimary: false, includeHiddenLocations, includeClassifiedSpans: false,
options: FindReferencesSearchOptions.Default, cancellationToken: cancellationToken);
options: FindReferencesSearchOptions.Default.With(unidirectionalHierarchyCascade: true), cancellationToken: cancellationToken);
Copy link
Member Author

Choose a reason for hiding this comment

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

Original comment: #52357 (comment)

@Cosifne Cosifne merged commit ce4378e into dotnet:features/inheritanceMargin Apr 3, 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.

3 participants