@@ -19,7 +19,8 @@ import type { ToggleFileChangesAnnotationCommandArgs } from '../commands/toggleF
1919import type { CodeLensConfig , CodeLensLanguageScope } from '../config' ;
2020import { CodeLensCommand } from '../config' ;
2121import { trackableSchemes } from '../constants' ;
22- import { Commands } from '../constants.commands' ;
22+ import type { GlCommands } from '../constants.commands' ;
23+ import { GlCommand } from '../constants.commands' ;
2324import type { Container } from '../container' ;
2425import type { GitUri } from '../git/gitUri' ;
2526import type { GitBlame } from '../git/models/blame' ;
@@ -611,7 +612,7 @@ function applyDiffWithPreviousCommand<T extends GitRecentChangeCodeLens | GitAut
611612 commit : GitCommit | undefined ,
612613) : T {
613614 lens . command = createCommand < [ undefined , DiffWithPreviousCommandArgs ] > (
614- Commands . DiffWithPrevious ,
615+ GlCommand . DiffWithPrevious ,
615616 title ,
616617 undefined ,
617618 {
@@ -628,7 +629,7 @@ function applyCopyOrOpenCommitOnRemoteCommand<T extends GitRecentChangeCodeLens
628629 commit : GitCommit ,
629630 clipboard : boolean = false ,
630631) : T {
631- lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( Commands . OpenOnRemote , title , {
632+ lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( GlCommand . OpenOnRemote , title , {
632633 resource : {
633634 type : RemoteResourceType . Commit ,
634635 sha : commit . sha ,
@@ -645,7 +646,7 @@ function applyCopyOrOpenFileOnRemoteCommand<T extends GitRecentChangeCodeLens |
645646 commit : GitCommit ,
646647 clipboard : boolean = false ,
647648) : T {
648- lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( Commands . OpenOnRemote , title , {
649+ lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( GlCommand . OpenOnRemote , title , {
649650 resource : {
650651 type : RemoteResourceType . Revision ,
651652 fileName : commit . file ?. path ?? '' ,
@@ -688,7 +689,7 @@ function applyShowCommitsInViewCommand<T extends GitRecentChangeCodeLens | GitAu
688689 }
689690
690691 lens . command = createCommand < [ ShowCommitsInViewCommandArgs ] > (
691- refs . length === 0 ? ( '' as Commands ) : Commands . ShowCommitsInView ,
692+ refs . length === 0 ? ( '' as GlCommands ) : GlCommand . ShowCommitsInView ,
692693 title ,
693694 {
694695 repoPath : blame . repoPath ,
@@ -759,7 +760,7 @@ function applyToggleFileBlameCommand<T extends GitRecentChangeCodeLens | GitAuth
759760 title : string ,
760761 lens : T ,
761762) : T {
762- lens . command = createCommand < [ Uri ] > ( Commands . ToggleFileBlame , title , lens . uri ! . toFileUri ( ) ) ;
763+ lens . command = createCommand < [ Uri ] > ( GlCommand . ToggleFileBlame , title , lens . uri ! . toFileUri ( ) ) ;
763764 return lens ;
764765}
765766
@@ -770,7 +771,7 @@ function applyToggleFileChangesCommand<T extends GitRecentChangeCodeLens | GitAu
770771 only ?: boolean ,
771772) : T {
772773 lens . command = createCommand < [ Uri , ToggleFileChangesAnnotationCommandArgs ] > (
773- Commands . ToggleFileChanges ,
774+ GlCommand . ToggleFileChanges ,
774775 title ,
775776 lens . uri ! . toFileUri ( ) ,
776777 {
@@ -785,7 +786,7 @@ function applyToggleFileHeatmapCommand<T extends GitRecentChangeCodeLens | GitAu
785786 title : string ,
786787 lens : T ,
787788) : T {
788- lens . command = createCommand < [ Uri ] > ( Commands . ToggleFileHeatmap , title , lens . uri ! . toFileUri ( ) ) ;
789+ lens . command = createCommand < [ Uri ] > ( GlCommand . ToggleFileHeatmap , title , lens . uri ! . toFileUri ( ) ) ;
789790 return lens ;
790791}
791792
0 commit comments