This commit is contained in:
Martin Aeschlimann 2016-06-23 11:49:17 +02:00
parent ad61b15585
commit ef359fa044
8 changed files with 60 additions and 62 deletions

View file

@ -78,7 +78,7 @@ export class WorkerManager {
}
getLanguageServiceWorker(...resources: Uri[]): Promise<CSSWorker> {
let _client:CSSWorker;
let _client: CSSWorker;
return toShallowCancelPromise(
this._getClient().then((client) => {
_client = client
@ -89,9 +89,9 @@ export class WorkerManager {
}
}
function toShallowCancelPromise<T>(p:Promise<T>): Promise<T> {
let completeCallback: (value:T)=>void;
let errorCallback: (err:any)=>void;
function toShallowCancelPromise<T>(p: Promise<T>): Promise<T> {
let completeCallback: (value: T) => void;
let errorCallback: (err: any) => void;
let r = new Promise<T>((c, e) => {
completeCallback = c;