-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Closed
Copy link
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
From @David-Else on January 8, 2018 18:6
- VSCode Version: 1.19.1
- OS Version: Fedora 27
Steps to Reproduce:
- enable type checking in .js file with
// @ts-check
- paste this and hover over the variable
gender
/** @type {number} */
let gender;
It should correctly say 'number', now change to:
/** @type {string} */
let gender;
It won't update, stays as a number. Now try:
/** @type {number} */
var gender;
It should correctly change. It will now take going from let to var to actually select the correct type.
It's not just the hover over info that is broken, it really does get the type wrong and that makes the rest of the application generate linting errors everywhere.
Something seems badly broken, can't use type checking, which would be awesome.
Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: microsoft/vscode#41306
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue