collection runner tag updates

This commit is contained in:
lohit-bruno
2025-07-15 14:33:18 +05:30
parent 3803576aa4
commit 0e28c97f8f
32 changed files with 920 additions and 342 deletions

View File

@@ -74,18 +74,20 @@ class MultiLineEditor extends Component {
'Shift-Tab': false
}
});
const getAllVariablesHandler = () => getAllVariables(this.props.collection, this.props.item);
const getAnywordAutocompleteHints = () => this.props.autocomplete || [];
// Setup AutoComplete Helper
const autoCompleteOptions = {
showHintsFor: ['variables'],
anywordAutocompleteHints: this.props.autocomplete
getAllVariables: getAllVariablesHandler,
getAnywordAutocompleteHints
};
const getVariables = () => getAllVariables(this.props.collection, this.props.item);
this.brunoAutoCompleteCleanup = setupAutoComplete(
this.editor,
getVariables,
autoCompleteOptions
);