Add completion, browser integration, and workspace improvements
This commit is contained in:
@@ -559,7 +559,20 @@
|
||||
|
||||
function menuItems(entry: TreeEntry | null): MenuItem[] {
|
||||
if (!entry) {
|
||||
return paneMenuItems("");
|
||||
return [
|
||||
...paneMenuItems(""),
|
||||
{ kind: "sep" },
|
||||
{
|
||||
kind: "action",
|
||||
label: "Show in Explorer",
|
||||
icon: "folder",
|
||||
run: () => {
|
||||
void workspaceReveal("").catch((err) => {
|
||||
error = err instanceof Error ? err.message : String(err);
|
||||
});
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
const entries = actionEntries(entry, selection.paths, visiblePaths, findEntry);
|
||||
const multiple = entries.length > 1;
|
||||
|
||||
Reference in New Issue
Block a user