Skip to content

Commit fb86896

Browse files
authored
Make Response.performanceData public (microsoft#36621)
1 parent 0026225 commit fb86896

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: src/server/protocol.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,12 @@ namespace ts.server.protocol {
237237
*/
238238
metadata?: unknown;
239239

240-
/* @internal */
240+
/**
241+
* Exposes information about the performance of this request-response pair.
242+
*/
241243
performanceData?: PerformanceData;
242244
}
243245

244-
/* @internal */
245246
export interface PerformanceData {
246247
/**
247248
* Time spent updating the program graph, in milliseconds.

Diff for: tests/baselines/reference/api/tsserverlibrary.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -6253,6 +6253,16 @@ declare namespace ts.server.protocol {
62536253
* Contains extra information that plugin can include to be passed on
62546254
*/
62556255
metadata?: unknown;
6256+
/**
6257+
* Exposes information about the performance of this request-response pair.
6258+
*/
6259+
performanceData?: PerformanceData;
6260+
}
6261+
interface PerformanceData {
6262+
/**
6263+
* Time spent updating the program graph, in milliseconds.
6264+
*/
6265+
updateGraphDurationMs?: number;
62566266
}
62576267
/**
62586268
* Arguments for FileRequest messages.

0 commit comments

Comments
 (0)