-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS: Ubuntu 20.04, x86
node.js / npm versions: mongosh-linux-x86_64-2.0.2
Additional info:
-
Developer Tools
-
Not Needed
Problem Statement/Rationale
When attempting to tab-autocomplete the available set of collections with mongosh, the autocompletion does not work if the collection prefix so far includes a period. This is in contrast to the legacy mongo shell behavor.
Steps to Reproduce
mongosh --port 27017 > use test > db.config.foo.insert({}) > db.config.bar.insert({}) > db.config.baz.insert({})
Expected Results
What do you expect to happen?
> db.config.b[TAB] db.config.bar db.config.baz
Actual Results
What do you observe is happening?
> db.config.b[TAB] db.config.bulkWrite
Additional Notes
Any additional information that may be useful to include.
I have also tried different prefixes, so it doesn't appear to something specific with "config." as a special prefix.
- duplicates
-
MONGOSH-1424 tab completion of collection names doesn't work with embedded dots
- Needs Triage