fix subtree path on windows
This commit is contained in:
1 parent
2e5c08b2ad
commit
809f8c1461
2 files changed
+2
-2
No files matched your search
@@ -89,7 +89,7 @@ export const Inspector: FC = () => {
|
||||
const subtreeOptions = useMemo(() => {
|
||||
const options: OptionType[] = [];
|
||||
workspace.allFiles.forEach((path) => {
|
||||
const value = Path.relative(workspace.fileTree!.path, path);
|
||||
const value = Path.relative(workspace.fileTree!.path, path).replaceAll(Path.sep, "/");
|
||||
const desc = ""; //fileNode.desc ? `(${fileNode.desc})` : "";
|
||||
options.push({
|
||||
label: `${value}${desc}`,
|
||||
|
||||
Reference in new issue
Block a user