Merge VS Code 1.31.1 (#4283)

This commit is contained in:
Matt Irvine
2019-03-15 13:09:45 -07:00
committed by GitHub
parent 7d31575149
commit 86bac90001
1716 changed files with 53308 additions and 48375 deletions

View File

@@ -3,7 +3,7 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Event, Emitter, mapEvent } from 'vs/base/common/event';
import { Event, Emitter } from 'vs/base/common/event';
export type EventHandler = HTMLElement | HTMLDocument | Window;
@@ -32,7 +32,7 @@ export interface CancellableEvent {
}
export function stop<T extends CancellableEvent>(event: Event<T>): Event<T> {
return mapEvent(event, e => {
return Event.map(event, e => {
e.preventDefault();
e.stopPropagation();
return e;