From cda486ad85c611b448c2025171c40e13b53b1208 Mon Sep 17 00:00:00 2001 From: Arthur Ozga Date: Thu, 16 Nov 2017 18:27:30 -0800 Subject: [PATCH] update baselines --- tests/baselines/reference/api/tsserverlibrary.d.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 6b785153cc9c1..3ac976f222550 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -6909,8 +6909,9 @@ declare namespace ts.server { type CommandNames = protocol.CommandTypes; const CommandNames: any; function formatMessage(msg: T, logger: server.Logger, byteLength: (s: string, encoding: string) => number, newLine: string): string; + type Event = (body: T, eventName: string) => void; interface EventSender { - event: (body: T, eventName: string) => void; + event: Event; } interface SessionOptions { host: ServerHost; @@ -6925,10 +6926,6 @@ declare namespace ts.server { * If falsy, all events are suppressed. */ canUseEvents: boolean; - /** - * An optional callback overriding the default behavior for sending messages. - */ - eventSender?: EventSender; eventHandler?: ProjectServiceEventHandler; throttleWaitMilliseconds?: number; globalPlugins?: ReadonlyArray; @@ -6941,13 +6938,13 @@ declare namespace ts.server { private changeSeq; private currentRequestId; private errorCheck; - private host; + protected host: ServerHost; private readonly cancellationToken; protected readonly typingsInstaller: ITypingsInstaller; - private byteLength; + protected byteLength: (buf: string, encoding?: string) => number; private hrtime; protected logger: Logger; - private canUseEvents; + protected canUseEvents: boolean; private eventHandler; constructor(opts: SessionOptions); private sendRequestCompletedEvent(requestId);