Make Response.performanceData public (#36621)

This commit is contained in:
Andrew Casey
2020-02-05 13:34:23 -08:00
committed by GitHub
parent 0026225e78
commit fb868964fc
2 changed files with 13 additions and 2 deletions
+3 -2
View File
@@ -237,11 +237,12 @@ namespace ts.server.protocol {
*/
metadata?: unknown;
/* @internal */
/**
* Exposes information about the performance of this request-response pair.
*/
performanceData?: PerformanceData;
}
/* @internal */
export interface PerformanceData {
/**
* Time spent updating the program graph, in milliseconds.
+10
View File
@@ -6253,6 +6253,16 @@ declare namespace ts.server.protocol {
* Contains extra information that plugin can include to be passed on
*/
metadata?: unknown;
/**
* Exposes information about the performance of this request-response pair.
*/
performanceData?: PerformanceData;
}
interface PerformanceData {
/**
* Time spent updating the program graph, in milliseconds.
*/
updateGraphDurationMs?: number;
}
/**
* Arguments for FileRequest messages.