Refactor various code to do shallow/constrained search instead of deep search for better performance, make cache key for filterByTypesCached unique.

This commit is contained in:
David Anson 2024-10-09 22:42:36 -07:00
parent 2fa7730a6b
commit d22c1f19ef
12 changed files with 171 additions and 220 deletions

View file

@ -82,9 +82,8 @@ module.exports = {
}
}
if (isError) {
// eslint-disable-next-line no-undef-init
let range = undefined;
let fixInfo = null;
let fixInfo = undefined;
if (startLine === endLine) {
range = [ startColumn, endColumn - startColumn ];
let insertText = null;