From d1a202dca63cf747791048e1ed4b8ffe0efbf601 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 28 Apr 2017 14:25:52 -0700 Subject: [PATCH] Update LKG --- debug.log | 8 -------- lib/tsc.js | 2 +- lib/tsserver.js | 22 ++++++++++++++++++++-- lib/tsserverlibrary.d.ts | 3 ++- lib/tsserverlibrary.js | 22 ++++++++++++++++++++-- lib/typescript.d.ts | 2 +- lib/typescript.js | 2 +- lib/typescriptServices.d.ts | 2 +- lib/typescriptServices.js | 2 +- lib/typingsInstaller.js | 2 +- 10 files changed, 48 insertions(+), 19 deletions(-) delete mode 100644 debug.log diff --git a/debug.log b/debug.log deleted file mode 100644 index e4f3ee33ba2cc..0000000000000 --- a/debug.log +++ /dev/null @@ -1,8 +0,0 @@ -[0405/094221:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:5959 -[0405/094221:ERROR:node_debugger.cc(86)] Cannot start debugger server -[0405/094221:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:5960 -[0405/094221:ERROR:node_debugger.cc(86)] Cannot start debugger server -[0413/114447:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:5959 -[0413/114447:ERROR:node_debugger.cc(86)] Cannot start debugger server -[0413/114448:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:5960 -[0413/114448:ERROR:node_debugger.cc(86)] Cannot start debugger server diff --git a/lib/tsc.js b/lib/tsc.js index dd08ef178731b..ce6130fb5be87 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -142,7 +142,7 @@ var ts; })(ts || (ts = {})); var ts; (function (ts) { - ts.version = "2.3.1"; + ts.version = "2.3.2"; })(ts || (ts = {})); (function (ts) { ts.collator = typeof Intl === "object" && typeof Intl.Collator === "function" ? new Intl.Collator(undefined, { usage: "sort", sensitivity: "accent" }) : undefined; diff --git a/lib/tsserver.js b/lib/tsserver.js index dd7c057693ef3..fe15ad294b959 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -1102,7 +1102,7 @@ var ts; })(ts || (ts = {})); var ts; (function (ts) { - ts.version = "2.3.1"; + ts.version = "2.3.2"; })(ts || (ts = {})); (function (ts) { var Ternary; @@ -76291,7 +76291,7 @@ var ts; return MultistepOperation; }()); var Session = (function () { - function Session(opts) { + function Session(optsOrArg) { var _this = this; this.changeSeq = 0; this.handlers = ts.createMapFromTemplate((_a = {}, @@ -76532,6 +76532,24 @@ var ts; return _this.requiredResponse(_this.getSupportedCodeFixes()); }, _a)); + var opts; + if (arguments.length === 1) { + opts = optsOrArg; + } + else { + opts = { + host: arguments[0], + cancellationToken: arguments[1], + useSingleInferredProject: arguments[2], + typingsInstaller: arguments[3], + byteLength: arguments[4], + hrtime: arguments[5], + logger: arguments[6], + canUseEvents: arguments[7], + eventHandler: arguments[8], + throttleWaitMilliseconds: arguments[9] + }; + } this.host = opts.host; this.cancellationToken = opts.cancellationToken; this.typingsInstaller = opts.typingsInstaller; diff --git a/lib/tsserverlibrary.d.ts b/lib/tsserverlibrary.d.ts index 756d8e4d62582..3685e342f6586 100644 --- a/lib/tsserverlibrary.d.ts +++ b/lib/tsserverlibrary.d.ts @@ -2271,7 +2271,7 @@ declare namespace ts { } } declare namespace ts { - const version = "2.3.1"; + const version = "2.3.2"; } declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; declare function clearTimeout(handle: any): void; @@ -4483,6 +4483,7 @@ declare namespace ts.server { protected logger: Logger; private canUseEvents; constructor(opts: SessionOptions); + constructor(host: ServerHost, cancellationToken: ServerCancellationToken, useSingleInferredProject: boolean, typingsInstaller: ITypingsInstaller, byteLength: (buf: string, encoding?: string) => number, hrtime: (start?: number[]) => number[], logger: server.Logger, canUseEvents: boolean, eventHandler?: ProjectServiceEventHandler, throttleWaitMilliseconds?: number); private sendRequestCompletedEvent(requestId); private defaultEventHandler(event); logError(err: Error, cmd: string): void; diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index d4c391f8d3ab8..0a520ebb67897 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -1102,7 +1102,7 @@ var ts; })(ts || (ts = {})); var ts; (function (ts) { - ts.version = "2.3.1"; + ts.version = "2.3.2"; })(ts || (ts = {})); (function (ts) { var Ternary; @@ -72610,7 +72610,7 @@ var ts; return MultistepOperation; }()); var Session = (function () { - function Session(opts) { + function Session(optsOrArg) { var _this = this; this.changeSeq = 0; this.handlers = ts.createMapFromTemplate((_a = {}, @@ -72851,6 +72851,24 @@ var ts; return _this.requiredResponse(_this.getSupportedCodeFixes()); }, _a)); + var opts; + if (arguments.length === 1) { + opts = optsOrArg; + } + else { + opts = { + host: arguments[0], + cancellationToken: arguments[1], + useSingleInferredProject: arguments[2], + typingsInstaller: arguments[3], + byteLength: arguments[4], + hrtime: arguments[5], + logger: arguments[6], + canUseEvents: arguments[7], + eventHandler: arguments[8], + throttleWaitMilliseconds: arguments[9] + }; + } this.host = opts.host; this.cancellationToken = opts.cancellationToken; this.typingsInstaller = opts.typingsInstaller; diff --git a/lib/typescript.d.ts b/lib/typescript.d.ts index ee2e324119658..98f951b58f217 100644 --- a/lib/typescript.d.ts +++ b/lib/typescript.d.ts @@ -2515,7 +2515,7 @@ declare namespace ts { } declare namespace ts { /** The version of the TypeScript compiler release */ - const version = "2.3.1"; + const version = "2.3.2"; } declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; declare function clearTimeout(handle: any): void; diff --git a/lib/typescript.js b/lib/typescript.js index ee99953790cc0..40ab60cd3d9fc 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -1256,7 +1256,7 @@ var ts; var ts; (function (ts) { /** The version of the TypeScript compiler release */ - ts.version = "2.3.1"; + ts.version = "2.3.2"; })(ts || (ts = {})); /* @internal */ (function (ts) { diff --git a/lib/typescriptServices.d.ts b/lib/typescriptServices.d.ts index e6dab7293ab2f..8bf49a21df29b 100644 --- a/lib/typescriptServices.d.ts +++ b/lib/typescriptServices.d.ts @@ -2515,7 +2515,7 @@ declare namespace ts { } declare namespace ts { /** The version of the TypeScript compiler release */ - const version = "2.3.1"; + const version = "2.3.2"; } declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; declare function clearTimeout(handle: any): void; diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index ee99953790cc0..40ab60cd3d9fc 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -1256,7 +1256,7 @@ var ts; var ts; (function (ts) { /** The version of the TypeScript compiler release */ - ts.version = "2.3.1"; + ts.version = "2.3.2"; })(ts || (ts = {})); /* @internal */ (function (ts) { diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index df228288c22f3..80d869a26a0bb 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -152,7 +152,7 @@ var ts; })(ts || (ts = {})); var ts; (function (ts) { - ts.version = "2.3.1"; + ts.version = "2.3.2"; })(ts || (ts = {})); (function (ts) { ts.collator = typeof Intl === "object" && typeof Intl.Collator === "function" ? new Intl.Collator(undefined, { usage: "sort", sensitivity: "accent" }) : undefined;