parent
0dfe96e423
commit
8adb9e72c7
|
@ -929,12 +929,10 @@ export class TerminalService implements ITerminalService {
|
|||
// Await the initialization of available profiles as long as this is not a pty terminal or a
|
||||
// local terminal in a remote workspace as profile won't be used in those cases and these
|
||||
// terminals need to be launched before remote connections are established.
|
||||
if (!this._terminalProfileService.availableProfiles) {
|
||||
const isPtyTerminal = options?.config && 'customPtyImplementation' in options.config;
|
||||
const isLocalInRemoteTerminal = this._remoteAgentService.getConnection() && URI.isUri(options?.cwd) && options?.cwd.scheme === Schemas.vscodeFileResource;
|
||||
if (!isPtyTerminal && !isLocalInRemoteTerminal) {
|
||||
await this._terminalProfileService.refreshAvailableProfiles();
|
||||
}
|
||||
const isPtyTerminal = options?.config && 'customPtyImplementation' in options.config;
|
||||
const isLocalInRemoteTerminal = this._remoteAgentService.getConnection() && URI.isUri(options?.cwd) && options?.cwd.scheme === Schemas.vscodeFileResource;
|
||||
if (!isPtyTerminal && !isLocalInRemoteTerminal) {
|
||||
await this._terminalProfileService.profilesReady;
|
||||
}
|
||||
|
||||
const config = options?.config || this._terminalProfileService.availableProfiles?.find(p => p.profileName === this._terminalProfileService.getDefaultProfileName());
|
||||
|
|
Loading…
Reference in New Issue