Skip to content

Commit

Permalink
add workaround for #10442
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 29, 2017
1 parent 5a7b500 commit 5d79ec8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/code/electron-main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,11 @@ export class CodeWindow implements ICodeWindow {
this.touchBarGroups.push(groupTouchBar);
}

// Ugly workaround for native crash on macOS 10.12.1. We are not
// leveraging the API for changing the ESC touch bar item.
// See https://github.com/electron/electron/issues/10442
(<any>this._win)._setEscapeTouchBarItem = () => { };

this._win.setTouchBar(new TouchBar({ items: this.touchBarGroups }));
}

Expand Down

0 comments on commit 5d79ec8

Please sign in to comment.