Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-381

Field completion does not work for collections specified using bracket notation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.11.1
    • Affects Version/s: None
    • Component/s: Playgrounds
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Iteration Xantic Sargo
    • Not Needed

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Please be sure to attach relevant logs with any sensitive data redacted.

      Field completion does not work for collections specified using the bracket notation.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Connect to a cluster and in the default playground trigger completion inside the `find` object.

      use('mongodbVSCodePlaygroundDB');
      db['sales'].find({ p});

      Expected Results

      What do you expect to happen?

      The price field is suggested.

      Actual Results

      What do you observe is happening?

      No collection fields are suggested.

      Additional Notes

      Any additional information that may be useful to include.

      If you try the same collection but written using the dot notation the field completion works as expected.

      use('mongodbVSCodePlaygroundDB');
      db.sales.find({});

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: