Show error notification when profile fails

This commit is contained in:
Daniel Imms
2021-06-11 05:15:35 -07:00
parent a742a9bbe8
commit 9677eddbff
2 changed files with 8 additions and 4 deletions

View File

@@ -602,7 +602,7 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
if (token.isCancellationRequested) {
return;
}
if (!profile) {
if (!profile || !('options' in profile)) {
throw new Error(`No terminal profile options provided for id "${id}"`);
}
if ('pty' in profile.options) {