You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-blocking. I feel like this function could be 2 different functions for actions or extensions... or you `if` setting a couple variables instead and then return a common object:
constbuttons=[{iconClass: ThemeIcon.asClassName(Codicon.info),tooltip: localize('contributedIssuePage',"Open Extension Page")}];letlabel: string;lettrigger: THE_TRIGGER_TYPE;letaccept: THE_ACCEPT_TYPE;if(action ....){label=action.item.source?.title;trigger=()=>{this.commandService.executeCommand('extension.open',action.item.source.id);returnTriggerAction.CLOSE_PICKER;};accept=()=>action.run();}elseif(extension){label=extension.displayName??extension.name;trigger=()=>{this.commandService.executeCommand('extension.open',extension.identifier.value);returnTriggerAction.CLOSE_PICKER;};accept=()=>this.commandService.executeCommand('workbench.action.openIssueReporter',extension.identifier.value);}else{// could this ever happen?returnundefined;}return{
label,highlights: {label: matchesFuzzy(filter,label,true)},
buttons,
trigger,
accept
};
Originally posted by @TylerLeonhardt in #206303 (comment)
The text was updated successfully, but these errors were encountered: