diff --git a/src/vs/base/common/async.ts b/src/vs/base/common/async.ts index 0a60bfd340b3a5cebe93d1d0c5bdc91b2a5daea6..e55ddf7e9df85c0961734af97ebd7ec018af3036 100644 --- a/src/vs/base/common/async.ts +++ b/src/vs/base/common/async.ts @@ -346,6 +346,10 @@ export function always(promise: Thenable, callback: () => void): Promise(promise: Thenable): Thenable { + return promise.then(undefined, _ => undefined); +} + /** * Runs the provided list of promise factories in sequential order. The returned * promise will complete to an array of results from each promise.