Skip to content

Commit

Permalink
Merge pull request #13113 from heycalmdown/current-indicator
Browse files Browse the repository at this point in the history
Add an indicator for the current window
  • Loading branch information
bpasero committed Oct 3, 2016
2 parents faba41c + e8c8407 commit 1ca9b45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/electron-browser/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ 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,
description: (id === w.id) ? nls.localize('current', "Current Window") : void 0,
run: () => {
ipc.send('vscode:showWindow', w.id);
}
Expand Down

0 comments on commit 1ca9b45

Please sign in to comment.