/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/VisualBasic/Impl/Options/Formatting/CodeStylePage.vb
25 строк
1 KB
Tomáš Matoušek
Editorconfig options enumerator refactoring (#73907)
11 июн 2024, 00:13
Не верифицирован
11 июн 2024, 00:13
da99c65
Код
Авторство
О чём код?
' 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.Runtime.InteropServices Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Options Imports Microsoft.VisualStudio.LanguageServices.Implementation.Options Imports Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.Extensions Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Options.Formatting <Guid(Guids.VisualBasicOptionPageCodeStyleIdString)> Friend Class CodeStylePage Inherits AbstractOptionPage Protected Overrides Function CreateOptionPage(serviceProvider As IServiceProvider, optionStore As OptionStore) As AbstractOptionPageControl Dim enumerator = serviceProvider.GetMefService(Of EditorConfigOptionsEnumerator)() Return New GridOptionPreviewControl(serviceProvider, optionStore, Function(o, s) New StyleViewModel(o, s), enumerator.GetOptions(LanguageNames.VisualBasic), LanguageNames.VisualBasic) End Function End Class End Namespace