@@ -2,7 +2,7 @@ import type { QuickInputButton, QuickPickItem, Uri } from 'vscode';
22import { InputBoxValidationSeverity , QuickInputButtons , ThemeIcon , window } from 'vscode' ;
33import { GlyphChars } from '../../constants' ;
44import type { Container } from '../../container' ;
5- import { reveal , showDetailsView } from '../../git/actions/stash' ;
5+ import { revealStash , showStashInDetailsView } from '../../git/actions/stash' ;
66import { StashApplyError , StashApplyErrorReason , StashPushError , StashPushErrorReason } from '../../git/errors' ;
77import type { GitStashCommit } from '../../git/models/commit' ;
88import type { GitStashReference } from '../../git/models/reference' ;
@@ -408,15 +408,9 @@ export class StashGitCommand extends QuickCommand<State> {
408408 additionalButtons : [ ShowDetailsViewQuickInputButton , RevealInSideBarQuickInputButton ] ,
409409 onDidClickButton : ( _quickpick , button ) => {
410410 if ( button === ShowDetailsViewQuickInputButton ) {
411- void showDetailsView ( state . reference , {
412- pin : false ,
413- preserveFocus : true ,
414- } ) ;
411+ void showStashInDetailsView ( state . reference , { pin : false , preserveFocus : true } ) ;
415412 } else if ( button === RevealInSideBarQuickInputButton ) {
416- void reveal ( state . reference , {
417- select : true ,
418- expand : true ,
419- } ) ;
413+ void revealStash ( state . reference , { select : true , expand : true } ) ;
420414 }
421415 } ,
422416 } ,
@@ -860,15 +854,9 @@ export class StashGitCommand extends QuickCommand<State> {
860854 additionalButtons : [ ShowDetailsViewQuickInputButton , RevealInSideBarQuickInputButton ] ,
861855 onDidClickButton : ( _quickpick , button ) => {
862856 if ( button === ShowDetailsViewQuickInputButton ) {
863- void showDetailsView ( state . reference , {
864- pin : false ,
865- preserveFocus : true ,
866- } ) ;
857+ void showStashInDetailsView ( state . reference , { pin : false , preserveFocus : true } ) ;
867858 } else if ( button === RevealInSideBarQuickInputButton ) {
868- void reveal ( state . reference , {
869- select : true ,
870- expand : true ,
871- } ) ;
859+ void revealStash ( state . reference , { select : true , expand : true } ) ;
872860 }
873861 } ,
874862 } ,
0 commit comments