Skip to content

Commit

Permalink
Make Response.performanceData public (microsoft#36595)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcasey authored Feb 4, 2020
1 parent 8c31700 commit 2e97918
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions tests/baselines/reference/api/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2e97918

Please sign in to comment.