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
{{ message }}
Repository navigation
Execute revealFileInOS on TreeItem will use current focused file's URI #87804
This is a regression bug after 0dbe568 which fixes #86103:
exportfunctiongetMultiSelectedResources(resource: URI|object|undefined,listService: IListService,editorService: IEditorService,explorerService: IExplorerService): Array<URI>{constlist=listService.lastFocusedList;if(list?.getHTMLElement()===document.activeElement){// Explorerif(listinstanceofAsyncDataTree){// <-- TreeView List will also fall into this block!// Explorerconstcontext=explorerService.getContext(true);if(context.length){returncontext.map(c=>c.resource);}}
When executing getMultiSelectedResources with listService derived from TreeView, if will fall into the logic which only handles FileExplorer, causing the returned resource to be the currently focused file's uri.
Steps to Reproduce:
Consider a java-dependency-viewer treeview:
Execute Reveal In Explorer on a jar file, which will forward jar file's uri to revealFileInOS command.
On older versions, it will work as expected, but in insider version and the newly released version, it will open the folder containing the currently focused file.
VS Code version: Code 1.41.0 (9579eda, 2019-12-11T18:32:17.711Z)
OS version: Linux x64 4.15.0
Vigilans (@Vigilans) vscode insiders from next week will contain your fix. Just let us know if the issue gets resolved for you so we can verify this issue. Thank you
Activity
Fix #87804
isidorn commentedon Dec 30, 2019
Vigilans (@Vigilans) vscode insiders from next week will contain your fix. Just let us know if the issue gets resolved for you so we can verify this issue. Thank you
Vigilans commentedon Jan 7, 2020
Hi Isidor Nikolic (@isidorn), I confirmed that this issue has been resolved in new insider version, thank you!
isidorn commentedon Jan 8, 2020
Thank you, adding verified label.