Skip to content

Commit

Permalink
Tidy up code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tintoy committed Feb 2, 2018
1 parent 242287d commit 21635b3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/LanguageServer.Engine/Handlers/CompletionHandler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.LanguageServer;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Server;
using NuGet.Versioning;
using Serilog;
using System;
Expand All @@ -12,10 +16,6 @@ namespace MSBuildProjectTools.LanguageServer.Handlers
{
using CompletionProviders;
using Documents;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Server;
using SemanticModel;
using Utilities;

Expand Down Expand Up @@ -64,7 +64,7 @@ public CompletionHandler(ILanguageServer server, Workspace workspace, ILogger lo
Configuration Configuration { get; }

/// <summary>
/// The document selector that describes documents to synchronise.
/// The LSP document selector that describes documents the handler is interested in.
/// </summary>
DocumentSelector DocumentSelector { get; } = new DocumentSelector(
new DocumentFilter
Expand All @@ -90,7 +90,7 @@ public CompletionHandler(ILanguageServer server, Workspace workspace, ILogger lo
);

/// <summary>
/// Get registration options for handling document events.
/// Registration options for handling document events.
/// </summary>
TextDocumentRegistrationOptions DocumentRegistrationOptions
{
Expand All @@ -101,7 +101,7 @@ TextDocumentRegistrationOptions DocumentRegistrationOptions
}

/// <summary>
/// Get registration options for handling completion requests events.
/// Registration options for handling completion-request events.
/// </summary>
CompletionRegistrationOptions CompletionRegistrationOptions
{
Expand All @@ -126,7 +126,7 @@ CompletionRegistrationOptions CompletionRegistrationOptions
CompletionCapability CompletionCapabilities { get; set; }

/// <summary>
/// Should the handler return empty <see cref="CompletionList"/>s instead of <c>null</c>?
/// Should the handler return an empty <see cref="CompletionList"/>s instead of <c>null</c>?
/// </summary>
bool ReturnEmptyCompletionLists => Workspace.Configuration.EnableExperimentalFeatures.Contains("empty-completion-lists");

Expand Down

0 comments on commit 21635b3

Please sign in to comment.