2 implementations of RemoveUnnecessaryImportsAsync
Microsoft.CodeAnalysis.Workspaces (1)
AbstractRemoveUnnecessaryImportsService.cs (1)
23public Task<Document> RemoveUnnecessaryImportsAsync(Document document, SyntaxFormattingOptions? formattingOptions, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Features\OrganizeImports\XamlRemoveUnnecessaryImportsService.cs (1)
28public Task<Document> RemoveUnnecessaryImportsAsync(Document document, SyntaxFormattingOptions? formattingOptions, CancellationToken cancellationToken)
5 references to RemoveUnnecessaryImportsAsync
Microsoft.CodeAnalysis.EditorFeatures (1)
Organizing\OrganizeDocumentCommandHandler.cs (1)
163var newDocument = document.GetRequiredLanguageService<IRemoveUnnecessaryImportsService>().RemoveUnnecessaryImportsAsync(document, formattingOptions, cancellationToken).WaitAndGetResult(cancellationToken);
Microsoft.CodeAnalysis.Features (2)
AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
50return await service.RemoveUnnecessaryImportsAsync(document, formattingOptions, cancellationToken).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
89documentWithMovedType = await removeUnnecessaryImports.RemoveUnnecessaryImportsAsync(documentWithMovedType, documentWithMovedTypeFormattingOptions, CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
121document = await removeUsingsService.RemoveUnnecessaryImportsAsync(document, formattingOptions, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
CodeFixes\RemoveUnnecessaryUsings\XamlRemoveUnnecessaryUsingsCodeFixProvider.cs (1)
60return await service.RemoveUnnecessaryImportsAsync(document, formattingOptions: null, cancellationToken).ConfigureAwait(false);