File tree Expand file tree Collapse file tree 6 files changed +27
-4
lines changed Expand file tree Collapse file tree 6 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -1404,10 +1404,18 @@ declare namespace ts.server.protocol {
1404
1404
* Text of diagnostic message.
1405
1405
*/
1406
1406
text : string ;
1407
+ /**
1408
+ * The category of the diagnostic message, e.g. "error" vs. "warning"
1409
+ */
1410
+ category : string ;
1407
1411
/**
1408
1412
* The error code of the diagnostic message.
1409
1413
*/
1410
1414
code ?: number ;
1415
+ /**
1416
+ * The name of the plugin reporting the message.
1417
+ */
1418
+ source ?: string ;
1411
1419
}
1412
1420
interface DiagnosticEventBody {
1413
1421
/**
Original file line number Diff line number Diff line change @@ -76042,14 +76042,18 @@ var ts;
76042
76042
start: scriptInfo.positionToLineOffset(diag.start),
76043
76043
end: scriptInfo.positionToLineOffset(diag.start + diag.length),
76044
76044
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
76045
- code: diag.code
76045
+ code: diag.code,
76046
+ category: ts.DiagnosticCategory[diag.category].toLowerCase(),
76047
+ source: diag.source
76046
76048
};
76047
76049
}
76048
76050
function formatConfigFileDiag(diag) {
76049
76051
return {
76050
76052
start: undefined,
76051
76053
end: undefined,
76052
- text: ts.flattenDiagnosticMessageText(diag.messageText, "\n")
76054
+ text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
76055
+ category: ts.DiagnosticCategory[diag.category].toLowerCase(),
76056
+ source: diag.source
76053
76057
};
76054
76058
}
76055
76059
function allEditsBeforePos(edits, pos) {
@@ -76689,6 +76693,7 @@ var ts;
76689
76693
length: d.length,
76690
76694
category: ts.DiagnosticCategory[d.category].toLowerCase(),
76691
76695
code: d.code,
76696
+ source: d.source,
76692
76697
startLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start),
76693
76698
endLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start + d.length)
76694
76699
}); });
Original file line number Diff line number Diff line change @@ -1965,6 +1965,7 @@ declare namespace ts {
1965
1965
messageText : string | DiagnosticMessageChain ;
1966
1966
category : DiagnosticCategory ;
1967
1967
code : number ;
1968
+ source ?: string ;
1968
1969
}
1969
1970
enum DiagnosticCategory {
1970
1971
Warning = 0 ,
@@ -4103,7 +4104,9 @@ declare namespace ts.server.protocol {
4103
4104
start : Location ;
4104
4105
end : Location ;
4105
4106
text : string ;
4107
+ category : string ;
4106
4108
code ?: number ;
4109
+ source ?: string ;
4107
4110
}
4108
4111
interface DiagnosticEventBody {
4109
4112
file : string ;
Original file line number Diff line number Diff line change @@ -72361,14 +72361,18 @@ var ts;
72361
72361
start: scriptInfo.positionToLineOffset(diag.start),
72362
72362
end: scriptInfo.positionToLineOffset(diag.start + diag.length),
72363
72363
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
72364
- code: diag.code
72364
+ code: diag.code,
72365
+ category: ts.DiagnosticCategory[diag.category].toLowerCase(),
72366
+ source: diag.source
72365
72367
};
72366
72368
}
72367
72369
function formatConfigFileDiag(diag) {
72368
72370
return {
72369
72371
start: undefined,
72370
72372
end: undefined,
72371
- text: ts.flattenDiagnosticMessageText(diag.messageText, "\n")
72373
+ text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
72374
+ category: ts.DiagnosticCategory[diag.category].toLowerCase(),
72375
+ source: diag.source
72372
72376
};
72373
72377
}
72374
72378
function allEditsBeforePos(edits, pos) {
@@ -73008,6 +73012,7 @@ var ts;
73008
73012
length: d.length,
73009
73013
category: ts.DiagnosticCategory[d.category].toLowerCase(),
73010
73014
code: d.code,
73015
+ source: d.source,
73011
73016
startLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start),
73012
73017
endLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start + d.length)
73013
73018
}); });
Original file line number Diff line number Diff line change @@ -2063,6 +2063,7 @@ declare namespace ts {
2063
2063
messageText : string | DiagnosticMessageChain ;
2064
2064
category : DiagnosticCategory ;
2065
2065
code : number ;
2066
+ source ?: string ;
2066
2067
}
2067
2068
enum DiagnosticCategory {
2068
2069
Warning = 0 ,
Original file line number Diff line number Diff line change @@ -2063,6 +2063,7 @@ declare namespace ts {
2063
2063
messageText : string | DiagnosticMessageChain ;
2064
2064
category : DiagnosticCategory ;
2065
2065
code : number ;
2066
+ source ?: string ;
2066
2067
}
2067
2068
enum DiagnosticCategory {
2068
2069
Warning = 0 ,
You can’t perform that action at this time.
0 commit comments