@@ -21,7 +21,6 @@ import type { CodeLensConfig, CodeLensLanguageScope } from '../config';
2121import { CodeLensCommand } from '../config' ;
2222import { trackableSchemes } from '../constants' ;
2323import type { GlCommands } from '../constants.commands' ;
24- import { GlCommand } from '../constants.commands' ;
2524import type { Container } from '../container' ;
2625import type { GitUri } from '../git/gitUri' ;
2726import type { GitBlame } from '../git/models/blame' ;
@@ -617,7 +616,7 @@ function applyDiffWithPreviousCommand<T extends GitRecentChangeCodeLens | GitAut
617616 commit : GitCommit | undefined ,
618617) : T {
619618 lens . command = createCommand < [ undefined , DiffWithPreviousCommandArgs ] > (
620- GlCommand . DiffWithPrevious ,
619+ 'gitlens.diffWithPrevious' ,
621620 title ,
622621 undefined ,
623622 {
@@ -634,7 +633,7 @@ function applyCopyOrOpenCommitOnRemoteCommand<T extends GitRecentChangeCodeLens
634633 commit : GitCommit ,
635634 clipboard : boolean = false ,
636635) : T {
637- lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( GlCommand . OpenOnRemote , title , {
636+ lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( 'gitlens.openOnRemote' , title , {
638637 resource : {
639638 type : RemoteResourceType . Commit ,
640639 sha : commit . sha ,
@@ -651,7 +650,7 @@ function applyCopyOrOpenFileOnRemoteCommand<T extends GitRecentChangeCodeLens |
651650 commit : GitCommit ,
652651 clipboard : boolean = false ,
653652) : T {
654- lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( GlCommand . OpenOnRemote , title , {
653+ lens . command = createCommand < [ OpenOnRemoteCommandArgs ] > ( 'gitlens.openOnRemote' , title , {
655654 resource : {
656655 type : RemoteResourceType . Revision ,
657656 fileName : commit . file ?. path ?? '' ,
@@ -694,7 +693,7 @@ function applyShowCommitsInViewCommand<T extends GitRecentChangeCodeLens | GitAu
694693 }
695694
696695 lens . command = createCommand < [ ShowCommitsInViewCommandArgs ] > (
697- refs . length === 0 ? ( '' as GlCommands ) : GlCommand . ShowCommitsInView ,
696+ refs . length === 0 ? ( '' as GlCommands ) : 'gitlens.showCommitsInView' ,
698697 title ,
699698 {
700699 repoPath : blame . repoPath ,
0 commit comments