From 93d2935ebf54669f262628b8c3545b8030859972 Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Wed, 20 Jul 2016 15:29:55 -0700 Subject: [PATCH] Remove quick info parameters that were never used. --- .../Sessions/StringLiteralCompletionSession.cs | 3 --- .../BlockCommentEditingCommandHandler.cs | 2 -- .../BraceMatching/CSharpDirectiveTriviaBraceMatcher.cs | 1 - .../CSharpEditorClassificationService.cs | 1 - .../CommentSelection/CSharpCommentUncommentService.cs | 3 --- .../XmlTagCompletionCommandHandler.cs | 1 - .../CSharpEndConstructGenerationService.cs | 1 - .../CSharp/EventHookup/EventHookupCommandHandler.cs | 1 - .../CSharp/EventHookup/EventHookupQuickInfoSource.cs | 1 - .../EventHookupSessionManager_EventHookupSession.cs | 1 - ...SharpEditorFormattingService.PasteFormattingRule.cs | 5 ----- .../Formatting/Indentation/CSharpIndentationService.cs | 1 - .../Indentation/SmartTokenFormatterCommandHandler.cs | 1 - .../Formatting/Indentation/WhitespaceExtensions.cs | 3 --- .../GoToDefinition/CSharpGoToDefinitionService.cs | 5 ----- .../CSharpGoToImplementationService.cs | 3 --- .../CSharpDocumentHighlightsService.cs | 1 - .../KeywordHighlighters/AwaitHighlighter.cs | 1 - .../KeywordHighlighters/ReturnStatementHighlighter.cs | 1 - .../KeywordHighlighters/YieldStatementHighlighter.cs | 1 - .../InlineRename/CSharpEditorInlineRenameService.cs | 4 ---- .../CSharpContentTypeLanguageService.cs | 1 - .../NavigationBar/CSharpNavigationBarItemService.cs | 6 ------ .../Outlining/Outliners/CompilationUnitOutliner.cs | 2 -- .../Outlining/Outliners/DisabledTextTriviaOutliner.cs | 1 - .../Outliners/DocumentationCommentOutliner.cs | 1 - .../Outlining/Outliners/EventDeclarationOutliner.cs | 1 - .../Outliners/EventFieldDeclarationOutliner.cs | 1 - .../Outlining/Outliners/FieldDeclarationOutliner.cs | 1 - .../Outlining/Outliners/IndexerDeclarationOutliner.cs | 1 - .../MetadataAsSource/ConstructorDeclarationOutliner.cs | 1 - .../ConversionOperatorDeclarationOutliner.cs | 1 - .../MetadataAsSource/DelegateDeclarationOutliner.cs | 1 - .../MetadataAsSource/DestructorDeclarationOutliner.cs | 1 - .../MetadataAsSource/EnumDeclarationOutliner.cs | 1 - .../MetadataAsSource/EnumMemberDeclarationOutliner.cs | 1 - .../MetadataAsSource/EventDeclarationOutliner.cs | 1 - .../MetadataAsSource/EventFieldDeclarationOutliner.cs | 1 - .../MetadataAsSource/FieldDeclarationOutliner.cs | 1 - .../MetadataAsSource/IndexerDeclarationOutliner.cs | 1 - .../MetadataAsSource/MethodDeclarationOutliner.cs | 1 - .../MetadataAsSource/PropertyDeclarationOutliner.cs | 1 - .../MetadataAsSource/TypeDeclarationOutliner.cs | 1 - .../Outlining/Outliners/MethodDeclarationOutliner.cs | 1 - .../Outliners/NamespaceDeclarationOutliner.cs | 2 -- .../Outlining/Outliners/OperatorDeclarationOutliner.cs | 1 - .../Outliners/ParenthesizedLambdaExpressionOutliner.cs | 1 - .../Outlining/Outliners/PropertyDeclarationOutliner.cs | 1 - .../Outlining/Outliners/RegionDirectiveOutliner.cs | 1 - .../Outliners/SimpleLambdaExpressionOutliner.cs | 1 - .../CSharp/QuickInfo/SemanticQuickInfoProvider.cs | 8 ++------ .../CSharp/QuickInfo/SyntacticQuickInfoProvider.cs | 8 ++------ .../SplitStringLiteralCommandHandler.StringSplitter.cs | 1 - .../SplitStringLiteralCommandHandler.cs | 1 - .../CSharp/UseAutoProperty/UseAutoPropertyAnalyzer.cs | 2 -- .../UseAutoProperty/UseAutoPropertyCodeFixProvider.cs | 1 - .../QuickInfo/SemanticQuickInfoSourceTests.cs | 6 ------ .../QuickInfo/SyntacticQuickInfoSourceTests.cs | 2 -- .../DeferredContent/ClassifiableDeferredContent.cs | 10 +--------- .../QuickInfo/Providers/AbstractQuickInfoProvider.cs | 10 +--------- .../Providers/AbstractSemanticQuickInfoProvider.cs | 6 ++---- .../Sessions/LessAndGreaterThanCompletionSession.vb | 3 --- .../Sessions/ParenthesisCompletionSession.vb | 3 --- .../VisualBasicEditorClassificationService.vb | 1 - .../VisualBasicCommentUncommentService.vb | 2 -- .../EndConstructStatementVisitor_CustomEvents.vb | 1 - .../EndConstructStatementVisitor_LambdaHeader.vb | 1 - .../Indentation/SmartTokenFormatterCommandHandler.vb | 2 -- .../Indentation/VisualBasicIndentationService.vb | 2 -- .../VisualBasicDocumentHighlightsService.vb | 1 - .../VisualBasicEditorInlineRenameService.vb | 2 -- .../VisualBasicContentTypeLanguageService.vb | 2 -- .../LineCommit/CommitBufferManagerFactory.vb | 1 - .../VisualBasic/LineCommit/CommitFormatter.vb | 1 - .../NavigationBar/GenerateDefaultConstructorItem.vb | 2 -- .../NavigationBar/GenerateEventHandlerItem.vb | 2 -- .../VisualBasic/NavigationBar/GenerateFinalizerItem.vb | 2 -- .../VisualBasic/NavigationBar/GenerateMethodItem.vb | 3 --- .../VisualBasic/QuickInfo/SemanticQuickInfoProvider.vb | 10 +++------- ...ReferenceHighlightingAdditionalReferenceProvider.vb | 1 - .../Utilities/LineAdjustmentFormattingRule.vb | 1 - .../VisualBasic/Utilities/NamedTypeSymbolExtensions.vb | 1 - .../QuickInfo/SemanticQuickInfoSourceTests.vb | 2 -- 83 files changed, 11 insertions(+), 167 deletions(-) diff --git a/src/EditorFeatures/CSharp/AutomaticCompletion/Sessions/StringLiteralCompletionSession.cs b/src/EditorFeatures/CSharp/AutomaticCompletion/Sessions/StringLiteralCompletionSession.cs index 7cef277caa9..a0d245c016d 100644 --- a/src/EditorFeatures/CSharp/AutomaticCompletion/Sessions/StringLiteralCompletionSession.cs +++ b/src/EditorFeatures/CSharp/AutomaticCompletion/Sessions/StringLiteralCompletionSession.cs @@ -5,10 +5,7 @@ using Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion; using Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion.Sessions; using Microsoft.CodeAnalysis.LanguageServices; -using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.BraceCompletion; -using Microsoft.VisualStudio.Text.Editor; -using Microsoft.VisualStudio.Text.Operations; namespace Microsoft.CodeAnalysis.Editor.CSharp.AutomaticCompletion.Sessions { diff --git a/src/EditorFeatures/CSharp/BlockCommentEditing/BlockCommentEditingCommandHandler.cs b/src/EditorFeatures/CSharp/BlockCommentEditing/BlockCommentEditingCommandHandler.cs index 84096a465d7..cc65837d4f1 100644 --- a/src/EditorFeatures/CSharp/BlockCommentEditing/BlockCommentEditingCommandHandler.cs +++ b/src/EditorFeatures/CSharp/BlockCommentEditing/BlockCommentEditingCommandHandler.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.ComponentModel.Composition; using System.Diagnostics; using System.Threading; @@ -12,7 +11,6 @@ using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Operations; using Microsoft.VisualStudio.Utilities; -using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.BlockCommentEditing { diff --git a/src/EditorFeatures/CSharp/BraceMatching/CSharpDirectiveTriviaBraceMatcher.cs b/src/EditorFeatures/CSharp/BraceMatching/CSharpDirectiveTriviaBraceMatcher.cs index e02a5ec798c..184b15df7d3 100644 --- a/src/EditorFeatures/CSharp/BraceMatching/CSharpDirectiveTriviaBraceMatcher.cs +++ b/src/EditorFeatures/CSharp/BraceMatching/CSharpDirectiveTriviaBraceMatcher.cs @@ -6,7 +6,6 @@ using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; -using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.BraceMatching { diff --git a/src/EditorFeatures/CSharp/Classification/CSharpEditorClassificationService.cs b/src/EditorFeatures/CSharp/Classification/CSharpEditorClassificationService.cs index 7d8544ea207..7d2439cf88f 100644 --- a/src/EditorFeatures/CSharp/Classification/CSharpEditorClassificationService.cs +++ b/src/EditorFeatures/CSharp/Classification/CSharpEditorClassificationService.cs @@ -6,7 +6,6 @@ using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.CSharp.Classification; using Microsoft.CodeAnalysis.Editor.Implementation.Classification; -using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Text; diff --git a/src/EditorFeatures/CSharp/CommentSelection/CSharpCommentUncommentService.cs b/src/EditorFeatures/CSharp/CommentSelection/CSharpCommentUncommentService.cs index 5a6f5a6b29f..8cb6870c1e7 100644 --- a/src/EditorFeatures/CSharp/CommentSelection/CSharpCommentUncommentService.cs +++ b/src/EditorFeatures/CSharp/CommentSelection/CSharpCommentUncommentService.cs @@ -1,10 +1,7 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.ComponentModel.Composition; using System.Composition; -using Microsoft.CodeAnalysis.Editor.Host; using Microsoft.CodeAnalysis.Editor.Implementation.CommentSelection; -using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Editor.CSharp.CommentSelection diff --git a/src/EditorFeatures/CSharp/DocumentationComments/XmlTagCompletionCommandHandler.cs b/src/EditorFeatures/CSharp/DocumentationComments/XmlTagCompletionCommandHandler.cs index 7cee5728d94..c465c988732 100644 --- a/src/EditorFeatures/CSharp/DocumentationComments/XmlTagCompletionCommandHandler.cs +++ b/src/EditorFeatures/CSharp/DocumentationComments/XmlTagCompletionCommandHandler.cs @@ -12,7 +12,6 @@ using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Operations; using Microsoft.VisualStudio.Utilities; -using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.DocumentationComments { diff --git a/src/EditorFeatures/CSharp/EndConstruct/CSharpEndConstructGenerationService.cs b/src/EditorFeatures/CSharp/EndConstruct/CSharpEndConstructGenerationService.cs index 7344e67bc1d..fdd86e5e8b8 100644 --- a/src/EditorFeatures/CSharp/EndConstruct/CSharpEndConstructGenerationService.cs +++ b/src/EditorFeatures/CSharp/EndConstruct/CSharpEndConstructGenerationService.cs @@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis; using System.Threading; using Microsoft.CodeAnalysis.Editor.Implementation.EndConstructGeneration; -using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; diff --git a/src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler.cs b/src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler.cs index 7a2445a5e63..83883c8c41e 100644 --- a/src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler.cs +++ b/src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using System.ComponentModel.Composition; using System.Threading; -using Microsoft.CodeAnalysis.Editor.Host; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.Language.Intellisense; diff --git a/src/EditorFeatures/CSharp/EventHookup/EventHookupQuickInfoSource.cs b/src/EditorFeatures/CSharp/EventHookup/EventHookupQuickInfoSource.cs index bb8585fee64..568916acedb 100644 --- a/src/EditorFeatures/CSharp/EventHookup/EventHookupQuickInfoSource.cs +++ b/src/EditorFeatures/CSharp/EventHookup/EventHookupQuickInfoSource.cs @@ -10,7 +10,6 @@ using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.VisualStudio.Language.Intellisense; using Microsoft.VisualStudio.Text; -using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.EventHookup { diff --git a/src/EditorFeatures/CSharp/EventHookup/EventHookupSessionManager_EventHookupSession.cs b/src/EditorFeatures/CSharp/EventHookup/EventHookupSessionManager_EventHookupSession.cs index 78c75208c02..2cbf724c075 100644 --- a/src/EditorFeatures/CSharp/EventHookup/EventHookupSessionManager_EventHookupSession.cs +++ b/src/EditorFeatures/CSharp/EventHookup/EventHookupSessionManager_EventHookupSession.cs @@ -5,7 +5,6 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; diff --git a/src/EditorFeatures/CSharp/Formatting/CSharpEditorFormattingService.PasteFormattingRule.cs b/src/EditorFeatures/CSharp/Formatting/CSharpEditorFormattingService.PasteFormattingRule.cs index 734b48d6d35..28187fe24dd 100644 --- a/src/EditorFeatures/CSharp/Formatting/CSharpEditorFormattingService.PasteFormattingRule.cs +++ b/src/EditorFeatures/CSharp/Formatting/CSharpEditorFormattingService.PasteFormattingRule.cs @@ -1,10 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Formatting.Rules; using Microsoft.CodeAnalysis.Options; diff --git a/src/EditorFeatures/CSharp/Formatting/Indentation/CSharpIndentationService.cs b/src/EditorFeatures/CSharp/Formatting/Indentation/CSharpIndentationService.cs index e6ed5763de3..0c6daf061c3 100644 --- a/src/EditorFeatures/CSharp/Formatting/Indentation/CSharpIndentationService.cs +++ b/src/EditorFeatures/CSharp/Formatting/Indentation/CSharpIndentationService.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Composition; using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Formatting/Indentation/SmartTokenFormatterCommandHandler.cs b/src/EditorFeatures/CSharp/Formatting/Indentation/SmartTokenFormatterCommandHandler.cs index b13563e635f..00844252c9f 100644 --- a/src/EditorFeatures/CSharp/Formatting/Indentation/SmartTokenFormatterCommandHandler.cs +++ b/src/EditorFeatures/CSharp/Formatting/Indentation/SmartTokenFormatterCommandHandler.cs @@ -11,7 +11,6 @@ using Microsoft.CodeAnalysis.Formatting.Rules; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Text; -using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Operations; using Microsoft.VisualStudio.Utilities; using Roslyn.Utilities; diff --git a/src/EditorFeatures/CSharp/Formatting/Indentation/WhitespaceExtensions.cs b/src/EditorFeatures/CSharp/Formatting/Indentation/WhitespaceExtensions.cs index 4a620b5c604..d27e4791b93 100644 --- a/src/EditorFeatures/CSharp/Formatting/Indentation/WhitespaceExtensions.cs +++ b/src/EditorFeatures/CSharp/Formatting/Indentation/WhitespaceExtensions.cs @@ -1,8 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Editor.Implementation.Formatting.Indentation; -using Microsoft.VisualStudio.Text; namespace Microsoft.CodeAnalysis.Editor.CSharp.Formatting.Indentation { diff --git a/src/EditorFeatures/CSharp/GoToDefinition/CSharpGoToDefinitionService.cs b/src/EditorFeatures/CSharp/GoToDefinition/CSharpGoToDefinitionService.cs index 18268bc418b..8dd47c6be1e 100644 --- a/src/EditorFeatures/CSharp/GoToDefinition/CSharpGoToDefinitionService.cs +++ b/src/EditorFeatures/CSharp/GoToDefinition/CSharpGoToDefinitionService.cs @@ -3,13 +3,8 @@ using System; using System.Collections.Generic; using System.Composition; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Host; using Microsoft.CodeAnalysis.Editor.Implementation.GoToDefinition; -using Microsoft.CodeAnalysis.Editor.Navigation; -using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Editor.CSharp.GoToDefinition diff --git a/src/EditorFeatures/CSharp/GoToImplementation/CSharpGoToImplementationService.cs b/src/EditorFeatures/CSharp/GoToImplementation/CSharpGoToImplementationService.cs index 1deb7fbfe2e..bc30c342b92 100644 --- a/src/EditorFeatures/CSharp/GoToImplementation/CSharpGoToImplementationService.cs +++ b/src/EditorFeatures/CSharp/GoToImplementation/CSharpGoToImplementationService.cs @@ -3,9 +3,6 @@ using System; using System.Collections.Generic; using System.Composition; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Host; using Microsoft.CodeAnalysis.Editor.Implementation.GoToImplementation; using Microsoft.CodeAnalysis.Host.Mef; diff --git a/src/EditorFeatures/CSharp/HighlightReferences/CSharpDocumentHighlightsService.cs b/src/EditorFeatures/CSharp/HighlightReferences/CSharpDocumentHighlightsService.cs index 0934264d743..c1f3baf669e 100644 --- a/src/EditorFeatures/CSharp/HighlightReferences/CSharpDocumentHighlightsService.cs +++ b/src/EditorFeatures/CSharp/HighlightReferences/CSharpDocumentHighlightsService.cs @@ -2,7 +2,6 @@ using System.Composition; using Microsoft.CodeAnalysis.Editor.Implementation.ReferenceHighlighting; -using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Editor.CSharp.HighlightReferences diff --git a/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AwaitHighlighter.cs b/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AwaitHighlighter.cs index 0db312fe59c..0a44d772e83 100644 --- a/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AwaitHighlighter.cs +++ b/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AwaitHighlighter.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading; -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; diff --git a/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/ReturnStatementHighlighter.cs b/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/ReturnStatementHighlighter.cs index 670e9a18496..d6f93e08ca3 100644 --- a/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/ReturnStatementHighlighter.cs +++ b/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/ReturnStatementHighlighter.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading; -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Implementation.Highlighting; diff --git a/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/YieldStatementHighlighter.cs b/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/YieldStatementHighlighter.cs index 2f3fed530a5..a7dcc02b76f 100644 --- a/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/YieldStatementHighlighter.cs +++ b/src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/YieldStatementHighlighter.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading; -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Implementation.Highlighting; diff --git a/src/EditorFeatures/CSharp/InlineRename/CSharpEditorInlineRenameService.cs b/src/EditorFeatures/CSharp/InlineRename/CSharpEditorInlineRenameService.cs index 2786b27e52a..c025c1e04c3 100644 --- a/src/EditorFeatures/CSharp/InlineRename/CSharpEditorInlineRenameService.cs +++ b/src/EditorFeatures/CSharp/InlineRename/CSharpEditorInlineRenameService.cs @@ -1,11 +1,7 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Composition; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Implementation.InlineRename; using Microsoft.CodeAnalysis.Host.Mef; diff --git a/src/EditorFeatures/CSharp/LanguageServices/CSharpContentTypeLanguageService.cs b/src/EditorFeatures/CSharp/LanguageServices/CSharpContentTypeLanguageService.cs index ca1ab42ba00..d85f28b4fb2 100644 --- a/src/EditorFeatures/CSharp/LanguageServices/CSharpContentTypeLanguageService.cs +++ b/src/EditorFeatures/CSharp/LanguageServices/CSharpContentTypeLanguageService.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; -using Microsoft.CodeAnalysis.Host; using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.LanguageServices diff --git a/src/EditorFeatures/CSharp/NavigationBar/CSharpNavigationBarItemService.cs b/src/EditorFeatures/CSharp/NavigationBar/CSharpNavigationBarItemService.cs index 886e7fb3c03..56fb1e8368e 100644 --- a/src/EditorFeatures/CSharp/NavigationBar/CSharpNavigationBarItemService.cs +++ b/src/EditorFeatures/CSharp/NavigationBar/CSharpNavigationBarItemService.cs @@ -1,25 +1,19 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.ComponentModel.Composition; using System.Composition; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Extensibility.NavigationBar; using Microsoft.CodeAnalysis.Editor.Implementation.NavigationBar; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; -using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; -using Microsoft.VisualStudio.Language.Intellisense; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; using Roslyn.Utilities; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/CompilationUnitOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/CompilationUnitOutliner.cs index 67f0b98a7ed..d3e7b806b0b 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/CompilationUnitOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/CompilationUnitOutliner.cs @@ -1,9 +1,7 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Linq; using System.Threading; -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Implementation.Outlining; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/DisabledTextTriviaOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/DisabledTextTriviaOutliner.cs index 773bb62a653..41494b10994 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/DisabledTextTriviaOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/DisabledTextTriviaOutliner.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Editor.Implementation.Outlining; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/DocumentationCommentOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/DocumentationCommentOutliner.cs index 913de1f5795..4ccf7f15e53 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/DocumentationCommentOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/DocumentationCommentOutliner.cs @@ -8,7 +8,6 @@ using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Implementation.Outlining; -using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/EventDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/EventDeclarationOutliner.cs index 28e8b1cb89e..0c5f5e39d00 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/EventDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/EventDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/EventFieldDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/EventFieldDeclarationOutliner.cs index a711edd60e3..c0ece232d5f 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/EventFieldDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/EventFieldDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/FieldDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/FieldDeclarationOutliner.cs index a9249fdeac5..7ca03b8a6bf 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/FieldDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/FieldDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/IndexerDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/IndexerDeclarationOutliner.cs index 4b4332818ca..98430c58034 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/IndexerDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/IndexerDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConstructorDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConstructorDeclarationOutliner.cs index 02e73e598d3..46afb8c468d 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConstructorDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConstructorDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConversionOperatorDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConversionOperatorDeclarationOutliner.cs index 0b61422668b..50ece7e7833 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConversionOperatorDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/ConversionOperatorDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DelegateDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DelegateDeclarationOutliner.cs index fb875f32964..fc0e7932ebf 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DelegateDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DelegateDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DestructorDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DestructorDeclarationOutliner.cs index 02c7c9fe803..19e87248d06 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DestructorDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/DestructorDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumDeclarationOutliner.cs index 4888fa29a1a..d7020fb2fcc 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumMemberDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumMemberDeclarationOutliner.cs index 2672b10f6cd..231a08f4dce 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumMemberDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EnumMemberDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventDeclarationOutliner.cs index c0537588238..abb799f8229 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventFieldDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventFieldDeclarationOutliner.cs index 70690dc033d..1fb2f42d867 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventFieldDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/EventFieldDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/FieldDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/FieldDeclarationOutliner.cs index 206e94183df..ff27cbdef00 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/FieldDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/FieldDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/IndexerDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/IndexerDeclarationOutliner.cs index 986664824eb..207ef357e51 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/IndexerDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/IndexerDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/MethodDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/MethodDeclarationOutliner.cs index 7259daf0b0b..bd9af105332 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/MethodDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/MethodDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/PropertyDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/PropertyDeclarationOutliner.cs index 3b05b0ace31..bc0cc51be5c 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/PropertyDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/PropertyDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/TypeDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/TypeDeclarationOutliner.cs index 633753f687c..375a8b649bb 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/TypeDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MetadataAsSource/TypeDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.Editor.CSharp.Outlining.MetadataAsSource diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/MethodDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/MethodDeclarationOutliner.cs index fa307bc8879..8432b127806 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/MethodDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/MethodDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/NamespaceDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/NamespaceDeclarationOutliner.cs index 8055ff32785..9b204611001 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/NamespaceDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/NamespaceDeclarationOutliner.cs @@ -1,10 +1,8 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; using System.Threading; -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.Implementation.Outlining; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/OperatorDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/OperatorDeclarationOutliner.cs index 781659ec49e..aaca26df76a 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/OperatorDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/OperatorDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/ParenthesizedLambdaExpressionOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/ParenthesizedLambdaExpressionOutliner.cs index f3d79bd2e2f..ce1b33a69df 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/ParenthesizedLambdaExpressionOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/ParenthesizedLambdaExpressionOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/PropertyDeclarationOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/PropertyDeclarationOutliner.cs index 39b2bc10b64..efd1447df70 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/PropertyDeclarationOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/PropertyDeclarationOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/RegionDirectiveOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/RegionDirectiveOutliner.cs index 65099bbb3ad..e9a67a127cf 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/RegionDirectiveOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/RegionDirectiveOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Extensions; diff --git a/src/EditorFeatures/CSharp/Outlining/Outliners/SimpleLambdaExpressionOutliner.cs b/src/EditorFeatures/CSharp/Outlining/Outliners/SimpleLambdaExpressionOutliner.cs index 82c60c67b08..1b5414d50f1 100644 --- a/src/EditorFeatures/CSharp/Outlining/Outliners/SimpleLambdaExpressionOutliner.cs +++ b/src/EditorFeatures/CSharp/Outlining/Outliners/SimpleLambdaExpressionOutliner.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/EditorFeatures/CSharp/QuickInfo/SemanticQuickInfoProvider.cs b/src/EditorFeatures/CSharp/QuickInfo/SemanticQuickInfoProvider.cs index 39a8da797a9..08ff532525c 100644 --- a/src/EditorFeatures/CSharp/QuickInfo/SemanticQuickInfoProvider.cs +++ b/src/EditorFeatures/CSharp/QuickInfo/SemanticQuickInfoProvider.cs @@ -5,10 +5,8 @@ using Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.VisualStudio.Language.Intellisense; -using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Projection; -using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.QuickInfo { @@ -17,15 +15,13 @@ internal class SemanticQuickInfoProvider : AbstractSemanticQuickInfoProvider { [ImportingConstructor] public SemanticQuickInfoProvider( - ITextBufferFactoryService textBufferFactoryService, - IContentTypeRegistryService contentTypeRegistryService, IProjectionBufferFactoryService projectionBufferFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, ITextEditorFactoryService textEditorFactoryService, IGlyphService glyphService, ClassificationTypeMap typeMap) - : base(textBufferFactoryService, contentTypeRegistryService, projectionBufferFactoryService, - editorOptionsFactoryService, textEditorFactoryService, glyphService, typeMap) + : base(projectionBufferFactoryService, editorOptionsFactoryService, + textEditorFactoryService, glyphService, typeMap) { } diff --git a/src/EditorFeatures/CSharp/QuickInfo/SyntacticQuickInfoProvider.cs b/src/EditorFeatures/CSharp/QuickInfo/SyntacticQuickInfoProvider.cs index 66f2f901b22..142befb4b73 100644 --- a/src/EditorFeatures/CSharp/QuickInfo/SyntacticQuickInfoProvider.cs +++ b/src/EditorFeatures/CSharp/QuickInfo/SyntacticQuickInfoProvider.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; @@ -15,7 +14,6 @@ using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Projection; -using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.QuickInfo { @@ -24,15 +22,13 @@ internal class SyntacticQuickInfoProvider : AbstractQuickInfoProvider { [ImportingConstructor] public SyntacticQuickInfoProvider( - ITextBufferFactoryService textBufferFactoryService, - IContentTypeRegistryService contentTypeRegistryService, IProjectionBufferFactoryService projectionBufferFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, ITextEditorFactoryService textEditorFactoryService, IGlyphService glyphService, ClassificationTypeMap typeMap) - : base(textBufferFactoryService, contentTypeRegistryService, projectionBufferFactoryService, - editorOptionsFactoryService, textEditorFactoryService, glyphService, typeMap) + : base(projectionBufferFactoryService, editorOptionsFactoryService, + textEditorFactoryService, glyphService, typeMap) { } diff --git a/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.StringSplitter.cs b/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.StringSplitter.cs index 0e3ac9eb2f1..9ae4fb36a47 100644 --- a/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.StringSplitter.cs +++ b/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.StringSplitter.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Formatting; diff --git a/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.cs b/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.cs index 21a1df4d1e1..da2cd362725 100644 --- a/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.cs +++ b/src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.cs @@ -1,6 +1,5 @@ using System; using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Commands; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Formatting; diff --git a/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyAnalyzer.cs b/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyAnalyzer.cs index 2e37d861863..6759a864e0c 100644 --- a/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyAnalyzer.cs +++ b/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyAnalyzer.cs @@ -2,13 +2,11 @@ using System.Collections.Concurrent; using System.ComponentModel.Composition; -using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.UseAutoProperty; -using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.CSharp.UseAutoProperty { diff --git a/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyCodeFixProvider.cs b/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyCodeFixProvider.cs index 021872630f9..3969ed1cc54 100644 --- a/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyCodeFixProvider.cs +++ b/src/EditorFeatures/CSharp/UseAutoProperty/UseAutoPropertyCodeFixProvider.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Composition; using System.Linq; diff --git a/src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs b/src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs index 110bea9b95b..2e1f6f0c091 100644 --- a/src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs +++ b/src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs @@ -40,8 +40,6 @@ private async Task TestWithOptionsAsync(TestWorkspace workspace, params Action(), - workspace.GetService(), workspace.GetService(), workspace.GetService(), workspace.GetService(), @@ -106,8 +104,6 @@ private async Task VerifyWithMscorlib45Async(string markup, Action[] exp var document = workspace.CurrentSolution.GetDocument(documentId); var provider = new SemanticQuickInfoProvider( - workspace.GetService(), - workspace.GetService(), workspace.GetService(), workspace.GetService(), workspace.GetService(), @@ -263,8 +259,6 @@ private async Task VerifyWithReferenceWorkerAsync(string xmlString, params Actio var document = workspace.CurrentSolution.GetDocument(documentId); var provider = new SemanticQuickInfoProvider( - workspace.GetService(), - workspace.GetService(), workspace.GetService(), workspace.GetService(), workspace.GetService(), diff --git a/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs b/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs index e54ee723341..72007fd5adb 100644 --- a/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs +++ b/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs @@ -277,8 +277,6 @@ public async Task ScopeBrackets_10() private IQuickInfoProvider CreateProvider(TestWorkspace workspace) { return new SyntacticQuickInfoProvider( - workspace.GetService(), - workspace.GetService(), workspace.GetService(), workspace.GetService(), workspace.GetService(), diff --git a/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/DeferredContent/ClassifiableDeferredContent.cs b/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/DeferredContent/ClassifiableDeferredContent.cs index 7f608f65961..3ca28293190 100644 --- a/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/DeferredContent/ClassifiableDeferredContent.cs +++ b/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/DeferredContent/ClassifiableDeferredContent.cs @@ -4,8 +4,6 @@ using System.Windows; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; -using Microsoft.VisualStudio.Text; -using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo { @@ -13,19 +11,13 @@ internal class ClassifiableDeferredContent : IDeferredQuickInfoContent { // Internal for testing purposes. internal readonly IList ClassifiableContent; - private readonly ITextBufferFactoryService _textBufferFactoryService; - private readonly IContentTypeRegistryService _contentTypeRegistryService; private readonly ClassificationTypeMap _typeMap; public ClassifiableDeferredContent( IList content, - ITextBufferFactoryService textBufferFactoryService, - IContentTypeRegistryService contentTypeRegistryService, ClassificationTypeMap typeMap) { this.ClassifiableContent = content; - _textBufferFactoryService = textBufferFactoryService; - _contentTypeRegistryService = contentTypeRegistryService; _typeMap = typeMap; } @@ -41,4 +33,4 @@ public virtual FrameworkElement Create() return classifiedTextBlock; } } -} +} \ No newline at end of file diff --git a/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractQuickInfoProvider.cs b/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractQuickInfoProvider.cs index c4de295f575..a85a61baa80 100644 --- a/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractQuickInfoProvider.cs +++ b/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractQuickInfoProvider.cs @@ -9,14 +9,11 @@ using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Projection; -using Microsoft.VisualStudio.Utilities; namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo { internal abstract partial class AbstractQuickInfoProvider : IQuickInfoProvider { - private readonly ITextBufferFactoryService _textBufferFactoryService; - private readonly IContentTypeRegistryService _contentTypeRegistryService; private readonly IProjectionBufferFactoryService _projectionBufferFactoryService; private readonly IEditorOptionsFactoryService _editorOptionsFactoryService; private readonly ITextEditorFactoryService _textEditorFactoryService; @@ -24,16 +21,12 @@ internal abstract partial class AbstractQuickInfoProvider : IQuickInfoProvider private readonly ClassificationTypeMap _typeMap; protected AbstractQuickInfoProvider( - ITextBufferFactoryService textBufferFactoryService, - IContentTypeRegistryService contentTypeRegistryService, IProjectionBufferFactoryService projectionBufferFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, ITextEditorFactoryService textEditorFactoryService, IGlyphService glyphService, ClassificationTypeMap typeMap) { - _textBufferFactoryService = textBufferFactoryService; - _contentTypeRegistryService = contentTypeRegistryService; _projectionBufferFactoryService = projectionBufferFactoryService; _editorOptionsFactoryService = editorOptionsFactoryService; _textEditorFactoryService = textEditorFactoryService; @@ -148,8 +141,7 @@ protected IDeferredQuickInfoContent CreateGlyphDeferredContent(ISymbol symbol) protected IDeferredQuickInfoContent CreateClassifiableDeferredContent(IList content) { - return new ClassifiableDeferredContent( - content, _textBufferFactoryService, _contentTypeRegistryService, _typeMap); + return new ClassifiableDeferredContent(content, _typeMap); } protected IDeferredQuickInfoContent CreateDocumentationCommentDeferredContent( diff --git a/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractSemanticQuickInfoProvider.cs b/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractSemanticQuickInfoProvider.cs index 784861d78ca..274ad18efd5 100644 --- a/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractSemanticQuickInfoProvider.cs +++ b/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/Providers/AbstractSemanticQuickInfoProvider.cs @@ -23,15 +23,13 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo internal abstract partial class AbstractSemanticQuickInfoProvider : AbstractQuickInfoProvider { public AbstractSemanticQuickInfoProvider( - ITextBufferFactoryService textBufferFactoryService, - IContentTypeRegistryService contentTypeRegistryService, IProjectionBufferFactoryService projectionBufferFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, ITextEditorFactoryService textEditorFactoryService, IGlyphService glyphService, ClassificationTypeMap typeMap) - : base(textBufferFactoryService, contentTypeRegistryService, projectionBufferFactoryService, - editorOptionsFactoryService, textEditorFactoryService, glyphService, typeMap) + : base(projectionBufferFactoryService, editorOptionsFactoryService, + textEditorFactoryService, glyphService, typeMap) { } diff --git a/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/LessAndGreaterThanCompletionSession.vb b/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/LessAndGreaterThanCompletionSession.vb index c95e835b3a2..79edb468eed 100644 --- a/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/LessAndGreaterThanCompletionSession.vb +++ b/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/LessAndGreaterThanCompletionSession.vb @@ -2,11 +2,8 @@ Imports Microsoft.CodeAnalysis.LanguageServices Imports Microsoft.CodeAnalysis.VisualBasic.Syntax -Imports Microsoft.VisualStudio.Text.Editor -Imports Microsoft.VisualStudio.Text.Operations Imports Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion Imports Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion.Sessions -Imports Microsoft.VisualStudio.Text Imports System.Threading Imports Microsoft.VisualStudio.Text.BraceCompletion diff --git a/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/ParenthesisCompletionSession.vb b/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/ParenthesisCompletionSession.vb index 65f58a45a48..f4065f78b8e 100644 --- a/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/ParenthesisCompletionSession.vb +++ b/src/EditorFeatures/VisualBasic/AutomaticCompletion/Sessions/ParenthesisCompletionSession.vb @@ -2,11 +2,8 @@ Imports Microsoft.CodeAnalysis.LanguageServices Imports Microsoft.CodeAnalysis.VisualBasic.Syntax -Imports Microsoft.VisualStudio.Text.Editor -Imports Microsoft.VisualStudio.Text.Operations Imports Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion Imports Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion.Sessions -Imports Microsoft.VisualStudio.Text Imports System.Threading Imports Microsoft.VisualStudio.Text.BraceCompletion diff --git a/src/EditorFeatures/VisualBasic/Classification/VisualBasicEditorClassificationService.vb b/src/EditorFeatures/VisualBasic/Classification/VisualBasicEditorClassificationService.vb index ee864a397c9..3baa42c6b82 100644 --- a/src/EditorFeatures/VisualBasic/Classification/VisualBasicEditorClassificationService.vb +++ b/src/EditorFeatures/VisualBasic/Classification/VisualBasicEditorClassificationService.vb @@ -4,7 +4,6 @@ Imports System.Composition Imports System.Threading Imports Microsoft.CodeAnalysis.Classification Imports Microsoft.CodeAnalysis.Editor.Implementation.Classification -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Classification diff --git a/src/EditorFeatures/VisualBasic/CommentSelection/VisualBasicCommentUncommentService.vb b/src/EditorFeatures/VisualBasic/CommentSelection/VisualBasicCommentUncommentService.vb index 95d1b95d7a5..ac1bc4e7e0b 100644 --- a/src/EditorFeatures/VisualBasic/CommentSelection/VisualBasicCommentUncommentService.vb +++ b/src/EditorFeatures/VisualBasic/CommentSelection/VisualBasicCommentUncommentService.vb @@ -1,9 +1,7 @@ ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports System.Composition -Imports Microsoft.CodeAnalysis.Editor.Host Imports Microsoft.CodeAnalysis.Editor.Implementation.CommentSelection -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.CommentSelection diff --git a/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_CustomEvents.vb b/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_CustomEvents.vb index 7f4031fb657..e3cd1dc0fe6 100644 --- a/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_CustomEvents.vb +++ b/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_CustomEvents.vb @@ -1,6 +1,5 @@ ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.EndConstructGeneration diff --git a/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_LambdaHeader.vb b/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_LambdaHeader.vb index 7694ce9ed0e..6b3a69f6f0c 100644 --- a/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_LambdaHeader.vb +++ b/src/EditorFeatures/VisualBasic/EndConstructGeneration/EndConstructStatementVisitor_LambdaHeader.vb @@ -1,7 +1,6 @@ ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports Microsoft.CodeAnalysis -Imports Microsoft.CodeAnalysis.Formatting Imports Microsoft.CodeAnalysis.Text.Shared.Extensions Imports Microsoft.CodeAnalysis.VisualBasic.Syntax diff --git a/src/EditorFeatures/VisualBasic/Formatting/Indentation/SmartTokenFormatterCommandHandler.vb b/src/EditorFeatures/VisualBasic/Formatting/Indentation/SmartTokenFormatterCommandHandler.vb index 45c34f0c57d..a24ab27ab70 100644 --- a/src/EditorFeatures/VisualBasic/Formatting/Indentation/SmartTokenFormatterCommandHandler.vb +++ b/src/EditorFeatures/VisualBasic/Formatting/Indentation/SmartTokenFormatterCommandHandler.vb @@ -8,8 +8,6 @@ Imports Microsoft.CodeAnalysis.Formatting.Rules Imports Microsoft.CodeAnalysis.Options Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax -Imports Microsoft.VisualStudio.Text -Imports Microsoft.VisualStudio.Text.Editor Imports Microsoft.VisualStudio.Text.Operations Imports Microsoft.VisualStudio.Utilities diff --git a/src/EditorFeatures/VisualBasic/Formatting/Indentation/VisualBasicIndentationService.vb b/src/EditorFeatures/VisualBasic/Formatting/Indentation/VisualBasicIndentationService.vb index 47664c9d4fc..a4371831677 100644 --- a/src/EditorFeatures/VisualBasic/Formatting/Indentation/VisualBasicIndentationService.vb +++ b/src/EditorFeatures/VisualBasic/Formatting/Indentation/VisualBasicIndentationService.vb @@ -4,14 +4,12 @@ Imports System.Composition Imports System.Threading Imports Microsoft.CodeAnalysis.Editor.Implementation.SmartIndent Imports Microsoft.CodeAnalysis.Formatting.Rules -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.LanguageServices Imports Microsoft.CodeAnalysis.Options Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.Text.Shared.Extensions Imports Microsoft.CodeAnalysis.VisualBasic.Syntax -Imports Microsoft.VisualStudio.Text Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.Formatting.Indentation diff --git a/src/EditorFeatures/VisualBasic/HighlightReferences/VisualBasicDocumentHighlightsService.vb b/src/EditorFeatures/VisualBasic/HighlightReferences/VisualBasicDocumentHighlightsService.vb index fedd8f844ec..b0693439b5d 100644 --- a/src/EditorFeatures/VisualBasic/HighlightReferences/VisualBasicDocumentHighlightsService.vb +++ b/src/EditorFeatures/VisualBasic/HighlightReferences/VisualBasicDocumentHighlightsService.vb @@ -2,7 +2,6 @@ Imports System.Composition Imports Microsoft.CodeAnalysis.Editor.Implementation.ReferenceHighlighting -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.HighlightReferences diff --git a/src/EditorFeatures/VisualBasic/InlineRename/VisualBasicEditorInlineRenameService.vb b/src/EditorFeatures/VisualBasic/InlineRename/VisualBasicEditorInlineRenameService.vb index 4c9fc984152..24e14e6aa8e 100644 --- a/src/EditorFeatures/VisualBasic/InlineRename/VisualBasicEditorInlineRenameService.vb +++ b/src/EditorFeatures/VisualBasic/InlineRename/VisualBasicEditorInlineRenameService.vb @@ -2,9 +2,7 @@ Imports System.Composition Imports Microsoft.CodeAnalysis.Editor.Implementation.InlineRename -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef -Imports Microsoft.CodeAnalysis.LanguageServices Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.ImplementInterface diff --git a/src/EditorFeatures/VisualBasic/LanguageServices/VisualBasicContentTypeLanguageService.vb b/src/EditorFeatures/VisualBasic/LanguageServices/VisualBasicContentTypeLanguageService.vb index 1aadb76f7e8..ae6fd0ab0f6 100644 --- a/src/EditorFeatures/VisualBasic/LanguageServices/VisualBasicContentTypeLanguageService.vb +++ b/src/EditorFeatures/VisualBasic/LanguageServices/VisualBasicContentTypeLanguageService.vb @@ -1,8 +1,6 @@ ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports System.Composition -Imports Microsoft.CodeAnalysis.Host -Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.VisualStudio.Utilities Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.LanguageServices diff --git a/src/EditorFeatures/VisualBasic/LineCommit/CommitBufferManagerFactory.vb b/src/EditorFeatures/VisualBasic/LineCommit/CommitBufferManagerFactory.vb index d0e5a2fc5ab..8752f40781b 100644 --- a/src/EditorFeatures/VisualBasic/LineCommit/CommitBufferManagerFactory.vb +++ b/src/EditorFeatures/VisualBasic/LineCommit/CommitBufferManagerFactory.vb @@ -2,7 +2,6 @@ Imports System.ComponentModel.Composition Imports Microsoft.VisualStudio.Text -Imports Microsoft.VisualStudio.Text.Operations Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.LineCommit diff --git a/src/EditorFeatures/VisualBasic/LineCommit/CommitFormatter.vb b/src/EditorFeatures/VisualBasic/LineCommit/CommitFormatter.vb index a62e09f6667..d698d9e20c6 100644 --- a/src/EditorFeatures/VisualBasic/LineCommit/CommitFormatter.vb +++ b/src/EditorFeatures/VisualBasic/LineCommit/CommitFormatter.vb @@ -7,7 +7,6 @@ Imports Microsoft.CodeAnalysis.CodeCleanup Imports Microsoft.CodeAnalysis.CodeCleanup.Providers Imports Microsoft.CodeAnalysis.Formatting Imports Microsoft.CodeAnalysis.Internal.Log -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Options Imports Microsoft.CodeAnalysis.Formatting.Rules Imports Microsoft.CodeAnalysis.Text diff --git a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateDefaultConstructorItem.vb b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateDefaultConstructorItem.vb index 11a915a83a8..2f14472747f 100644 --- a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateDefaultConstructorItem.vb +++ b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateDefaultConstructorItem.vb @@ -5,8 +5,6 @@ Imports System.Threading.Tasks Imports Microsoft.CodeAnalysis.CodeGeneration Imports Microsoft.CodeAnalysis.Editing Imports Microsoft.CodeAnalysis.Editor.VisualBasic.Utilities -Imports Microsoft.CodeAnalysis.Text -Imports Microsoft.VisualStudio.Text Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.NavigationBar Friend Class GenerateDefaultConstructorItem diff --git a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateEventHandlerItem.vb b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateEventHandlerItem.vb index 707acaf6132..f94dd802c6a 100644 --- a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateEventHandlerItem.vb +++ b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateEventHandlerItem.vb @@ -4,9 +4,7 @@ Imports System.Threading Imports System.Threading.Tasks Imports Microsoft.CodeAnalysis.CodeGeneration Imports Microsoft.CodeAnalysis.Editing -Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax -Imports Microsoft.VisualStudio.Text Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.NavigationBar Friend Class GenerateEventHandlerItem diff --git a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateFinalizerItem.vb b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateFinalizerItem.vb index 1b960d46396..10d3b021c9f 100644 --- a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateFinalizerItem.vb +++ b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateFinalizerItem.vb @@ -4,8 +4,6 @@ Imports System.Threading Imports System.Threading.Tasks Imports Microsoft.CodeAnalysis.CodeGeneration Imports Microsoft.CodeAnalysis.Editing -Imports Microsoft.CodeAnalysis.Text -Imports Microsoft.VisualStudio.Text Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.NavigationBar Friend Class GenerateFinalizerItem diff --git a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateMethodItem.vb b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateMethodItem.vb index 5610e38b54a..7e89f024c83 100644 --- a/src/EditorFeatures/VisualBasic/NavigationBar/GenerateMethodItem.vb +++ b/src/EditorFeatures/VisualBasic/NavigationBar/GenerateMethodItem.vb @@ -3,9 +3,6 @@ Imports System.Threading Imports System.Threading.Tasks Imports Microsoft.CodeAnalysis.CodeGeneration -Imports Microsoft.CodeAnalysis.LanguageServices -Imports Microsoft.CodeAnalysis.Text -Imports Microsoft.VisualStudio.Text Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.NavigationBar Friend Class GenerateMethodItem diff --git a/src/EditorFeatures/VisualBasic/QuickInfo/SemanticQuickInfoProvider.vb b/src/EditorFeatures/VisualBasic/QuickInfo/SemanticQuickInfoProvider.vb index 4ce961c863e..f7b3bb0ee96 100644 --- a/src/EditorFeatures/VisualBasic/QuickInfo/SemanticQuickInfoProvider.vb +++ b/src/EditorFeatures/VisualBasic/QuickInfo/SemanticQuickInfoProvider.vb @@ -9,10 +9,8 @@ Imports Microsoft.CodeAnalysis.Editor.Shared.Utilities Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Microsoft.CodeAnalysis.VisualBasic.Utilities.IntrinsicOperators Imports Microsoft.VisualStudio.Language.Intellisense -Imports Microsoft.VisualStudio.Text Imports Microsoft.VisualStudio.Text.Editor Imports Microsoft.VisualStudio.Text.Projection -Imports Microsoft.VisualStudio.Utilities Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.QuickInfo @@ -21,15 +19,13 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.QuickInfo Inherits AbstractSemanticQuickInfoProvider - Public Sub New(textBufferFactoryService As ITextBufferFactoryService, - contentTypeRegistryService As IContentTypeRegistryService, - projectionBufferFactoryService As IProjectionBufferFactoryService, + Public Sub New(projectionBufferFactoryService As IProjectionBufferFactoryService, editorOptionsFactoryService As IEditorOptionsFactoryService, textEditorFactoryService As ITextEditorFactoryService, glyphService As IGlyphService, typeMap As ClassificationTypeMap) - MyBase.New(textBufferFactoryService, contentTypeRegistryService, projectionBufferFactoryService, - editorOptionsFactoryService, textEditorFactoryService, glyphService, typeMap) + MyBase.New(projectionBufferFactoryService, editorOptionsFactoryService, + textEditorFactoryService, glyphService, typeMap) End Sub Protected Overrides Async Function BuildContentAsync(document As Document, diff --git a/src/EditorFeatures/VisualBasic/ReferenceHighlighting/ReferenceHighlightingAdditionalReferenceProvider.vb b/src/EditorFeatures/VisualBasic/ReferenceHighlighting/ReferenceHighlightingAdditionalReferenceProvider.vb index f1e6978e80f..2c95b09d3a2 100644 --- a/src/EditorFeatures/VisualBasic/ReferenceHighlighting/ReferenceHighlightingAdditionalReferenceProvider.vb +++ b/src/EditorFeatures/VisualBasic/ReferenceHighlighting/ReferenceHighlightingAdditionalReferenceProvider.vb @@ -4,7 +4,6 @@ Imports System.Composition Imports System.Threading Imports System.Threading.Tasks Imports Microsoft.CodeAnalysis.Editor.Implementation.ReferenceHighlighting -Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.ReferenceHighlighting diff --git a/src/EditorFeatures/VisualBasic/Utilities/LineAdjustmentFormattingRule.vb b/src/EditorFeatures/VisualBasic/Utilities/LineAdjustmentFormattingRule.vb index a25c30c18fd..2a803acc46d 100644 --- a/src/EditorFeatures/VisualBasic/Utilities/LineAdjustmentFormattingRule.vb +++ b/src/EditorFeatures/VisualBasic/Utilities/LineAdjustmentFormattingRule.vb @@ -4,7 +4,6 @@ Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Formatting.Rules Imports Microsoft.CodeAnalysis.Options Imports Microsoft.CodeAnalysis.Shared.Utilities -Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.Utilities diff --git a/src/EditorFeatures/VisualBasic/Utilities/NamedTypeSymbolExtensions.vb b/src/EditorFeatures/VisualBasic/Utilities/NamedTypeSymbolExtensions.vb index 4d5d60722a8..c79765810d6 100644 --- a/src/EditorFeatures/VisualBasic/Utilities/NamedTypeSymbolExtensions.vb +++ b/src/EditorFeatures/VisualBasic/Utilities/NamedTypeSymbolExtensions.vb @@ -2,7 +2,6 @@ Imports System.Runtime.CompilerServices Imports Microsoft.CodeAnalysis -Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.Utilities Friend Module NamedTypeSymbolExtensions diff --git a/src/EditorFeatures/VisualBasicTest/QuickInfo/SemanticQuickInfoSourceTests.vb b/src/EditorFeatures/VisualBasicTest/QuickInfo/SemanticQuickInfoSourceTests.vb index bad05f1aa57..c0a7d0117a1 100644 --- a/src/EditorFeatures/VisualBasicTest/QuickInfo/SemanticQuickInfoSourceTests.vb +++ b/src/EditorFeatures/VisualBasicTest/QuickInfo/SemanticQuickInfoSourceTests.vb @@ -26,8 +26,6 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.QuickInfo Dim noListeners = SpecializedCollections.EmptyEnumerable(Of Lazy(Of IAsynchronousOperationListener, FeatureMetadata))() Dim provider = New SemanticQuickInfoProvider( - workspace.GetService(Of ITextBufferFactoryService), - workspace.GetService(Of IContentTypeRegistryService), workspace.GetService(Of IProjectionBufferFactoryService), workspace.GetService(Of IEditorOptionsFactoryService), workspace.GetService(Of ITextEditorFactoryService), -- GitLab