File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
test/Lsp.Tests/Capabilities/Server Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public object RawValue
48
48
49
49
public static implicit operator BooleanOr < T > ( T value )
50
50
{
51
- return new BooleanOr < T > ( value ) ;
51
+ return value != null ? new BooleanOr < T > ( value ) : null ;
52
52
}
53
53
54
54
public static implicit operator BooleanOr < T > ( bool value )
Original file line number Diff line number Diff line change 5
5
using Newtonsoft . Json . Linq ;
6
6
using OmniSharp . Extensions . LanguageServer . Protocol ;
7
7
using OmniSharp . Extensions . LanguageServer . Protocol . Client . Capabilities ;
8
+ using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
8
9
using OmniSharp . Extensions . LanguageServer . Protocol . Serialization ;
9
10
using OmniSharp . Extensions . LanguageServer . Protocol . Server . Capabilities ;
10
11
using Xunit ;
@@ -75,7 +76,9 @@ public void SimpleTest(string expected)
75
76
[ Theory , JsonFixture ]
76
77
public void Optional ( string expected )
77
78
{
78
- var model = new ServerCapabilities ( ) ;
79
+ var model = new ServerCapabilities {
80
+ ColorProvider = ( ColorOptions ) null
81
+ } ;
79
82
80
83
var result = Fixture . SerializeObject ( model ) ;
81
84
You can’t perform that action at this time.
0 commit comments