diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 7194bd88817..e32b6cc553a 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -702,7 +702,7 @@ export class CommandCenter { const document = window.activeTextEditor?.document; // If the document doesn't match what we opened then don't attempt to select the range - if (document?.uri !== uri) { + if (document?.uri.toString() !== uri.toString()) { continue; }