mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update LKG
This commit is contained in:
Vendored
+8
@@ -1404,10 +1404,18 @@ declare namespace ts.server.protocol {
|
||||
* Text of diagnostic message.
|
||||
*/
|
||||
text: string;
|
||||
/**
|
||||
* The category of the diagnostic message, e.g. "error" vs. "warning"
|
||||
*/
|
||||
category: string;
|
||||
/**
|
||||
* The error code of the diagnostic message.
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
* The name of the plugin reporting the message.
|
||||
*/
|
||||
source?: string;
|
||||
}
|
||||
interface DiagnosticEventBody {
|
||||
/**
|
||||
|
||||
+7
-2
@@ -76042,14 +76042,18 @@ var ts;
|
||||
start: scriptInfo.positionToLineOffset(diag.start),
|
||||
end: scriptInfo.positionToLineOffset(diag.start + diag.length),
|
||||
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
|
||||
code: diag.code
|
||||
code: diag.code,
|
||||
category: ts.DiagnosticCategory[diag.category].toLowerCase(),
|
||||
source: diag.source
|
||||
};
|
||||
}
|
||||
function formatConfigFileDiag(diag) {
|
||||
return {
|
||||
start: undefined,
|
||||
end: undefined,
|
||||
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n")
|
||||
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
|
||||
category: ts.DiagnosticCategory[diag.category].toLowerCase(),
|
||||
source: diag.source
|
||||
};
|
||||
}
|
||||
function allEditsBeforePos(edits, pos) {
|
||||
@@ -76689,6 +76693,7 @@ var ts;
|
||||
length: d.length,
|
||||
category: ts.DiagnosticCategory[d.category].toLowerCase(),
|
||||
code: d.code,
|
||||
source: d.source,
|
||||
startLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start),
|
||||
endLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start + d.length)
|
||||
}); });
|
||||
|
||||
Vendored
+3
@@ -1965,6 +1965,7 @@ declare namespace ts {
|
||||
messageText: string | DiagnosticMessageChain;
|
||||
category: DiagnosticCategory;
|
||||
code: number;
|
||||
source?: string;
|
||||
}
|
||||
enum DiagnosticCategory {
|
||||
Warning = 0,
|
||||
@@ -4103,7 +4104,9 @@ declare namespace ts.server.protocol {
|
||||
start: Location;
|
||||
end: Location;
|
||||
text: string;
|
||||
category: string;
|
||||
code?: number;
|
||||
source?: string;
|
||||
}
|
||||
interface DiagnosticEventBody {
|
||||
file: string;
|
||||
|
||||
@@ -72361,14 +72361,18 @@ var ts;
|
||||
start: scriptInfo.positionToLineOffset(diag.start),
|
||||
end: scriptInfo.positionToLineOffset(diag.start + diag.length),
|
||||
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
|
||||
code: diag.code
|
||||
code: diag.code,
|
||||
category: ts.DiagnosticCategory[diag.category].toLowerCase(),
|
||||
source: diag.source
|
||||
};
|
||||
}
|
||||
function formatConfigFileDiag(diag) {
|
||||
return {
|
||||
start: undefined,
|
||||
end: undefined,
|
||||
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n")
|
||||
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
|
||||
category: ts.DiagnosticCategory[diag.category].toLowerCase(),
|
||||
source: diag.source
|
||||
};
|
||||
}
|
||||
function allEditsBeforePos(edits, pos) {
|
||||
@@ -73008,6 +73012,7 @@ var ts;
|
||||
length: d.length,
|
||||
category: ts.DiagnosticCategory[d.category].toLowerCase(),
|
||||
code: d.code,
|
||||
source: d.source,
|
||||
startLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start),
|
||||
endLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start + d.length)
|
||||
}); });
|
||||
|
||||
Vendored
+1
@@ -2063,6 +2063,7 @@ declare namespace ts {
|
||||
messageText: string | DiagnosticMessageChain;
|
||||
category: DiagnosticCategory;
|
||||
code: number;
|
||||
source?: string;
|
||||
}
|
||||
enum DiagnosticCategory {
|
||||
Warning = 0,
|
||||
|
||||
Vendored
+1
@@ -2063,6 +2063,7 @@ declare namespace ts {
|
||||
messageText: string | DiagnosticMessageChain;
|
||||
category: DiagnosticCategory;
|
||||
code: number;
|
||||
source?: string;
|
||||
}
|
||||
enum DiagnosticCategory {
|
||||
Warning = 0,
|
||||
|
||||
Reference in New Issue
Block a user