summaryrefslogtreecommitdiffstats
path: root/generator/plugins/dotnet/custom/LSPRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'generator/plugins/dotnet/custom/LSPRequest.cs')
-rw-r--r--generator/plugins/dotnet/custom/LSPRequest.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/generator/plugins/dotnet/custom/LSPRequest.cs b/generator/plugins/dotnet/custom/LSPRequest.cs
new file mode 100644
index 0000000..69e3f0d
--- /dev/null
+++ b/generator/plugins/dotnet/custom/LSPRequest.cs
@@ -0,0 +1,22 @@
+using System;
+
+[AttributeUsage(AttributeTargets.Class)]
+public class LSPRequestAttribute : Attribute
+{
+ public LSPRequestAttribute(string method, Type response)
+ {
+ Method = method;
+ Response = response;
+ }
+
+ public LSPRequestAttribute(string method, Type response, Type partialResponse)
+ {
+ Method = method;
+ Response = response;
+ PartialResponse = partialResponse;
+ }
+
+ public string Method { get; }
+ public Type Response { get; }
+ public Type? PartialResponse { get; }
+} \ No newline at end of file