This commit is contained in:
Sandeep Somavarapu
2018-04-25 10:47:05 +02:00
parent 1fbff4ea95
commit f6a0f9779a

View File

@@ -101,7 +101,7 @@ function getViewLocation(value: string): ViewLocation {
case 'explorer': return ViewLocation.Explorer;
case 'debug': return ViewLocation.Debug;
case 'scm': return ViewLocation.SCM;
default: return ViewLocation.get(`workbench.view.extension.${value}`) || ViewLocation.Explorer;
default: return ViewLocation.get(`workbench.view.extension.${value}`);
}
}
@@ -115,7 +115,11 @@ ExtensionsRegistry.registerExtensionPoint<{ [loc: string]: schema.IUserFriendlyV
return;
}
const location = getViewLocation(entry.key);
let location = getViewLocation(entry.key);
if (!location) {
collector.warn(localize('ViewContainerDoesnotExist', "View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.", entry.key));
location = ViewLocation.Explorer;
}
const registeredViews = ViewsRegistry.getViews(location);
const viewIds = [];
const viewDescriptors = coalesce(entry.value.map(item => {