@@ -68,7 +68,7 @@ export function addCommands(
68
68
main . dispose ( ) ;
69
69
}
70
70
} ,
71
- isVisible : ( ) => model . pathRepository !== null
71
+ isEnabled : ( ) => model . pathRepository !== null
72
72
} ) ;
73
73
74
74
/** Add open/go to git interface command */
@@ -101,7 +101,7 @@ export function addCommands(
101
101
model . pathRepository = currentPath ;
102
102
}
103
103
} ,
104
- isVisible : ( ) => model . pathRepository === null
104
+ isEnabled : ( ) => model . pathRepository === null
105
105
} ) ;
106
106
107
107
/** Open URL externally */
@@ -135,7 +135,7 @@ export function addCommands(
135
135
commands . addCommand ( CommandIDs . gitAddRemote , {
136
136
label : 'Add remote repository' ,
137
137
caption : 'Add a Git remote repository' ,
138
- isVisible : ( ) => model . pathRepository !== null ,
138
+ isEnabled : ( ) => model . pathRepository !== null ,
139
139
execute : async args => {
140
140
if ( model . pathRepository === null ) {
141
141
console . warn ( 'Not in a Git repository. Unable to add a remote.' ) ;
@@ -174,8 +174,7 @@ export function addCommands(
174
174
execute : async ( ) => {
175
175
await doGitClone ( model , fileBrowser . model . path ) ;
176
176
fileBrowser . model . refresh ( ) ;
177
- } ,
178
- isVisible : ( ) => model . pathRepository === null
177
+ }
179
178
} ) ;
180
179
181
180
/**
@@ -224,7 +223,7 @@ export function addCommands(
224
223
commands . addCommand ( CommandIDs . gitPush , {
225
224
label : 'Push to Remote' ,
226
225
caption : 'Push code to remote repository' ,
227
- isVisible : ( ) => model . pathRepository !== null ,
226
+ isEnabled : ( ) => model . pathRepository !== null ,
228
227
execute : async ( ) => {
229
228
await showGitOperationDialog ( model , Operation . Push ) . catch ( reason => {
230
229
console . error (
@@ -238,7 +237,7 @@ export function addCommands(
238
237
commands . addCommand ( CommandIDs . gitPull , {
239
238
label : 'Pull from Remote' ,
240
239
caption : 'Pull latest code from remote repository' ,
241
- isVisible : ( ) => model . pathRepository !== null ,
240
+ isEnabled : ( ) => model . pathRepository !== null ,
242
241
execute : async ( ) => {
243
242
await showGitOperationDialog ( model , Operation . Pull ) . catch ( reason => {
244
243
console . error (
0 commit comments