completion with parameters


I want use autocompletion but for create my option i need to put “categorie” parameters to my completeVariable function. How I can do it? thanks in advance for you awnser.

		this.extensionsConfig = [
				activateOnTyping: false,
				override: [this.completeVariable]

	completeVariable(context: CompletionContext, **categorie: string)**: CompletionResult {
		const word = context.matchBefore(/\w*/);
		if (word.from == && !context.explicit) {
			return null;

		const options: Completion[] = [];
                // I need external category to set options
		return {
			from: word.from,
			options: options