File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 "meta.embedded.block.graphql" : " graphql"
7777 }
7878 }
79- ]
79+ ],
80+ "commands" : [{
81+ "command" : " apollographql/selectSchemaTag" ,
82+ "title" : " Select Schema Tag" ,
83+ "category" : " Apollo"
84+ }]
8085 }
8186}
Original file line number Diff line number Diff line change @@ -92,11 +92,10 @@ export function activate(context: ExtensionContext) {
9292 ) ;
9393
9494 schemaTags = [ ...quickPickItems , ...schemaTags ] ;
95- statusBar . enableClickHandler ( true ) ;
9695 }
9796 ) ;
9897
99- commands . registerCommand ( "launchSchemaTagPicker " , async ( ) => {
98+ commands . registerCommand ( "apollographql/selectSchemaTag " , async ( ) => {
10099 const selection = await window . showQuickPick ( schemaTags ) ;
101100 if ( selection ) {
102101 client . sendNotification ( "apollographql/tagSelected" , selection ) ;
Original file line number Diff line number Diff line change @@ -20,13 +20,6 @@ export default class ApolloStatusBar {
2020 this . statusBarItem . show ( ) ;
2121 }
2222
23- public enableClickHandler ( isEnabled : boolean ) {
24- this . statusBarItem . tooltip = isEnabled ? "Select schema tag" : undefined ;
25- this . statusBarItem . command = isEnabled
26- ? "launchSchemaTagPicker"
27- : undefined ;
28- }
29-
3023 public dispose ( ) {
3124 this . statusBarItem . dispose ( ) ;
3225 }
You can’t perform that action at this time.
0 commit comments