/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/VisualBasic/Impl/CodeModel/VisualBasicCodeModelServiceFactory.vb
42 строки
2 KB
David Wengier
Move IRefactorNotifyService down to features layer (#81749)
19 дек 2025, 07:57
Не верифицирован
19 дек 2025, 07:57
f009f3e
Код
Авторство
О чём код?
' 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.Composition Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Editor.Shared.Utilities Imports Microsoft.CodeAnalysis.Editor.VisualBasic.LineCommit Imports Microsoft.CodeAnalysis.Host Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.Options Imports Microsoft.CodeAnalysis.Rename Imports Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.CodeModel <ExportLanguageServiceFactory(GetType(ICodeModelService), LanguageNames.VisualBasic), [Shared]> Partial Friend Class VisualBasicCodeModelServiceFactory Implements ILanguageServiceFactory Private ReadOnly _editorOptionsService As EditorOptionsService Private ReadOnly _refactorNotifyServices As IEnumerable(Of IRefactorNotifyService) Private ReadOnly _commitBufferManagerFactory As CommitBufferManagerFactory Private ReadOnly _threadingContext As IThreadingContext <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New(editorOptionsService As EditorOptionsService, <ImportMany> refactorNotifyServices As IEnumerable(Of IRefactorNotifyService), commitBufferManagerFactory As CommitBufferManagerFactory, threadingContext As IThreadingContext) _editorOptionsService = editorOptionsService _refactorNotifyServices = refactorNotifyServices _commitBufferManagerFactory = commitBufferManagerFactory _threadingContext = threadingContext End Sub Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService Return New VisualBasicCodeModelService(provider, _editorOptionsService, _refactorNotifyServices, _commitBufferManagerFactory, _threadingContext) End Function End Class End Namespace