This commit is contained in:
meganrogge 2021-05-13 10:15:12 -07:00
parent 7f6e9538c6
commit 005b8b8d2c
No known key found for this signature in database
GPG key ID: 3155C8B2F0428C81

View file

@ -117,8 +117,7 @@ export class ExternalTerminalContribution extends Disposable implements IWorkben
this._openInTerminalMenuItem.command.title = nls.localize('scopedConsoleAction.integrated', "Open in Integrated Terminal");
return;
}
if (isWindows && config.external.windowsExec) {
if (isWindows && config.external?.windowsExec) {
const file = basename(config.external.windowsExec);
if (file === 'wt' || file === 'wt.exe') {
this._openInTerminalMenuItem.command.title = nls.localize('scopedConsoleAction.wt', "Open in Windows Terminal");