mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
1.0
This commit is contained in:
parent
ad61b15585
commit
ef359fa044
8 changed files with 60 additions and 62 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue