Closed
Description
TypeScript Version: 3.0.0-dev.20180706
Search Terms:
- reportsUnnecessary
- diagnostics
- suggestions
Code
For the invalid code (with extra d
after the 1
):
export const _ = 1;
const a = 1 d;
Bug
See a suggestion diagnostic:
{
"start": {
"line": 3,
"offset": 1
},
"end": {
"line": 3,
"offset": 15
},
"text": "All variables are unused.",
"code": 6199,
"category": "suggestion",
"reportsUnnecessary": true
}
This causes the entire line to become faded out. I do not believe we should report these errors when there are syntax errors