Skip to content

Commit

Permalink
fix #42602
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Mar 29, 2018
1 parent d689094 commit aec9a5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/api/node/extHostDecorations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export class ExtHostDecorations implements ExtHostDecorationsShape {
return TPromise.join(requests.map(request => {
const { handle, uri, id } = request;
const provider = this._provider.get(handle);
if (!provider) {
// might have been unregistered in the meantime
return void 0;
}
return asWinJsPromise(token => provider.provideDecoration(URI.revive(uri), token)).then(data => {
result[id] = data && <DecorationData>[data.priority, data.bubble, data.title, data.abbreviation, data.color, data.source];
}, err => {
Expand Down

0 comments on commit aec9a5e

Please sign in to comment.