Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/axiomcode/hooks/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def lookup(n):
if total > len(rows) and out: out[-1] += f" (+{total - len(rows)} more declaration(s){'' if total < 40 else ' or more'})"
if unres: out.append(f" ({ctx_names.get(unres[0]['caller_id'], '?')}, which you just read, calls a `{n}` at L{unres[0]['start_line']} whose receiver is not typed — it may be any of the above)")
return n, rows, out
if idents and os.environ.get('AXIOMCODE_GREP_AID', '1') != '0':
if idents and os.environ.get('AXIOMCODE_GREP_AID', '1').lower() not in ('0', 'off', 'false'):
lines += grep_aid(idents, ev.get('tool_response'))
elif idents:
with concurrent.futures.ThreadPoolExecutor(max_workers=min(6, len(idents))) as ex: found = list(ex.map(lookup, idents))
Expand Down
2 changes: 1 addition & 1 deletion plugins/axiomcode/skills/axiomcode/scripts/ax_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def render(verb, doc, repo):
# `grep -nw NAME` finds: it is listed by location only, and the code goes to the places no text search reaches
# (a function passed as a value, a framework or DI registration, an alias). Off with AXIOMCODE_GREP_AID=0.
plain = []
names = target_names(doc) if verb == 'impact' and os.environ.get('AXIOMCODE_GREP_AID', '1') != '0' else []
names = target_names(doc) if verb == 'impact' and os.environ.get('AXIOMCODE_GREP_AID', '1').lower() not in ('0', 'off', 'false') else []
if names:
spelled = lambda p: all(any(re.search(r'(?<![\w$])' + re.escape(nm) + r'(?![\w$])', statement(repo, p['f'], n)) for nm in names)
for n in p['marks'])
Expand Down
Loading