25 references to LocationKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (2)
130var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, null!, language, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null)); 317var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, updater, Language.CSharp, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null));
Microsoft.CodeAnalysis.EditorFeatures (13)
EditorConfigSettings\Data\NamingStyleSetting.cs (5)
30Location = new SettingLocation(fileName is null ? LocationKind.VisualStudio : LocationKind.EditorConfig, fileName); 47Location = new SettingLocation(LocationKind.EditorConfig, namingStyleOption.Section.FilePath) 80Location = Location with { LocationKind = LocationKind.EditorConfig }; 89Location = Location with { LocationKind = LocationKind.EditorConfig };
EditorConfigSettings\Data\Setting.cs (2)
34Location = Location with { LocationKind = LocationKind.EditorConfig }; 39public bool IsDefinedInEditorConfig => Location.LocationKind != LocationKind.VisualStudio;
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (2)
26location = new SettingLocation(LocationKind.EditorConfig, EditorConfigFileName); 31location = new SettingLocation(LocationKind.VisualStudio, Path: null);
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (2)
67var settingLocation = new SettingLocation(isEditorconfig ? LocationKind.EditorConfig : LocationKind.VisualStudio, FileName);
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProvider.cs (1)
30var fileName = (location.LocationKind != LocationKind.VisualStudio) ? options.EditorConfigFileName : null;
EditorConfigSettings\SettingLocation.cs (1)
7internal sealed record SettingLocation(LocationKind LocationKind, string? Path) { }
Microsoft.VisualStudio.LanguageServices (10)
EditorConfigSettings\Analyzers\ViewModel\AnalyzerSettingsViewModel.SettingsEntriesSnapshot.cs (2)
42LocationKind.EditorConfig or LocationKind.GlobalConfig => location.Path,
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSettingsViewModel.SettingsEntriesSnapshot.cs (2)
37LocationKind.EditorConfig or LocationKind.GlobalConfig => location.Path,
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesLocationColumnDefinition.cs (2)
51LocationKind.EditorConfig or LocationKind.GlobalConfig => location.Path!,
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesLocationViewModel.cs (2)
45LocationKind.EditorConfig or LocationKind.GlobalConfig => location.Path!,
EditorConfigSettings\Whitespace\ViewModel\WhitespaceViewModel.SettingsEntriesSnapshot.cs (2)
36LocationKind.EditorConfig or LocationKind.GlobalConfig => location.Path,