Build VSCode using TS 2.4 (#30473)

* Build VSCode using TS 2.4.1

Fixes #28643

a

* Reformat a few files for 2.4

* Fix compile errors in jsoneditingservice
This commit is contained in:
Matt Bierner
2017-07-12 11:28:47 -07:00
committed by GitHub
parent a5f3583393
commit 5da27baff3
13 changed files with 32 additions and 30 deletions

View File

@@ -708,7 +708,7 @@ export class ExtHostLanguageFeatures extends ExtHostLanguageFeaturesShape {
return ExtHostLanguageFeatures._handlePool++;
}
private _withAdapter<A, R>(handle: number, ctor: { new (...args: any[]): A }, callback: (adapter: A) => TPromise<R>): TPromise<R> {
private _withAdapter<A, R>(handle: number, ctor: { new(...args: any[]): A }, callback: (adapter: A) => TPromise<R>): TPromise<R> {
let adapter = this._adapter.get(handle);
if (!(adapter instanceof ctor)) {
return TPromise.wrapError<R>(new Error('no adapter found'));