Skip to content

Commit 2cd27a4

Browse files
big namespace rename 2/x
1 parent 7995302 commit 2cd27a4

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

sample/SampleServer/Program.cs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Threading.Tasks;
44
using Microsoft.Extensions.Logging;
55
using OmniSharp.Extensions.LanguageServer;
6+
using OmniSharp.Extensions.LanguageServer.Server;
67

78
namespace SampleServer
89
{

src/Client/Clients/TextDocumentClient.Diagnostics.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
3+
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
34

45
namespace OmniSharp.Extensions.LanguageServer.Client.Clients
56
{
@@ -30,7 +31,7 @@ public IDisposable OnPublishDiagnostics(PublishDiagnosticsHandler handler)
3031
if (notification.Diagnostics == null)
3132
return; // Invalid notification.
3233

33-
List<Diagnostic> diagnostics = new List<Diagnostic>();
34+
var diagnostics = new List<Diagnostic>();
3435
if (notification.Diagnostics != null)
3536
diagnostics.AddRange(notification.Diagnostics);
3637

src/Client/Clients/TextDocumentClient.Sync.cs

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
using System;
1+
using System;
22
using System.IO;
33
using OmniSharp.Extensions.LanguageServer.Client.Utilities;
4+
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
45

56
namespace OmniSharp.Extensions.LanguageServer.Client.Clients
67
{
@@ -26,7 +27,7 @@ public partial class TextDocumentClient
2627
/// </remarks>
2728
public void DidOpen(string filePath, string languageId, int version = 0)
2829
{
29-
if (String.IsNullOrWhiteSpace(filePath))
30+
if (string.IsNullOrWhiteSpace(filePath))
3031
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(filePath)}.", nameof(filePath));
3132

3233
string text = null;
@@ -58,7 +59,7 @@ public void DidOpen(string filePath, string languageId, int version = 0)
5859
/// </param>
5960
public void DidOpen(string filePath, string languageId, string text, int version = 0)
6061
{
61-
if (String.IsNullOrWhiteSpace(filePath))
62+
if (string.IsNullOrWhiteSpace(filePath))
6263
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(filePath)}.", nameof(filePath));
6364

6465
Uri documentUri = DocumentUri.FromFileSystemPath(filePath);
@@ -117,7 +118,7 @@ public void DidOpen(Uri documentUri, string languageId, string text, int version
117118
/// </remarks>
118119
public void DidChange(string filePath, string languageId, int version = 0)
119120
{
120-
if (String.IsNullOrWhiteSpace(filePath))
121+
if (string.IsNullOrWhiteSpace(filePath))
121122
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(filePath)}.", nameof(filePath));
122123

123124
string text = null;
@@ -152,7 +153,7 @@ public void DidChange(string filePath, string languageId, int version = 0)
152153
/// </remarks>
153154
public void DidChange(string filePath, string languageId, string text, int version = 0)
154155
{
155-
if (String.IsNullOrWhiteSpace(filePath))
156+
if (string.IsNullOrWhiteSpace(filePath))
156157
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(filePath)}.", nameof(filePath));
157158

158159
Uri documentUri = DocumentUri.FromFileSystemPath(filePath);
@@ -208,7 +209,7 @@ public void DidChange(Uri documentUri, string languageId, string text, int versi
208209
/// </param>
209210
public void DidClose(string filePath)
210211
{
211-
if (String.IsNullOrWhiteSpace(filePath))
212+
if (string.IsNullOrWhiteSpace(filePath))
212213
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(filePath)}.", nameof(filePath));
213214

214215
DidClose(
@@ -244,7 +245,7 @@ public void DidClose(Uri documentUri)
244245
/// </param>
245246
public void DidSave(string filePath)
246247
{
247-
if (String.IsNullOrWhiteSpace(filePath))
248+
if (string.IsNullOrWhiteSpace(filePath))
248249
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(filePath)}.", nameof(filePath));
249250

250251
DidSave(

src/Client/Clients/TextDocumentClient.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
using System;
1+
using System;
22
using System.Threading;
33
using System.Threading.Tasks;
4+
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
45

56
namespace OmniSharp.Extensions.LanguageServer.Client.Clients
67
{
@@ -54,7 +55,7 @@ public TextDocumentClient(LanguageClient client)
5455
/// </returns>
5556
async Task<TResponse> PositionalRequest<TResponse>(string method, Uri documentUri, int line, int column, CancellationToken cancellationToken)
5657
{
57-
if (String.IsNullOrWhiteSpace(method))
58+
if (string.IsNullOrWhiteSpace(method))
5859
throw new ArgumentException($"Argument cannot be null, empty, or entirely composed of whitespace: {nameof(method)}.", nameof(method));
5960

6061
if (documentUri == null)

src/Client/Clients/WindowClient.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using System;
2+
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
23

34
namespace OmniSharp.Extensions.LanguageServer.Client.Clients
45
{

0 commit comments

Comments
 (0)