Skip to content

Commit e260ded

Browse files
authored
Rename options to editorconfig like name (#66899)
* Change block structure options to editorconfig-like name * Move brace completion/classification/prefer hashcode/color scheme to new name * Move completion options to new names * Move provide date and time completion to new name * Move diagnostic options to new names * Move documentation and documentOutline to new name * Move editor component options to new name * Move extract method option to new name * Move fading options to new name * Move database storage to new name * Move find usage options to new name * Move formatting options to new name * Move generate code option to new name * Move implement type options to new name * Move all the inline hints options to new name * Move inline rename options to new name * Move Json features option to new name * Move key binding reset options to new name * Move logger option and lsp options to new name * Move quick info options to new name * Move regular expression options to new name: * Move solution crawler options to new name * Move spilit comment/string options to new name * Move stacktrace explorer to new name * Move suggestion option async to new name * Move symbol search option to new name * Move task list options to new name * Move format string option to new name * Move workspace configuration to new name * Move xaml options to new name * Move internal diagnostics options to new name * Move internal feature on off options to new name * Move solution crawler options to new name * Move service feature on off options to new name * Fix the wrongly upcase OOP * Change csharp_split_string_literal_options_enabled to csharp_split_string_literal_on_return * Rename Inline hints view options * Rename diagnostic tagging options * Change FormattingOptonsMetadata * Rename block structure options * Rename format on close brace * Rename classsify * Rename prefer hashcode * Rename color scheme * Rename completion options * Revisit block structure options * Rename date and time completion, pull diagnostic, comment generation, document outline * Rename format, constructor generation, hashcode and equals generation, implement type options * Rename inline hints options * Rename rename options * Rename diagnostics options * Rename InternalFeatureOnOff options' * Rename Json options * Rename keybidingResetOptions * Rename logger options * Rename lsp options * Rename navigator bar and regex options * Rename show signature, naming, solution crawler split comment, stacktrace explorer, suggestions, symbol search, and suugested types options * Rename task list item, wrap line length, and report invalid string dot format calls options * Rename workspace and xaml options * rename hide in advanced members * Rename semantic_colorizer and syntactic colorizer * Fully qualified lsp * Fully qualified lsp in xaml options * Unify the enable word * Unify the disable word * Remove 'all' from display_inline_hints_while_pressing_alt_f1 * Rename dotnet_inline_hints_colorize to dotnet_colorize_inline_hints * Rename dotnet_tagging_pull_diagnostic to dotnet_pull_diagnostic_tagging * Change extracting to extract in dotnet_allow_best_effort_when_extracting_method * Rename dotnet_select_all_when_generate_overrides * Rename dotnet_generate_equals_and_get_hash_code_from_members_when_generate_operators * Rename dotnet_generate_equals_and_get_hash_code_from_members_when_implement_iequatable * Rename dotnet_add_null_checks_when_generate_constructor_from_members * Remove the duplicate AddNullChecksToConstructorsGeneratedFromMembers * Rename dotnet_enable_oop_64_bit * Rename dotnet_enable_oop_server_gc * Rename dotnet_enable_oop_core_clr * Rename dotnet_split_comment * Rename dotnet_completion_enter_key_behavior * Rename dotnet_don't_put_out_or_ref_on_struct_when_extract_method * Rename dotnet_insertion_behavior_when_implement_type * Rename dotnet_property_generation_behavior_when_implement_type * Rename dotnet_suggest_for_types_in_reference_assemblies * Rename SymbolSearchOptions * Rename intellicode options * Rename FindUsagesOptions * Rename xaml options * Rename dotnet_visual_studio_workspace_partial_load_mode * Rename dotnet_code_style_prefer_system_hash_code * Rename dotnet_smart_indent * Fix the missing xaml options * Change to dotent for csharp_show_new_snippet_experience_feature_flag, csharp_show_new_snippet_experience, csharp_disable_unnamed_symbol_completion, csharp_normal_diagnostic_mode, csharp_event_hook_up, visual_basic_format_on_save, csharp_enable_snippets, csharp_open_stack_trace_explorer_on_focus, visual_basic_visual_studio_navigation_options_navigate_to_object_browser and csharp_lsp_pull_diagnostics * Rename SplitStringLiteralOptions * Rename InlineHintsViewOptions * Rename DiagnosticsTaggingOptions * Rename InlineDiagnosticsOptions * Rename FormattingOptions * Rename InlineRenameUIOptionsStorage * Rename CompletionViewOptions * Rename RemoteHostOptions * Rename SplitCommentOptions * Rename SuggestionsOptions * Rename InternalDiagnosticsOptions * Rename LspOptions * Rename DocumentOutlineOptions * Rename ColorSchemeOptions * Rename KeybindingResetOptions * Rename LoggerOptions * Rename StackTraceExplorer options * Rename SymbolSearchGlobalOptions * Rename VisualStudioLoggingOptionsMetadata * VisualStudioNavigationOptions * Rename FadingOptions * Revert "Rename FadingOptions" This reverts commit 09fb3ce. * Move BranceMatcingOptions to seperate file * Move DiagnosticsClassificationOptions to seperate file * Move SemanticsColorizer to seperate file * Move AutomaticLineEnder and SyntacticColorizer options to seperate files * Move smart indenter options to seperate file * Move dotnet_squiggles to seperate file * Move FormatOnSave to seperate file * Move RenameTracking options to seperate file * Move EventHookup to seperate file * Move snippets options to seperate file * Move VirtualMemoryNotificationListener options to seperate file and remove InternalFeatureOnOffOptions * Fix the namespace of SmartIndent * Correct the namespace * Add enable in rename tracking * Remove the features in implement type options * Rename to lsp * Rename dotnet_navigate_to_object_browser * Rename dotnet_automatic_line_ender * Add enable to brace matching * Add enable to classification and squiggles * Add enable to event hookup * Add enable to smart indenter * Add enable to async sugguestions * Remove under_cursor suffix * Add visual studio prefix to Color scheme * Add visual_studio to keybinding reset options * Add visual_studio prefix in logger options storage * Add visual_studio prefix to SymbolSearchGlobalOptionStorage * Add visual_studio prefix to VisualStudioLoggingOptionsStorage * Add visual_studio prefix to navigate to object browser * Remove dotnet in color scheme * Replace visual_studio_dotnet to visual_studio
1 parent 22bdff5 commit e260ded

File tree

155 files changed

+659
-578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+659
-578
lines changed

src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler_TabKeyCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Microsoft.CodeAnalysis.Editing;
1818
using Microsoft.CodeAnalysis.Editor.Shared.Extensions;
1919
using Microsoft.CodeAnalysis.Editor.Shared.Options;
20+
using Microsoft.CodeAnalysis.EventHookup;
2021
using Microsoft.CodeAnalysis.Formatting;
2122
using Microsoft.CodeAnalysis.Internal.Log;
2223
using Microsoft.CodeAnalysis.LanguageService;
@@ -39,7 +40,7 @@ internal partial class EventHookupCommandHandler : IChainedCommandHandler<TabKey
3940
public void ExecuteCommand(TabKeyCommandArgs args, Action nextHandler, CommandExecutionContext context)
4041
{
4142
_threadingContext.ThrowIfNotOnUIThread();
42-
if (!_globalOptions.GetOption(InternalFeatureOnOffOptions.EventHookup))
43+
if (!_globalOptions.GetOption(EventHookupOptionsStorage.EventHookup))
4344
{
4445
nextHandler();
4546
return;

src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler_TypeCharCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
using System;
88
using System.Threading;
99
using Microsoft.CodeAnalysis.Editor.Shared.Extensions;
10-
using Microsoft.CodeAnalysis.Editor.Shared.Options;
10+
using Microsoft.CodeAnalysis.EventHookup;
1111
using Microsoft.CodeAnalysis.Internal.Log;
1212
using Microsoft.VisualStudio.Commanding;
1313
using Microsoft.VisualStudio.Text;
1414
using Microsoft.VisualStudio.Text.Editor;
1515
using Microsoft.VisualStudio.Text.Editor.Commanding.Commands;
16-
using Roslyn.Utilities;
1716

1817
namespace Microsoft.CodeAnalysis.Editor.CSharp.EventHookup
1918
{
@@ -24,7 +23,7 @@ public void ExecuteCommand(TypeCharCommandArgs args, Action nextHandler, Command
2423
_threadingContext.ThrowIfNotOnUIThread();
2524
nextHandler();
2625

27-
if (!_globalOptions.GetOption(InternalFeatureOnOffOptions.EventHookup))
26+
if (!_globalOptions.GetOption(EventHookupOptionsStorage.EventHookup))
2827
{
2928
EventHookupSessionManager.CancelAndDismissExistingSessions();
3029
return;

src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralCommandHandler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ public bool ExecuteCommand(ReturnKeyCommandArgs args, CommandExecutionContext co
5454

5555
public bool ExecuteCommandWorker(ReturnKeyCommandArgs args, CancellationToken cancellationToken)
5656
{
57-
if (!_editorOptionsService.GlobalOptions.GetOption(SplitStringLiteralOptions.Enabled))
57+
if (!_editorOptionsService.GlobalOptions.GetOption(SplitStringLiteralOptionsStorage.Enabled))
58+
{
5859
return false;
60+
}
5961

6062
var textView = args.TextView;
6163
var subjectBuffer = args.SubjectBuffer;

src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralOptions.cs renamed to src/EditorFeatures/CSharp/SplitStringLiteral/SplitStringLiteralOptionsStorage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Microsoft.CodeAnalysis.Editor.CSharp.SplitStringLiteral;
88

9-
internal sealed class SplitStringLiteralOptions
9+
internal sealed class SplitStringLiteralOptionsStorage
1010
{
11-
public static Option2<bool> Enabled = new("SplitStringLiteralOptions_Enabled", defaultValue: true);
11+
public static Option2<bool> Enabled = new("csharp_split_string_literal_on_return", defaultValue: true);
1212
}

src/EditorFeatures/CSharpTest/InlineDiagnostics/InlineDiagnosticsTaggerProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private static async Task<ImmutableArray<ITagSpan<InlineDiagnosticsTag>>> GetTag
5757

5858
private static async Task<ImmutableArray<ITagSpan<InlineDiagnosticsTag>>> GetTagSpansAsync(TestWorkspace workspace)
5959
{
60-
workspace.GlobalOptions.SetGlobalOption(InlineDiagnosticsOptions.EnableInlineDiagnostics, LanguageNames.CSharp, true);
60+
workspace.GlobalOptions.SetGlobalOption(InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics, LanguageNames.CSharp, true);
6161
return (await TestDiagnosticTagProducer<InlineDiagnosticsTaggerProvider, InlineDiagnosticsTag>.GetDiagnosticsAndErrorSpans(workspace)).Item2;
6262
}
6363
}

src/EditorFeatures/CSharpTest/Squiggles/ErrorSquiggleProducerTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void Test()
8181
</Workspace>";
8282

8383
using var workspace = TestWorkspace.Create(workspaceXml);
84-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
84+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
8585

8686
var spans = (await TestDiagnosticTagProducer<DiagnosticsSquiggleTaggerProvider, IErrorTag>.GetDiagnosticsAndErrorSpans(workspace)).Item2;
8787

@@ -117,7 +117,7 @@ void Test()
117117
using var workspace = TestWorkspace.Create(workspaceXml, composition: SquiggleUtilities.CompositionWithSolutionCrawler);
118118
var language = workspace.Projects.Single().Language;
119119

120-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
120+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
121121

122122
workspace.GlobalOptions.SetGlobalOption(
123123
CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, language,
@@ -212,7 +212,7 @@ public async Task SemanticErrorReported(bool pull)
212212
{
213213
using var workspace = TestWorkspace.CreateCSharp("class C : Bar { }", composition: SquiggleUtilities.CompositionWithSolutionCrawler);
214214

215-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
215+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
216216

217217
var spans = await TestDiagnosticTagProducer<DiagnosticsSquiggleTaggerProvider, IErrorTag>.GetDiagnosticsAndErrorSpans(workspace);
218218

@@ -237,7 +237,7 @@ public async Task SemanticErrorReported(bool pull)
237237
public async Task TestNoErrorsAfterDocumentRemoved(bool pull)
238238
{
239239
using var workspace = TestWorkspace.CreateCSharp("class");
240-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
240+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
241241

242242
using var wrapper = new DiagnosticTaggerWrapper<DiagnosticsSquiggleTaggerProvider, IErrorTag>(workspace);
243243

@@ -267,7 +267,7 @@ public async Task TestNoErrorsAfterDocumentRemoved(bool pull)
267267
public async Task TestNoErrorsAfterProjectRemoved(bool pull)
268268
{
269269
using var workspace = TestWorkspace.CreateCSharp("class");
270-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
270+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
271271

272272
using var wrapper = new DiagnosticTaggerWrapper<DiagnosticsSquiggleTaggerProvider, IErrorTag>(workspace);
273273

@@ -313,7 +313,7 @@ class Test
313313
</Workspace>";
314314

315315
using var workspace = TestWorkspace.Create(workspaceXml, composition: s_mockComposition);
316-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
316+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
317317

318318
var document = workspace.Documents.First();
319319

@@ -357,7 +357,7 @@ class Test
357357
</Workspace>";
358358

359359
using var workspace = TestWorkspace.Create(workspaceXml, composition: s_mockComposition);
360-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
360+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
361361

362362
var document = workspace.Documents.First();
363363

@@ -401,7 +401,7 @@ private static async Task<ImmutableArray<ITagSpan<IErrorTag>>> GetTagSpansInSour
401401

402402
private static async Task<ImmutableArray<ITagSpan<IErrorTag>>> GetTagSpansAsync(TestWorkspace workspace, bool pull)
403403
{
404-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
404+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
405405

406406
return (await TestDiagnosticTagProducer<DiagnosticsSquiggleTaggerProvider, IErrorTag>.GetDiagnosticsAndErrorSpans(workspace)).Item2;
407407
}

src/EditorFeatures/CSharpTest/SuggestionTags/SuggestionTagProducerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void M() {
4444
string content, bool pull)
4545
{
4646
using var workspace = TestWorkspace.CreateCSharp(content);
47-
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptions.PullDiagnosticTagging, pull);
47+
workspace.GlobalOptions.SetGlobalOption(DiagnosticTaggingOptionsStorage.PullDiagnosticTagging, pull);
4848

4949
var analyzerMap = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>()
5050
{

src/EditorFeatures/Core.Cocoa/Options/VisualStudioMacOptionsStorage.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ public string GetName(string? language)
5656
/// </summary>
5757
public static readonly IReadOnlyDictionary<string, PropertyName> PersistedOptionsWithLegacyPropertyNames = new Dictionary<string, PropertyName>()
5858
{
59-
{"BraceCompletionOptions_AutoFormattingOnCloseBrace", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Close Brace")},
60-
{"FormattingOptions_AutoFormattingOnReturn", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Return")},
61-
{"FormattingOptions_AutoFormattingOnSemicolon", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Semicolon")},
62-
{"FormattingOptions_AutoFormattingOnTyping", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Typing")},
63-
{"FormattingOptions_FormatOnPaste", new PropertyName("TextEditor.%LANGUAGE%.SpeciAddImportsOnPaste2fic.FormatOnPaste")},
59+
{"csharp_format_on_close_brace", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Close Brace")},
60+
{"csharp_format_on_return", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Return")},
61+
{"csharp_format_on_semicolon", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Semicolon")},
62+
{"csharp_format_on_typing", new PropertyName("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Typing")},
63+
{"dotnet_format_on_paste", new PropertyName("TextEditor.%LANGUAGE%.SpeciAddImportsOnPaste2fic.FormatOnPaste")},
6464
{"dotnet_sort_system_directives_first", new PropertyName("TextEditor.%LANGUAGE%.Specific.PlaceSystemNamespaceFirst")},
6565
{"dotnet_separate_import_directive_groups", new PropertyName("TextEditor.%LANGUAGE%.Specific.SeparateImportDirectiveGroups")},
66-
{"QuickInfoOptions_ShowRemarksInQuickInfo", new PropertyName("TextEditor.%LANGUAGE%.Specific.ShowRemarks")},
66+
{"dotnet_show_remarks_in_quick_info", new PropertyName("TextEditor.%LANGUAGE%.Specific.ShowRemarks")},
6767
{"dotnet_add_imports_on_paste", new PropertyName("TextEditor.%LANGUAGE%.Specific.AddImportsOnPaste2")},
68-
{"CompletionOptions_ShowItemsFromUnimportedNamespaces", new PropertyName("TextEditor.%LANGUAGE%.Specific.ShowItemsFromUnimportedNamespaces")},
69-
{"CompletionOptions_TriggerOnDeletion", new PropertyName("TextEditor.%LANGUAGE%.Specific.TriggerOnDeletion")},
70-
{"CompletionOptions_TriggerOnTypingLetters", new PropertyName("TextEditor.%LANGUAGE%.Specific.TriggerOnTypingLetters")},
71-
{"CompletionOptions_ShowCompletionItemFilters", new PropertyName("TextEditor.%LANGUAGE%.Specific.ShowCompletionItemFilters")},
72-
{"SolutionCrawlerOptionsStorage_BackgroundAnalysisScopeOption", new PropertyName("TextEditor.%LANGUAGE%.Specific.BackgroundAnalysisScopeOption")},
73-
{"SolutionCrawlerOptionsStorage_CompilerDiagnosticsScopeOption", new PropertyName("TextEditor.%LANGUAGE%.Specific.CompilerDiagnosticsScopeOption")},
74-
{"SymbolSearchOptions_SuggestForTypesInNuGetPackages", new PropertyName("TextEditor.%LANGUAGE%.Specific.SuggestForTypesInNuGetPackages")},
68+
{"dotnet_show_completion_items_from_unimported_namespaces", new PropertyName("TextEditor.%LANGUAGE%.Specific.ShowItemsFromUnimportedNamespaces")},
69+
{"dotnet_trigger_completion_on_deletion", new PropertyName("TextEditor.%LANGUAGE%.Specific.TriggerOnDeletion")},
70+
{"dotnet_trigger_completion_on_typing_letters", new PropertyName("TextEditor.%LANGUAGE%.Specific.TriggerOnTypingLetters")},
71+
{"dotnet_show_completion_item_filters", new PropertyName("TextEditor.%LANGUAGE%.Specific.ShowCompletionItemFilters")},
72+
{"dotnet_solution_crawler_background_analysis_scope", new PropertyName("TextEditor.%LANGUAGE%.Specific.BackgroundAnalysisScopeOption")},
73+
{"dotnet_compiler_diagnostics_scope", new PropertyName("TextEditor.%LANGUAGE%.Specific.CompilerDiagnosticsScopeOption")},
74+
{"dotnet_search_nuget_packages", new PropertyName("TextEditor.%LANGUAGE%.Specific.SuggestForTypesInNuGetPackages")},
7575
{"csharp_complete_statement_on_semicolon", new PropertyName("TextEditor.AutomaticallyCompleteStatementOnSemicolon")},
7676
};
7777
}

src/EditorFeatures/Core.Cocoa/Snippets/AbstractSnippetCommandHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Microsoft.CodeAnalysis.LanguageService;
1111
using Microsoft.CodeAnalysis.Options;
1212
using Microsoft.CodeAnalysis.Shared.Extensions;
13+
using Microsoft.CodeAnalysis.Snippets;
1314
using Microsoft.CodeAnalysis.Text;
1415
using Microsoft.VisualStudio.Commanding;
1516
using Microsoft.VisualStudio.Text;
@@ -290,7 +291,7 @@ protected bool TryHandleTypedSnippet(ITextView textView, ITextBuffer subjectBuff
290291

291292
protected bool AreSnippetsEnabled(EditorCommandArgs args)
292293
{
293-
return EditorOptionsService.GlobalOptions.GetOption(InternalFeatureOnOffOptions.Snippets) &&
294+
return EditorOptionsService.GlobalOptions.GetOption(SnippetsOptionsStorage.Snippets) &&
294295
// TODO (https://github.com/dotnet/roslyn/issues/5107): enable in interactive
295296
!(Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out var workspace) && workspace.Kind == WorkspaceKind.Interactive);
296297
}

src/EditorFeatures/Core.Wpf/InlineDiagnostics/InlineDiagnosticsAdornmentManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private void TextView_ViewportWidthChanged(object sender, EventArgs e)
6969
return;
7070
}
7171

72-
var option = _globalOptions.GetOption(InlineDiagnosticsOptions.Location, document.Project.Language);
72+
var option = _globalOptions.GetOption(InlineDiagnosticsOptionsStorage.Location, document.Project.Language);
7373
if (option == InlineDiagnosticsLocations.PlacedAtEndOfEditor)
7474
{
7575
var normalizedCollectionSpan = new NormalizedSnapshotSpanCollection(TextView.TextViewLines.FormattedSpan);

0 commit comments

Comments
 (0)