中文
← Errors

F_SYSTEM_INVALID_COMPLETION_REQUEST

Invalid completion request

complete() received args that are not a string array, or an incomplete value that is not a string.

Updated

Reproduction

args must be an array of argv tokens that have already been committed:

src/completion.ts
import { complete } from 'func/completion'
import { AppModule } from './app.module'

complete(AppModule, {
  args: 'deploy' as any,
  incomplete: '--t',
})

How to fix it

Pass { args: ['deploy'], incomplete: '--t' }. Every item in args and the incomplete value must be a string; do not pass one unsplit command line. The complete request is available in details.request.