We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad74445 commit 3e1c44eCopy full SHA for 3e1c44e
src/commands.ts
@@ -899,9 +899,6 @@ export function registerCommands(
899
throw new Error(vscode.l10n.t('Git worktree API is not available. Please update VS Code to the latest version.'));
900
}
901
902
- // Store reference to ensure type narrowing
903
- const createWorktree = repositoryToUse.createWorktree;
904
-
905
// Create the worktree with progress
906
await vscode.window.withProgress(
907
{
@@ -910,7 +907,7 @@ export function registerCommands(
910
},
911
908
async () => {
912
909
// Use the git extension's createWorktree API
913
- await createWorktree({
+ await repositoryToUse.createWorktree!({
914
path: worktreePath,
915
commitish: trackedBranchName,
916
branch: branchName
0 commit comments