Make Response.performanceData public (#36595)

This commit is contained in:
Andrew Casey 2020-02-04 15:07:48 -08:00 committed by GitHub
parent 8c31700735
commit 2e97918d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

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.

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.