Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 39c021b

Browse files
Refactoring: Update for Roslyn API changes
1 parent 204b6fd commit 39c021b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring/RefactoryCommands.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ internal static async Task SortAndRemoveUnusedImports (Document originalDocument
109109
var workspace = originalDocument.Project.Solution.Workspace;
110110

111111
var unnecessaryImportsService = originalDocument.GetLanguageService<IRemoveUnnecessaryImportsService> ();
112+
var organizeImportsService = originalDocument.GetLanguageService<IOrganizeImportsService> ();
112113

113114
// Remove unnecessary imports and sort them
114115
var removedImportsDocument = await unnecessaryImportsService.RemoveUnnecessaryImportsAsync (originalDocument, cancellationToken);
115-
var resultDocument = await OrganizeImportsService.OrganizeImportsAsync (removedImportsDocument, cancellationToken);
116+
var resultDocument = await organizeImportsService.OrganizeImportsAsync (removedImportsDocument, cancellationToken);
116117

117118
// Apply the document change if needed
118119
if (resultDocument != originalDocument) {

main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/StreamingFindUsagesPresenter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public FindUsagesContext StartSearch (string title, bool supportsReferences)
2424
{
2525
return new MonoDevelopFindUsagesContext ();
2626
}
27+
28+
public FindUsagesContext StartSearchWithCustomColumns(string title, bool supportsReferences, bool includeContainingTypeAndMemberColumns, bool includeKindColumn)
29+
{
30+
return StartSearch(title, supportsReferences);
31+
}
2732
}
2833

2934
sealed class MonoDevelopFindUsagesContext : FindUsagesContext

0 commit comments

Comments
 (0)