Skip to content

this.property completion does not include insertText if in parens #21320

Closed
@mjbvz

Description

@mjbvz

TypeScript 2.7.0-2018-01-19

Code
For the js:

class Circle {
    constructor(radius) {
        this.radius = radius
    }

    foo() {
        return (rad)
    }
}

Trigger suggestions at the end of rad in return (rad)

Expected behavior:
Returned completion for radius includes insertText that turns the expression into (this.radius)

Actual behavior:
Returned completion does not include insertText:

 {
        "name": "radius",
        "kind": "property",
        "kindModifiers": "",
        "sortText": "0"
    },
    {
        "name": "radius",
        "kind": "warning",
        "kindModifiers": "",
        "sortText": "1"
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions