You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if the code respected the special var: ${workspacefolder}/ in the path so we can keep the worktrees local to the repos. What do you think?
I'm not a ts code programmer. This was generated by chatgpt but sth like:
export const calculateNewWorktreePathNew = async (workspaceFolder, branch) => {
try {
// Resolve ${workspaceFolder} if present in the input path
if (workspaceFolder.includes('${workspaceFolder}')) {
const resolvedWorkspaceFolder = vscode.workspace.workspaceFolders?.[0].uri.fsPath;
if (resolvedWorkspaceFolder) {
workspaceFolder = workspaceFolder.replace('${workspaceFolder}', resolvedWorkspaceFolder);
} else {
throw new Error('Workspace folder could not be resolved.');
}
}
...
The text was updated successfully, but these errors were encountered:
Could you please provide details on how you currently use ${workspaceFolder}, the issues you are encountering with this setup, and specific examples of how you would like it to work in the desired implementation? Any additional insights into your workflow and needs would be helpful.
It would be nice if the code respected the special var: ${workspacefolder}/ in the path so we can keep the worktrees local to the repos. What do you think?
I'm not a ts code programmer. This was generated by chatgpt but sth like:
The text was updated successfully, but these errors were encountered: