mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-10-06 00:47:09 +03:00
fix: absolute path joins with normalized vscodepath for Windows campatibility
This commit is contained in:
parent
3358e0ebf3
commit
0abe2c2c9f
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user