Skip to content

isNewIdentifierLocation is always set to true inside function call #25691

Closed
@mjbvz

Description

@mjbvz

TypeScript Version: 3.0.0-dev.20180713

Search Terms:

  • isNewIdentifierLocation
  • completions
  • suggest

Bug
The completionInfo request seems to always return isNewIdentifierLocation when inside a function call such as:

console.log(c|)

Expected behavior:
I believe that isNewIdentifierLocation should only be returned when the user is starting to write a arrow function with a parenthesized parameter list, such as:

(c|)

or

console.log((c|)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorFix 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