Removing logs/comments

This commit is contained in:
Daniel Imms 2021-05-13 05:33:52 -07:00
parent e1dba2ac02
commit c3bdf6c825
2 changed files with 0 additions and 11 deletions

View file

@ -149,7 +149,6 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
// If either shell or shellArgs are specified, they will take priority for now until we
// allow users to migrate, see https://github.com/microsoft/vscode/issues/123171
const shellSettingProfile = await this._getUnresolvedShellSettingDefaultProfile(options);
console.log('shellSettingProfile', shellSettingProfile);
if (shellSettingProfile) {
return shellSettingProfile;
}
@ -158,7 +157,6 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
// if the window just opened
await this._terminalService.profilesReady;
const defaultProfile = this._getUnresolvedRealDefaultProfile(options.os);
console.log('defaultProfile', defaultProfile);
if (defaultProfile) {
return defaultProfile;
}
@ -170,9 +168,7 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
private _getUnresolvedRealDefaultProfile(os: OperatingSystem): ITerminalProfile | undefined {
const defaultProfileName = this.getSafeConfigValue('defaultProfile', os);
console.log('defaultProfileName', defaultProfileName);
if (defaultProfileName && typeof defaultProfileName === 'string') {
console.log('this._terminalService.availableProfiles', this._terminalService.availableProfiles);
return this._terminalService.availableProfiles.find(e => e.profileName === defaultProfileName);
}
return undefined;

View file

@ -332,7 +332,6 @@ export class TerminalService implements ITerminalService {
@throttle(10000)
private async _refreshAvailableProfiles(): Promise<void> {
const result = await this._detectProfiles(true);
console.log('detectProfiles result', result);
if (!equals(result, this._availableProfiles)) {
this._availableProfiles = result;
this._onDidChangeAvailableProfiles.fire(this._availableProfiles);
@ -343,18 +342,12 @@ export class TerminalService implements ITerminalService {
// TODO: Invert arg
private async _detectProfiles(configuredProfilesOnly: boolean): Promise<ITerminalProfile[]> {
const offProcService = this._offProcessTerminalService;
console.log('offProcService?', offProcService);
if (!offProcService) {
return this._availableProfiles || [];
}
return offProcService?.getProfiles(!configuredProfilesOnly);
}
// private async _whenExtHostReady(remoteAuthority: string): Promise<void> {
// this._createExtHostReadyEntry(remoteAuthority);
// return this._extHostsReady[remoteAuthority]!.promise;
// }
private _createExtHostReadyEntry(remoteAuthority: string): void {
if (this._extHostsReady[remoteAuthority]) {
return;