mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
promise: make sure as() returns promise like and fix errors
This commit is contained in:
@@ -54,12 +54,12 @@ export class MainThreadTask implements MainThreadTaskShape {
|
||||
}
|
||||
});
|
||||
this._activeHandles[handle] = true;
|
||||
return TPromise.as<void>(undefined);
|
||||
return TPromise.wrap<void>(undefined);
|
||||
}
|
||||
|
||||
public $unregisterTaskProvider(handle: number): TPromise<any> {
|
||||
this._taskService.unregisterTaskProvider(handle);
|
||||
delete this._activeHandles[handle];
|
||||
return TPromise.as<void>(undefined);
|
||||
return TPromise.wrap<void>(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user