Clean up #11936
This commit is contained in:
parent
ba777300c9
commit
32ddfd5688
|
@ -21,7 +21,7 @@ import { IEditorRegistry, Extensions as EditorExtensions } from 'vs/workbench/co
|
|||
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
|
||||
import { VIEWLET_ID, IExtensionsWorkbenchService } from './extensions';
|
||||
import { ExtensionsWorkbenchService } from './extensionsWorkbenchService';
|
||||
import { OpenExtensionsViewletAction, InstallExtensionsAction, ShowOutdatedExtensionsAction, ShowRecommendedExtensionsAction, ShowWorkspaceRecommendedExtensionsAction, ShowPopularExtensionsAction, ShowInstalledExtensionsAction, UpdateAllAction, OpenExtensionsFolderAction, ConfigureWorkspaceRecommendationsAction } from './extensionsActions';
|
||||
import { OpenExtensionsViewletAction, InstallExtensionsAction, ShowOutdatedExtensionsAction, ShowRecommendedExtensionsAction, ShowWorkspaceRecommendedExtensionsAction, ShowPopularExtensionsAction, ShowInstalledExtensionsAction, UpdateAllAction, OpenExtensionsFolderAction, ConfigureWorkspaceRecommendedExtensionsAction } from './extensionsActions';
|
||||
import { ExtensionsInput } from './extensionsInput';
|
||||
import { ViewletRegistry, Extensions as ViewletExtensions, ViewletDescriptor } from 'vs/workbench/browser/viewlet';
|
||||
import { ExtensionEditor } from './extensionEditor';
|
||||
|
@ -121,7 +121,7 @@ actionRegistry.registerWorkbenchAction(updateAllActionDescriptor, 'Extensions: U
|
|||
const openExtensionsFolderActionDescriptor = new SyncActionDescriptor(OpenExtensionsFolderAction, OpenExtensionsFolderAction.ID, OpenExtensionsFolderAction.LABEL);
|
||||
actionRegistry.registerWorkbenchAction(openExtensionsFolderActionDescriptor, 'Extensions: Open Extensions Folder', ExtensionsLabel);
|
||||
|
||||
const openExtensionsFileActionDescriptor = new SyncActionDescriptor(ConfigureWorkspaceRecommendationsAction, ConfigureWorkspaceRecommendationsAction.ID, ConfigureWorkspaceRecommendationsAction.LABEL);
|
||||
const openExtensionsFileActionDescriptor = new SyncActionDescriptor(ConfigureWorkspaceRecommendedExtensionsAction, ConfigureWorkspaceRecommendedExtensionsAction.ID, ConfigureWorkspaceRecommendedExtensionsAction.LABEL);
|
||||
actionRegistry.registerWorkbenchAction(openExtensionsFileActionDescriptor, 'Extensions: Open Extensions File', ExtensionsLabel);
|
||||
|
||||
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
|
||||
|
|
|
@ -554,9 +554,9 @@ export class OpenExtensionsFolderAction extends Action {
|
|||
}
|
||||
}
|
||||
|
||||
export class ConfigureWorkspaceRecommendationsAction extends Action {
|
||||
static ID = 'workbench.extensions.action.configureWorkspaceRecommendations';
|
||||
static LABEL = localize('configureWorkspaceRecommendations', "Configure Worksapce Recommendations");
|
||||
export class ConfigureWorkspaceRecommendedExtensionsAction extends Action {
|
||||
static ID = 'workbench.extensions.action.configureWorkspaceRecommendedExtensions';
|
||||
static LABEL = localize('configureWorkspaceRecommendedExtensions', "Configure Workspace Recommended Extensions");
|
||||
|
||||
constructor(id: string, label: string, @IExtensionsWorkbenchService private extensionsService: IExtensionsWorkbenchService) {
|
||||
super(id, label, null, true);
|
||||
|
|
|
@ -232,7 +232,7 @@ export class ExtensionsViewlet extends Viewlet implements IExtensionsViewlet {
|
|||
}
|
||||
|
||||
if (/@recommended:workspace/i.test(query.value)) {
|
||||
return this.queryWorkspaceRecommendations();
|
||||
return this.queryWorkspaceRecommendedExtensions();
|
||||
}
|
||||
|
||||
if (/@recommended/i.test(query.value)) {
|
||||
|
@ -262,7 +262,7 @@ export class ExtensionsViewlet extends Viewlet implements IExtensionsViewlet {
|
|||
.then(result => new PagedModel(result));
|
||||
}
|
||||
|
||||
private queryWorkspaceRecommendations(): TPromise<PagedModel<IExtension>> {
|
||||
private queryWorkspaceRecommendedExtensions(): TPromise<PagedModel<IExtension>> {
|
||||
let names = this.tipsService.getWorkspaceRecommendations();
|
||||
if (!names.length) {
|
||||
return TPromise.as(new PagedModel([]));
|
||||
|
|
Loading…
Reference in a new issue