File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ async function main() {
5151 completionArgs . push ( '' ) ;
5252 }
5353
54+ if ( process . env . TAB_DEBUG ) {
55+ console . error ( 'COMPLETION ARGS:' , completionArgs ) ;
56+ }
57+
5458 if ( ! completionArgs ) {
5559 console . error ( `Error: Expected '--' followed by command to complete` ) ;
5660 process . exit ( 1 ) ;
Original file line number Diff line number Diff line change @@ -126,6 +126,13 @@ async function getCliCompletions(
126126 packageManager : string ,
127127 args : string [ ]
128128) : Promise < string [ ] > {
129+ if ( process . env . TAB_DEBUG ) {
130+ console . error ( '[DEBUG] getCliCompletions input:' , {
131+ cliName,
132+ packageManager,
133+ args,
134+ } ) ;
135+ }
129136 try {
130137 const result = runCompletionCommand ( cliName , [ ] , args ) ;
131138 if ( result ) {
@@ -137,6 +144,9 @@ async function getCliCompletions(
137144
138145 try {
139146 const result = runCompletionCommand ( packageManager , [ cliName ] , args ) ;
147+ if ( process . env . TAB_DEBUG ) {
148+ console . error ( '[DEBUG] getCliCompletions pnpm result:' , result ) ;
149+ }
140150 return result . split ( '\n' ) . filter ( Boolean ) ;
141151 } catch {
142152 return [ ] ;
You can’t perform that action at this time.
0 commit comments