/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasic/AddImports/VisualBasicAddImportsOnPasteCommandHandler.vb
34 строки
2 KB
Cyrus Najmabadi
Organize VB imports
27 июн 2025, 21:53
27 июн 2025, 21:53
e9c47fd
Код
Авторство
О чём код?
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.ComponentModel.Composition Imports Microsoft.CodeAnalysis.AddImport Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.Options Imports Microsoft.CodeAnalysis.Shared.TestHooks Imports Microsoft.VisualStudio.Commanding Imports Microsoft.VisualStudio.Utilities Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.AddImports <Export> <Export(GetType(ICommandHandler))> <ContentType(ContentTypeNames.VisualBasicContentType)> <Name(PredefinedCommandHandlerNames.AddImportsPaste)> <Order(After:=PredefinedCommandHandlerNames.PasteTrackingPaste)> <Order(Before:=PredefinedCommandHandlerNames.FormatDocument)> Friend Class VisualBasicAddImportsOnPasteCommandHandler Inherits AbstractAddImportsPasteCommandHandler <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New(threadingContext As [Shared].Utilities.IThreadingContext, globalOptions As IGlobalOptionService, listenerProvider As IAsynchronousOperationListenerProvider) MyBase.New(threadingContext, globalOptions, listenerProvider) End Sub Public Overrides ReadOnly Property DisplayName As String = VBEditorResources.Add_Missing_Imports_on_Paste Protected Overrides ReadOnly Property DialogText As String = VBEditorResources.Adding_missing_imports End Class End Namespace