src/plugins/editor-autosuggest/helpers.js
Function wrapCompleters
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function wrapCompleters(completers, cutoff = 100) {
let isLiveCompletionDisabled = false
let lastSpeeds = []
let isPerformant = () => lastSpeeds.every(speed => speed < cutoff)
Function getCompletions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
completer.getCompletions = function(editor, session, pos, prefix, callback) {
let startTime = Date.now()
try {
ori(editor, session, pos, prefix, (...args) => {
let msElapsed = Date.now() - startTime
Function getCompletions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
completer.getCompletions = function(editor, session, pos, prefix, callback) {