Skip to content

Commit 521f08a

Browse files
#nullable enable a bit of the rename dashboard
1 parent a46b9e6 commit 521f08a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/DashboardAdornmentManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#nullable disable
6-
75
using System;
86
using System.Linq;
97
using System.Runtime.CompilerServices;
@@ -75,7 +73,7 @@ private static bool ViewIncludesBufferFromWorkspace(IWpfTextView textView, Works
7573
.Any();
7674
}
7775

78-
private static Workspace GetWorkspace(SourceTextContainer textContainer)
76+
private static Workspace? GetWorkspace(SourceTextContainer textContainer)
7977
{
8078
Workspace.TryGetWorkspace(textContainer, out var workspace);
8179
return workspace;

src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/DashboardAdornmentProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#nullable disable
6-
75
using System;
86
using System.Collections.ObjectModel;
97
using System.ComponentModel.Composition;
@@ -36,7 +34,7 @@ internal class DashboardAdornmentProvider : IWpfTextViewConnectionListener
3634
[Order(After = PredefinedAdornmentLayers.TextMarker)]
3735
[Order(After = PredefinedAdornmentLayers.CurrentLineHighlighter)]
3836
[Order(After = PredefinedAdornmentLayers.Squiggle)]
39-
internal readonly AdornmentLayerDefinition AdornmentLayer;
37+
internal readonly AdornmentLayerDefinition? AdornmentLayer;
4038

4139
[ImportingConstructor]
4240
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]

0 commit comments

Comments
 (0)