1
- using System ;
1
+ using System ;
2
2
using System . IO ;
3
3
using OmniSharp . Extensions . LanguageServer . Client . Utilities ;
4
+ using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
4
5
5
6
namespace OmniSharp . Extensions . LanguageServer . Client . Clients
6
7
{
@@ -26,7 +27,7 @@ public partial class TextDocumentClient
26
27
/// </remarks>
27
28
public void DidOpen ( string filePath , string languageId , int version = 0 )
28
29
{
29
- if ( String . IsNullOrWhiteSpace ( filePath ) )
30
+ if ( string . IsNullOrWhiteSpace ( filePath ) )
30
31
throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( filePath ) } .", nameof ( filePath ) ) ;
31
32
32
33
string text = null ;
@@ -58,7 +59,7 @@ public void DidOpen(string filePath, string languageId, int version = 0)
58
59
/// </param>
59
60
public void DidOpen ( string filePath , string languageId , string text , int version = 0 )
60
61
{
61
- if ( String . IsNullOrWhiteSpace ( filePath ) )
62
+ if ( string . IsNullOrWhiteSpace ( filePath ) )
62
63
throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( filePath ) } .", nameof ( filePath ) ) ;
63
64
64
65
Uri documentUri = DocumentUri . FromFileSystemPath ( filePath ) ;
@@ -117,7 +118,7 @@ public void DidOpen(Uri documentUri, string languageId, string text, int version
117
118
/// </remarks>
118
119
public void DidChange ( string filePath , string languageId , int version = 0 )
119
120
{
120
- if ( String . IsNullOrWhiteSpace ( filePath ) )
121
+ if ( string . IsNullOrWhiteSpace ( filePath ) )
121
122
throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( filePath ) } .", nameof ( filePath ) ) ;
122
123
123
124
string text = null ;
@@ -152,7 +153,7 @@ public void DidChange(string filePath, string languageId, int version = 0)
152
153
/// </remarks>
153
154
public void DidChange ( string filePath , string languageId , string text , int version = 0 )
154
155
{
155
- if ( String . IsNullOrWhiteSpace ( filePath ) )
156
+ if ( string . IsNullOrWhiteSpace ( filePath ) )
156
157
throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( filePath ) } .", nameof ( filePath ) ) ;
157
158
158
159
Uri documentUri = DocumentUri . FromFileSystemPath ( filePath ) ;
@@ -208,7 +209,7 @@ public void DidChange(Uri documentUri, string languageId, string text, int versi
208
209
/// </param>
209
210
public void DidClose ( string filePath )
210
211
{
211
- if ( String . IsNullOrWhiteSpace ( filePath ) )
212
+ if ( string . IsNullOrWhiteSpace ( filePath ) )
212
213
throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( filePath ) } .", nameof ( filePath ) ) ;
213
214
214
215
DidClose (
@@ -244,7 +245,7 @@ public void DidClose(Uri documentUri)
244
245
/// </param>
245
246
public void DidSave ( string filePath )
246
247
{
247
- if ( String . IsNullOrWhiteSpace ( filePath ) )
248
+ if ( string . IsNullOrWhiteSpace ( filePath ) )
248
249
throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( filePath ) } .", nameof ( filePath ) ) ;
249
250
250
251
DidSave (
0 commit comments