File: LSPRequest.cs

package info (click to toggle)
lsprotocol 2025.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,408 kB
  • sloc: python: 7,567; cs: 1,225; sh: 15; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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; }
}