Update LKG

This commit is contained in:
Mohamed Hegazy
2017-04-20 14:30:30 -07:00
parent 1636a268af
commit d6c981b00a
6 changed files with 27 additions and 4 deletions
+8
View File
@@ -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
View File
@@ -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)
}); });
+3
View File
@@ -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;
+7 -2
View File
@@ -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)
}); });
+1
View File
@@ -2063,6 +2063,7 @@ declare namespace ts {
messageText: string | DiagnosticMessageChain;
category: DiagnosticCategory;
code: number;
source?: string;
}
enum DiagnosticCategory {
Warning = 0,
+1
View File
@@ -2063,6 +2063,7 @@ declare namespace ts {
messageText: string | DiagnosticMessageChain;
category: DiagnosticCategory;
code: number;
source?: string;
}
enum DiagnosticCategory {
Warning = 0,