mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-03 15:33:13 +03:00
Fix "open in vscode" context menu
This commit is contained in:
parent
b101c1db58
commit
308edbe1b9
@ -39,7 +39,7 @@
|
|||||||
expanded: boolean;
|
expanded: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
let popupMenu = new HunkContextMenu({
|
const popupMenu = new HunkContextMenu({
|
||||||
target: document.body,
|
target: document.body,
|
||||||
props: { projectPath, file, branchController }
|
props: { projectPath, file, branchController }
|
||||||
});
|
});
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{#if item.lineNumber}
|
{#if item.lineNumber}
|
||||||
<PopupMenuItem
|
<PopupMenuItem
|
||||||
disabled={!!projectPath}
|
disabled={!projectPath}
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
projectPath && open(`vscode://file${projectPath}/${file.path}:${item.lineNumber}`)}
|
projectPath && open(`vscode://file${projectPath}/${file.path}:${item.lineNumber}`)}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user