File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2742
2742
{
2743
2743
"id" : " go.explorer" ,
2744
2744
"name" : " go" ,
2745
- "icon" : " media/go-logo-white.svg"
2745
+ "icon" : " media/go-logo-white.svg" ,
2746
+ "when" : " go.showExplorer"
2746
2747
}
2747
2748
],
2748
2749
"test" : [
Original file line number Diff line number Diff line change @@ -26,13 +26,14 @@ export class GoExplorerProvider implements vscode.TreeDataProvider<vscode.TreeIt
26
26
const provider = new this ( ) ;
27
27
const {
28
28
window : { registerTreeDataProvider } ,
29
- commands : { registerCommand }
29
+ commands : { registerCommand, executeCommand }
30
30
} = vscode ;
31
31
subscriptions . push ( registerTreeDataProvider ( 'go.explorer' , provider ) ) ;
32
32
subscriptions . push ( registerCommand ( 'go.explorer.refresh' , ( ) => provider . update ( true ) ) ) ;
33
33
subscriptions . push ( registerCommand ( 'go.explorer.open' , ( item ) => provider . open ( item ) ) ) ;
34
34
subscriptions . push ( registerCommand ( 'go.workspace.editEnv' , ( item ) => provider . editEnv ( item ) ) ) ;
35
35
subscriptions . push ( registerCommand ( 'go.workspace.resetEnv' , ( item ) => provider . resetEnv ( item ) ) ) ;
36
+ executeCommand ( 'setContext' , 'go.showExplorer' , true ) ;
36
37
return provider ;
37
38
}
38
39
You can’t perform that action at this time.
0 commit comments