|
1 | 1 | # generated by datamodel-codegen: |
2 | 2 | # filename: lsp.schema.json |
3 | | -# timestamp: 2025-08-03T05:12:32+00:00 |
| 3 | +# timestamp: 2025-11-28T18:09:27+00:00 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
7 | 7 | from typing import Any, List, Literal, NotRequired, TypedDict, Union |
8 | 8 |
|
9 | | -Model = Any |
| 9 | +type Model = Any |
10 | 10 |
|
11 | 11 |
|
12 | | -BaseTypes = Literal[ |
| 12 | +type BaseTypes = Literal[ |
13 | 13 | "URI", |
14 | 14 | "DocumentUri", |
15 | 15 | "integer", |
@@ -88,7 +88,10 @@ class MapKeyType1(TypedDict): |
88 | 88 | name: Literal["URI", "DocumentUri", "string", "integer"] |
89 | 89 |
|
90 | 90 |
|
91 | | -MessageDirection = Literal["clientToServer", "serverToClient", "both"] |
| 91 | +type MessageDirection = Literal["clientToServer", "serverToClient", "both"] |
| 92 | +""" |
| 93 | +Indicates in which direction a message is sent in the protocol. |
| 94 | +""" |
92 | 95 |
|
93 | 96 |
|
94 | 97 | class MetaData(TypedDict): |
@@ -116,7 +119,7 @@ class StringLiteralType(TypedDict): |
116 | 119 | value: str |
117 | 120 |
|
118 | 121 |
|
119 | | -TypeKind = Literal[ |
| 122 | +type TypeKind = Literal[ |
120 | 123 | "base", |
121 | 124 | "reference", |
122 | 125 | "array", |
@@ -183,7 +186,10 @@ class Enumeration(TypedDict): |
183 | 186 | """ |
184 | 187 |
|
185 | 188 |
|
186 | | -MapKeyType = Union[MapKeyType1, ReferenceType] |
| 189 | +type MapKeyType = Union[MapKeyType1, ReferenceType] |
| 190 | +""" |
| 191 | +Represents a type that can be used as a key in a map type. If a reference type is used then the type must either resolve to a `string` or `integer` type. (e.g. `type ChangeAnnotationIdentifier === string`). |
| 192 | +""" |
187 | 193 |
|
188 | 194 |
|
189 | 195 | class AndType(TypedDict): |
@@ -515,7 +521,7 @@ class TupleType(TypedDict): |
515 | 521 | kind: Literal["tuple"] |
516 | 522 |
|
517 | 523 |
|
518 | | -Type = Union[ |
| 524 | +type Type = Union[ |
519 | 525 | BaseType, |
520 | 526 | ReferenceType, |
521 | 527 | ArrayType, |
|
0 commit comments