Skip to content

Commit 4ed616e

Browse files
committed
Fix
1 parent 5cfe6f9 commit 4ed616e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/EditorFeatures/Core/Tagging/AbstractAsynchronousTaggerProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ internal abstract partial class AbstractAsynchronousTaggerProvider<TTag> : Foreg
5858
/// Options controlling this tagger. The tagger infrastructure will check this option
5959
/// against the buffer it is associated with to see if it should tag or not.
6060
///
61-
/// An empty enumerable, or null, can be returned to indicate that this tagger should
61+
/// An empty enumerable can be returned to indicate that this tagger should
6262
/// run unconditionally.
6363
/// </summary>
6464
protected virtual IEnumerable<Option2<bool>> Options => SpecializedCollections.EmptyEnumerable<Option2<bool>>();

src/EditorFeatures/VisualBasicTest/ImplementInterface/ImplementInterfaceCommandHandlerTests.vb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions
77
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Utilities
88
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
99
Imports Microsoft.CodeAnalysis.Editor.VisualBasic.ImplementInterface
10+
Imports Microsoft.CodeAnalysis.Options
1011
Imports Microsoft.CodeAnalysis.Text
1112
Imports Microsoft.VisualStudio.Commanding
1213
Imports Microsoft.VisualStudio.Text
@@ -62,10 +63,10 @@ End Class
6263
Interface IGoo
6364
Sub TestSub()
6465
End Interface")
66+
Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
6567

6668
Dim commandHandler = MoveCaretAndCreateCommandHandler(workspace)
67-
workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(workspace.Options _
68-
.WithChangedOption(FeatureOnOffOptions.AutomaticInsertionOfAbstractOrInterfaceMembers, LanguageNames.VisualBasic, False)))
69+
globalOptions.SetGlobalOption(New OptionKey(FeatureOnOffOptions.AutomaticInsertionOfAbstractOrInterfaceMembers, LanguageNames.VisualBasic), False)
6970

7071
Dim nextHandlerCalled = False
7172
Dim view = workspace.Documents.Single().GetTextView()

0 commit comments

Comments
 (0)