File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1536,7 +1536,7 @@ ${contents}
15361536 }
15371537
15381538 const editorUri = editor . document . uri ;
1539- if ( input . original . scheme !== Schemes . Review ) {
1539+ if ( ( input . original . scheme !== Schemes . Review ) && ( input . original . scheme !== Schemes . Pr ) ) {
15401540 return vscode . window . showErrorMessage ( vscode . l10n . t ( 'Current file isn\'t a pull request diff.' ) ) ;
15411541 }
15421542
@@ -1559,6 +1559,10 @@ ${contents}
15591559 }
15601560 }
15611561
1562+ if ( input . original . scheme === Schemes . Pr ) {
1563+ return vscode . window . showInformationMessage ( vscode . l10n . t ( 'No more diffs in this file. Check out the pull request to use this command across files.' ) ) ;
1564+ }
1565+
15621566 // There is no new range to reveal, time to go to the next file.
15631567 const folderManager = reposManager . getManagerForFile ( editorUri ) ;
15641568 if ( ! folderManager ) {
You can’t perform that action at this time.
0 commit comments