fix: absolute path joins with normalized vscodepath for Windows campatibility

This commit is contained in:
TheGB0077 2024-06-05 12:35:59 -03:00
parent 3358e0ebf3
commit 0abe2c2c9f
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@
try {
if (!project) return;
for (let file of item.files) {
const absPath = await join(project.path, file.path);
const absPath = await join(project.vscodePath, file.path);
open(`${editor.get()}://file${absPath}`);
}
dismiss();

View File

@ -17,7 +17,7 @@
const unsubscribeOpenInVSCode = listen<string>(
'menu://project/open-in-vscode/clicked',
async () => {
const path = `${editor.get()}://file${project.path}`;
const path = `${editor.get()}://file${project.vscodePath}`;
open(path);
}
);