mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 02:58:31 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
'use strict';
|
||||
|
||||
import { TPromise, ValueCallback, ErrorCallback } from 'vs/base/common/winjs.base';
|
||||
import { onUnexpectedError } from 'vs/base/common/errors';
|
||||
|
||||
export class LazyPromise {
|
||||
|
||||
@@ -75,6 +76,10 @@ export class LazyPromise {
|
||||
|
||||
if (this._actual) {
|
||||
this._actualErr(err);
|
||||
} else {
|
||||
// If nobody's listening at this point, it is safe to assume they never will,
|
||||
// since resolving this promise is always "async"
|
||||
onUnexpectedError(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user