Change:
} }); <ins> CommandsRegistry.registerCommand({ id: Constants.RevealInSideBarForSearchResults, handler: (accessor, fileMatch: FileMatch) => { const viewletService = accessor.get(IViewletService); const explorerService = accessor.get(IExplorerService); const contextService = accessor.get(IWorkspaceContextService); const uri = fileMatch.resource(); viewletService.openViewlet(VIEWLET_ID_FILES, false).then((viewlet: ExplorerViewlet) => { if (uri && contextService.isInsideWorkspace(uri)) { const explorerView = viewlet.getExplorerView(); if (explorerView) { explorerView.setExpanded(true); explorerService.select(uri, true).then(() => explorerView.focus(), onUnexpectedError); } } }); } }); const RevealInSideBarForSearchResultsCommand: ICommandAction = { id: Constants.RevealInSideBarForSearchResults, title: nls.localize('revealInSideBar', "Reveal in Explorer") }; MenuRegistry.appendMenuItem(MenuId.SearchContext, { command: RevealInSideBarForSearchResultsCommand, when: ContextKeyExpr.and(Constants.FileFocusKey, Constants.HasSearchResults), group: '2_files', }); </ins> MenuRegistry.appendMenuItem(MenuId.SearchContext, { command: { id: Constants.ReplaceActionId,

Discussion:
Being able to interact with the files that appear in would be useful. A few examples that come to mind: file matched by search. Clicking the file in the search result and then pressing does not work. Right-clicking the file does not show the command. Right-clicking the file does not show (where the file could be renamed). The only option I've found is to click one of the matches to open the file, right click the tab, select and rename the file using the side bar ( or right-click). file matched by search. multiple files matched by search. multiple files from the search result. two files matched by search. When right-clicking a file in , I think all the options that are shown when right-clicking a file in should be shown. Then any options by extensions would also be available. The keyboard shortcuts and should probably keep their current behavior. Also, it should be possible to select multiple files, similar to in .
(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like: <!-- score: 0.47 --<!-- potentialduplicatescomment --
, can we take this up separately ? ( Like rename , delete etc ) I would like to work on that if that is the case. Please let me know , Thanks :)
I think a "reveal in explorer" command for search results would be really useful and I would take a PR for that. But I don't want to replicate all the the other commands and functionality of the explorer.
Just adding "Reveal in Explorer" goes a long way :) I've created a different feature request for allowing selecting multiple files:
To be consistent the command should be called ! Also I do not understand the logic why it is at the top. Is not this after copy commands?
, The command was called "Reveal in Side Bar" but preferred "Reveal in Explorer". Also i can change the position and add it where ever you both suggest, Thanks :)
You're already looking at the side bar, so I don't think "Reveal in side bar" makes sense. I don't really like it for the tab context menu either, I think we should be more specific. Also I agree, I think it should be at the bottom, not the top