We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f0137e commit 875cae0Copy full SHA for 875cae0
bdx/cli.py
@@ -400,10 +400,16 @@ def _complete_query(
400
directory = ctx.params["directory"]
401
index_path = ctx.params["index_path"]
402
403
+ did_guess_directory = False
404
+
405
if not directory:
406
directory = default_directory(ctx)
407
+ did_guess_directory = True
408
if not index_path:
- index_path = SymbolIndex.default_path(directory)
409
+ if not did_guess_directory:
410
+ index_path = SymbolIndex.default_path(directory)
411
+ else:
412
+ index_path = guess_index_path_for_directory(directory)
413
414
query = ctx.params[param.name or "query"] or []
415
shell = os.environ.get("_BDX_COMPLETE", "").lower()
0 commit comments