Skip to content

Word based suggestions returned when starting to type spread #45436

@mjbvz

Description

@mjbvz

Discovered in microsoft/vscode#130096

Bug Report

🔎 Search Terms

  • word based suggestions
  • javascript
  • spread
  • warning suggestions

🕗 Version & Regression Information

4.4.1-rc

💻 Code

  1. In a JS file:
const abc = {};

({ })
  1. Put cursor inside the object literal and type: .

🙁 Actual behavior

JS warning suggestions (word based suggestions) are returned:

[Trace  - 22:36:59.359] <semantic> Response received: completionInfo (308). Request took 7 ms. Success: true 
Result: {
    "isGlobalCompletion": false,
    "isMemberCompletion": true,
    "isNewIdentifierLocation": false,
    "entries": [
        {
            "name": "abc",
            "kind": "warning",
            "kindModifiers": "",
            "sortText": "17"
        }
    ]
}

🙂 Expected behavior

No suggestions should be returned in this case since the user is likely starting to type a spread operator

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorDomain: JavaScriptThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions