window indicator: based on workspace config file location. For #119752

This commit is contained in:
Martin Aeschlimann 2021-03-24 12:03:11 +01:00
parent 771b0192f4
commit 47f0413ea2

View file

@ -247,9 +247,9 @@ export class RemoteStatusIndicator extends Disposable implements IWorkbenchContr
private getWorkspaceLabel() {
const workspace = this.workspaceContextService.getWorkspace();
const firstFolderUri = workspace.folders.length === 1 ? workspace.folders[0].uri : undefined;
if (firstFolderUri) {
return this.labelService.getHostLabel(firstFolderUri.scheme, firstFolderUri.authority);
const workspaceLocation = workspace.configuration || (workspace.folders.length === 1 ? workspace.folders[0].uri : undefined);
if (workspaceLocation) {
return this.labelService.getHostLabel(workspaceLocation.scheme, workspaceLocation.authority);
}
return undefined;