This commit is contained in:
Austin Warren 2019-07-24 17:09:08 -07:00
parent 2848f9f257
commit 2acda3be5f

View File

@ -35,9 +35,9 @@ export class NewTabContextMenu extends TerminalContextMenuItemProvider {
submenu: profiles.map(profile => ({ submenu: profiles.map(profile => ({
label: profile.name, label: profile.name,
click: () => this.zone.run(async () => { click: () => this.zone.run(async () => {
const workingDirectory = this.config.store.terminal.alwaysUseWorkingDirectory ? const workingDirectory = this.config.store.terminal.alwaysUseWorkingDirectory === true ?
this.config.store.terminal.workingDirectory : await tab.session.getWorkingDirectory(); this.config.store.terminal.workingDirectory : await tab.session.getWorkingDirectory()
this.terminalService.openTab(profile, workingDirectory); await this.terminalService.openTab(profile, workingDirectory)
}), }),
})), })),
}, },