summaryrefslogtreecommitdiffstats
path: root/generator/plugins/dotnet/custom/IPartialResultParams.cs
diff options
context:
space:
mode:
Diffstat (limited to 'generator/plugins/dotnet/custom/IPartialResultParams.cs')
-rw-r--r--generator/plugins/dotnet/custom/IPartialResultParams.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/generator/plugins/dotnet/custom/IPartialResultParams.cs b/generator/plugins/dotnet/custom/IPartialResultParams.cs
new file mode 100644
index 0000000..ef90c3b
--- /dev/null
+++ b/generator/plugins/dotnet/custom/IPartialResultParams.cs
@@ -0,0 +1,15 @@
+using System;
+
+/// <summary>
+/// Interface to describe parameters for requests that support streaming results.
+///
+/// See the <see href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#partialResultParams">Language Server Protocol specification</see> for additional information.
+/// </summary>
+/// <typeparam name="T">The type to be reported by <see cref="PartialResultToken"/>.</typeparam>
+public interface IPartialResultParams
+{
+ /// <summary>
+ /// An optional token that a server can use to report partial results (e.g. streaming) to the client.
+ /// </summary>
+ public ProgressToken? PartialResultToken { get; set; }
+} \ No newline at end of file