|
1 | | -extend interface TreeEntry { |
2 | | - """ |
3 | | - LSIF data for this tree entry. |
4 | | - """ |
5 | | - lsif( |
6 | | - """ |
7 | | - An optional filter for the name of the tool that produced the upload data. |
8 | | - """ |
9 | | - toolName: String |
10 | | - ): TreeEntryLSIFData |
11 | | -} |
12 | | - |
13 | | -extend type GitTree { |
14 | | - """ |
15 | | - LSIF data for this tree entry. |
16 | | - """ |
17 | | - lsif( |
18 | | - """ |
19 | | - An optional filter for the name of the tool that produced the upload data. |
20 | | - """ |
21 | | - toolName: String |
22 | | - ): GitTreeLSIFData |
23 | | -} |
24 | | - |
25 | 1 | extend type GitBlob { |
26 | 2 | """ |
27 | 3 | A wrapper around LSIF query methods. If no LSIF upload can be used to answer code |
@@ -336,33 +312,11 @@ enum SymbolRole { |
336 | 312 | FORWARD_DEFINITION |
337 | 313 | } |
338 | 314 |
|
339 | | -""" |
340 | | -LSIF data available for a tree entry (file OR directory, see GitBlobLSIFData for file-specific |
341 | | -resolvers and GitTreeLSIFData for directory-specific resolvers.) |
342 | | -""" |
343 | | -interface TreeEntryLSIFData { |
344 | | - """ |
345 | | - Code diagnostics provided through LSIF. |
346 | | - """ |
347 | | - diagnostics(first: Int): DiagnosticConnection! |
348 | | -} |
349 | | - |
350 | | -""" |
351 | | -A wrapper object around LSIF query methods for a particular git-tree-at-revision. When this node is |
352 | | -null, no LSIF data is available for the git tree in question. |
353 | | -""" |
354 | | -type GitTreeLSIFData implements TreeEntryLSIFData { |
355 | | - """ |
356 | | - Code diagnostics provided through LSIF. |
357 | | - """ |
358 | | - diagnostics(first: Int): DiagnosticConnection! |
359 | | -} |
360 | | - |
361 | 315 | """ |
362 | 316 | A wrapper object around LSIF query methods for a particular git-blob-at-revision. When this node is |
363 | 317 | null, no LSIF data is available for the git blob in question. |
364 | 318 | """ |
365 | | -type GitBlobLSIFData implements TreeEntryLSIFData { |
| 319 | +type GitBlobLSIFData { |
366 | 320 | """ |
367 | 321 | Return a flat list of all ranges in the document that have code intelligence. |
368 | 322 | """ |
@@ -518,11 +472,6 @@ type GitBlobLSIFData implements TreeEntryLSIFData { |
518 | 472 | character: Int! |
519 | 473 | ): Hover |
520 | 474 |
|
521 | | - """ |
522 | | - Code diagnostics provided through LSIF. |
523 | | - """ |
524 | | - diagnostics(first: Int): DiagnosticConnection! |
525 | | - |
526 | 475 | """ |
527 | 476 | The indexes that could provide precise code intelligence for the current blob. |
528 | 477 | """ |
@@ -1071,67 +1020,6 @@ type Hover { |
1071 | 1020 | summary: Markdown |
1072 | 1021 | } |
1073 | 1022 |
|
1074 | | -""" |
1075 | | -A list of diagnostics. |
1076 | | -""" |
1077 | | -type DiagnosticConnection { |
1078 | | - """ |
1079 | | - A list of diagnostics. |
1080 | | - """ |
1081 | | - nodes: [Diagnostic!]! |
1082 | | - |
1083 | | - """ |
1084 | | - The total count of diagnostics (which may be larger than nodes.length if the connection is paginated). |
1085 | | - """ |
1086 | | - totalCount: Int |
1087 | | - |
1088 | | - """ |
1089 | | - Pagination information. |
1090 | | - """ |
1091 | | - pageInfo: PageInfo! |
1092 | | -} |
1093 | | - |
1094 | | -""" |
1095 | | -Represents a diagnostic, such as a compiler error or warning. |
1096 | | -""" |
1097 | | -type Diagnostic { |
1098 | | - """ |
1099 | | - The location at which the message applies. |
1100 | | - """ |
1101 | | - location: Location! |
1102 | | - |
1103 | | - """ |
1104 | | - The diagnostic's severity. |
1105 | | - """ |
1106 | | - severity: DiagnosticSeverity |
1107 | | - |
1108 | | - """ |
1109 | | - The diagnostic's code as provided by the tool. |
1110 | | - """ |
1111 | | - code: String |
1112 | | - |
1113 | | - """ |
1114 | | - A human-readable string describing the source of this |
1115 | | - diagnostic, e.g. "typescript" or "super lint". |
1116 | | - """ |
1117 | | - source: String |
1118 | | - |
1119 | | - """ |
1120 | | - The diagnostic's message. |
1121 | | - """ |
1122 | | - message: String |
1123 | | -} |
1124 | | - |
1125 | | -""" |
1126 | | -Represents the severity level of a diagnostic. |
1127 | | -""" |
1128 | | -enum DiagnosticSeverity { |
1129 | | - ERROR |
1130 | | - WARNING |
1131 | | - INFORMATION |
1132 | | - HINT |
1133 | | -} |
1134 | | - |
1135 | 1023 | """ |
1136 | 1024 | SymbolInfo contains hover and definition methods. It's returned by GitBlob.symbolInfo(line, character). |
1137 | 1025 | """ |
|
0 commit comments