feat: add file manager context actions (#3027)
* feat(app): add file manager context actions * fix: reshape file context actions --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
This commit is contained in:
co-authored by
Mohamed Boudra
parent
a98d154b6b
commit
ca2b633286
@@ -32,3 +32,8 @@ export function buildAbsoluteExplorerPath({
|
||||
|
||||
return `${normalizedWorkspaceRoot}${separator}${segments.join(separator)}`;
|
||||
}
|
||||
|
||||
export function parentExplorerPath(entryPath: string): string {
|
||||
const separatorIndex = entryPath.lastIndexOf("/");
|
||||
return separatorIndex > 0 ? entryPath.slice(0, separatorIndex) : ".";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user