Remove n-arg version of dispose

This overload was not heavily used and added complexity
This commit is contained in:
Matt Bierner
2019-06-04 15:12:38 -07:00
parent 6b7b5c0e0c
commit a1c5ded681
6 changed files with 24 additions and 23 deletions

View File

@@ -90,7 +90,8 @@ export class MainThreadMessageService implements MainThreadMessageServiceShape {
// if promise has not been resolved yet, now is the time to ensure a return value
// otherwise if already resolved it means the user clicked one of the buttons
Event.once(messageHandle.onDidClose)(() => {
dispose(...primaryActions, ...secondaryActions);
dispose(primaryActions);
dispose(secondaryActions);
resolve(undefined);
});
});