Fix "open in vscode" context menu

This commit is contained in:
Mattias Granlund 2023-11-08 17:32:25 +01:00
parent b101c1db58
commit 308edbe1b9
2 changed files with 2 additions and 2 deletions

View File

@ -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 }
}); });

View File

@ -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}`)}
> >