Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static completionItemToSuggestion(item, request) {
const suggestion = FlowAutocompleteAdapter.basicCompletionItemToSuggestion(
item
);
AutocompleteAdapter.applyTextEditToSuggestion(
item.textEdit,
request.editor,
suggestion
);
// TODO: Snippets
return suggestion;
}