You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made all lsp/dap models records where appropraite. for lsp registration options and capabilities are not records and do not have init only properties. These values can be adjusted during the startup lifecycle.
+semver:minor
/// Information about a Breakpoint created in setBreakpoints or setFunctionBreakpoints.
17
16
/// </summary>
18
-
publicclassBreakpoint
17
+
publicrecordBreakpoint
19
18
{
20
19
/// <summary>
21
20
/// An optional identifier for the breakpoint. It is needed if breakpoint events are used to update or remove breakpoints.
22
21
/// </summary>
23
22
[Optional]
24
-
publiclong?Id{get;set;}
23
+
publiclong?Id{get;init;}
25
24
26
25
/// <summary>
27
26
/// If true breakpoint could be set (but not necessarily at the desired location).
28
27
/// </summary>
29
-
publicboolVerified{get;set;}
28
+
publicboolVerified{get;init;}
30
29
31
30
/// <summary>
32
31
/// An optional message about the state of the breakpoint. This is shown to the user and can be used to explain why a breakpoint could not be verified.
33
32
/// </summary>
34
33
[Optional]
35
-
publicstring?Message{get;set;}
34
+
publicstring?Message{get;init;}
36
35
37
36
/// <summary>
38
37
/// The source where the breakpoint is located.
39
38
/// </summary>
40
39
[Optional]
41
-
publicSource?Source{get;set;}
40
+
publicSource?Source{get;init;}
42
41
43
42
/// <summary>
44
43
/// The start line of the actual range covered by the breakpoint.
45
44
/// </summary>
46
45
[Optional]
47
-
publicint?Line{get;set;}
46
+
publicint?Line{get;init;}
48
47
49
48
/// <summary>
50
49
/// An optional start column of the actual range covered by the breakpoint.
51
50
/// </summary>
52
51
[Optional]
53
-
publicint?Column{get;set;}
52
+
publicint?Column{get;init;}
54
53
55
54
/// <summary>
56
55
/// An optional end line of the actual range covered by the breakpoint.
57
56
/// </summary>
58
57
[Optional]
59
-
publicint?EndLine{get;set;}
58
+
publicint?EndLine{get;init;}
60
59
61
60
/// <summary>
62
61
/// An optional end column of the actual range covered by the breakpoint. If no end line is given, then the end column is assumed to be in the start line.
63
62
/// </summary>
64
63
[Optional]
65
-
publicint?EndColumn{get;set;}
64
+
publicint?EndColumn{get;init;}
66
65
67
66
/// <summary>
68
67
/// An optional memory reference to where the breakpoint is set.
69
68
/// </summary>
70
69
[Optional]
71
-
publicstring?InstructionReference{get;set;}
70
+
publicstring?InstructionReference{get;init;}
72
71
73
72
/// <summary>
74
73
/// An optional offset from the instruction reference.
75
74
/// This can be negative.
76
75
/// </summary>
77
76
[Optional]
78
-
publicint?Offset{get;set;}
77
+
publicint?Offset{get;init;}
79
78
}
80
79
}
81
80
namespaceEvents
@@ -87,18 +86,18 @@ namespace Events
87
86
GenerateHandlerMethods,
88
87
GenerateRequestMethods
89
88
]
90
-
publicclassBreakpointEvent:IRequest
89
+
publicrecordBreakpointEvent:IRequest
91
90
{
92
91
/// <summary>
93
92
/// The reason for the event.
94
93
/// Values: 'changed', 'new', 'removed', etc.
95
94
/// </summary>
96
-
publicstringReason{get;set;}=null!;
95
+
publicstringReason{get;init;}
97
96
98
97
/// <summary>
99
98
/// The 'id' attribute is used to find the target breakpoint and the other attributes are used as the new values.
Copy file name to clipboardExpand all lines: src/Dap.Protocol/Feature/Events/OutputFeature.cs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -19,49 +19,49 @@ namespace Events
19
19
GenerateHandlerMethods,
20
20
GenerateRequestMethods
21
21
]
22
-
publicclassOutputEvent:IRequest
22
+
publicrecordOutputEvent:IRequest
23
23
{
24
24
/// <summary>
25
25
/// The output category. If not specified, 'console' is assumed.
26
26
/// Values: 'console', 'stdout', 'stderr', 'telemetry', etc.
27
27
/// </summary>
28
28
[Optional]
29
-
publicstring?Category{get;set;}
29
+
publicstring?Category{get;init;}
30
30
31
31
/// <summary>
32
32
/// The output to report.
33
33
/// </summary>
34
-
publicstringOutput{get;set;}=null!;
34
+
publicstringOutput{get;init;}
35
35
36
36
/// <summary>
37
37
/// If an attribute 'variablesReference' exists and its value is > 0, the output contains objects which can be retrieved by passing 'variablesReference' to the 'variables' request.
38
38
/// </summary>
39
39
[Optional]
40
-
publiclong?VariablesReference{get;set;}
40
+
publiclong?VariablesReference{get;init;}
41
41
42
42
/// <summary>
43
43
/// An optional source location where the output was produced.
44
44
/// </summary>
45
45
[Optional]
46
-
publicSource?Source{get;set;}
46
+
publicSource?Source{get;init;}
47
47
48
48
/// <summary>
49
49
/// An optional source location line where the output was produced.
50
50
/// </summary>
51
51
[Optional]
52
-
publiclong?Line{get;set;}
52
+
publiclong?Line{get;init;}
53
53
54
54
/// <summary>
55
55
/// An optional source location column where the output was produced.
56
56
/// </summary>
57
57
[Optional]
58
-
publiclong?Column{get;set;}
58
+
publiclong?Column{get;init;}
59
59
60
60
/// <summary>
61
61
/// Optional data to report. For the 'telemetry' category the data will be sent to telemetry, for the other categories the data is shown in JSON format.
0 commit comments