Skip to content

Commit

Permalink
Add an indicator for the current window
Browse files Browse the repository at this point in the history
  • Loading branch information
heycalmdown committed Oct 1, 2016
1 parent 602155b commit bcfc586
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vs/workbench/electron-browser/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ export class SwitchWindow extends Action {
}

public run(): TPromise<boolean> {
ipc.send('vscode:switchWindow', this.windowService.getWindowId());
const id = this.windowService.getWindowId();
ipc.send('vscode:switchWindow', id);
ipc.once('vscode:switchWindow', (event, workspaces) => {
const picks: IPickOpenEntry[] = workspaces.map(w => {
return {
label: w.title,
label: (id === w.id) && `${w.title} ✓` || w.title,
run: () => {
ipc.send('vscode:showWindow', w.id);
}
Expand Down

0 comments on commit bcfc586

Please sign in to comment.