Skip to content

'BestCommonType error' returns wrong error range inside class methods #5732

Closed
@simonvizzini

Description

@simonvizzini

I'm working on a JS project with ES6 syntax and today I tried out the latest VS Code release (0.10.1). Today I've also learned that the IntelliSense support in VS Code for JS is coming from TS, so I've been told to report it here (microsoft/vscode#230)

This is the result when there is a "BestCommonType" error inside a class method:
image

And for plain functions it looks like this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions