Skip to content

Commit

Permalink
fix(vscode): fix pr 3738.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Jan 21, 2025
1 parent 812a622 commit 6ed0f05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/vscode/src/chat/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export function localUriToChatPanelFilepath(uri: Uri, gitProvider: GitProvider):
localUri = convertFromNotebookCellUri(localUri);
}

const uriFilePath = uri.toString(true);
const workspaceFolder = workspace.getWorkspaceFolder(uri);
const uriFilePath = localUri.toString(true);
const workspaceFolder = workspace.getWorkspaceFolder(localUri);

let repo = gitProvider.getRepository(uri);
let repo = gitProvider.getRepository(localUri);
if (!repo && workspaceFolder) {
repo = gitProvider.getRepository(workspaceFolder.uri);
}
Expand Down

0 comments on commit 6ed0f05

Please sign in to comment.