-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
Discovered in microsoft/vscode#130096
Bug Report
🔎 Search Terms
- word based suggestions
- javascript
- spread
- warning suggestions
🕗 Version & Regression Information
4.4.1-rc
💻 Code
- In a JS file:
const abc = {};
({ })- 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 TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFix AvailableA PR has been opened for this issueA PR has been opened for this issue