diff --git a/src/server/protocol.ts b/src/server/protocol.ts index 94bc3085e928e..5fe3fbd0fa28b 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -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. diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 0e09f5469fe13..92fc0b47ae1bb 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -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.