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
4848
4949 public static implicit operator BooleanOr < T > ( T value )
5050 {
51- return new BooleanOr < T > ( value ) ;
51+ return value != null ? new BooleanOr < T > ( value ) : null ;
5252 }
5353
5454 public static implicit operator BooleanOr < T > ( bool value )
Original file line number Diff line number Diff line change 55using Newtonsoft . Json . Linq ;
66using OmniSharp . Extensions . LanguageServer . Protocol ;
77using OmniSharp . Extensions . LanguageServer . Protocol . Client . Capabilities ;
8+ using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
89using OmniSharp . Extensions . LanguageServer . Protocol . Serialization ;
910using OmniSharp . Extensions . LanguageServer . Protocol . Server . Capabilities ;
1011using Xunit ;
@@ -75,7 +76,9 @@ public void SimpleTest(string expected)
7576 [ Theory , JsonFixture ]
7677 public void Optional ( string expected )
7778 {
78- var model = new ServerCapabilities ( ) ;
79+ var model = new ServerCapabilities {
80+ ColorProvider = ( ColorOptions ) null
81+ } ;
7982
8083 var result = Fixture . SerializeObject ( model ) ;
8184
You can’t perform that action at this time.
0 commit comments