-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from OmniSharp/upgrade/latest-lsp
Upgrade/latest lsp
- Loading branch information
Showing
106 changed files
with
1,334 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
-- This is the last commit we caught up with https://github.com/Microsoft/language-server-protocol/commits/gh-pages | ||
9e2713d5f1618b8d5e05a91a4e2c637aa51e1ee0 | ||
lastSha: 1a69f1270d59cccd7b85e0697450950abd5a0221 | ||
|
||
https://github.com/Microsoft/language-server-protocol/compare/<lastSha>..<newSha> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Server; | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities | ||
{ | ||
public class DeclarationCapability : LinkSupportCapability, ConnectedCapability<IDeclarationHandler> { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Serialization; | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities | ||
{ | ||
public abstract class LinkSupportCapability : DynamicCapability | ||
{ | ||
[Optional] | ||
public bool LinkSupport { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Protocol/Client/Capabilities/SignatureParameterInformationCapability.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Serialization; | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities | ||
{ | ||
public class SignatureParameterInformationCapability | ||
{ | ||
/// <summary> | ||
/// The client supports processing label offsets instead of a | ||
/// simple label string. | ||
/// </summary> | ||
[Optional] | ||
public bool LabelOffsetSupport { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Threading.Tasks; | ||
using OmniSharp.Extensions.JsonRpc; | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities; | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Models; | ||
|
||
// ReSharper disable CheckNamespace | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Client | ||
{ | ||
public static class DeclarationExtensions | ||
{ | ||
public static Task<LocationOrLocationLinks> Declaration(this ILanguageClientDocument mediator, DeclarationParams @params) | ||
{ | ||
return mediator.SendRequest<DeclarationParams, LocationOrLocationLinks>(DocumentNames.Declaration, @params); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using OmniSharp.Extensions.JsonRpc; | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities; | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Models; | ||
|
||
// ReSharper disable CheckNamespace | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Server | ||
{ | ||
using static DocumentNames; | ||
[Parallel, Method(Declaration)] | ||
public interface IDeclarationHandler : IJsonRpcRequestHandler<DeclarationParams, LocationOrLocationLinks>, IRegistration<TextDocumentRegistrationOptions>, ICapability<DeclarationCapability> { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,5 @@ public CodeActionKind(string kind) | |
} | ||
|
||
public string Kind { get; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Serialization; | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Models | ||
{ | ||
/// <summary> | ||
/// Create file operation | ||
/// </summary> | ||
public class CreateFile : IFile | ||
{ | ||
/// <summary> | ||
/// A create | ||
/// </summary> | ||
public ResourceOperationKind Kind { get; } = ResourceOperationKind.Create; | ||
/// <summary> | ||
/// The resource to create. | ||
/// </summary> | ||
public string Uri { get; set; } | ||
/// <summary> | ||
/// Additional Options | ||
/// </summary> | ||
[Optional] | ||
public CreateFileOptions Options { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Serialization; | ||
|
||
namespace OmniSharp.Extensions.LanguageServer.Protocol.Models | ||
{ | ||
/// <summary> | ||
/// Options to create a file. | ||
/// </summary> | ||
public class CreateFileOptions | ||
{ | ||
/// <summary> | ||
/// Overwrite existing file. Overwrite wins over `ignoreIfExists` | ||
/// </summary> | ||
[Optional] | ||
public bool Overwrite { get; set; } | ||
/// <summary> | ||
/// Ignore if exists. | ||
/// </summary> | ||
[Optional] | ||
public bool IgnoreIfExists { get; set; } | ||
} | ||
} |
Oops, something went wrong.