You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add flag to mark TS Server unused variable suggestion diagnostics #23288
Request
Follow up on #22361. Just tried it out in VS Code. Very cool to see this working but we will need a new a flag on suggestion diagnostic objects that identifies them as being diagnostics for unused variables. I don't currently see any flags being returned by tsserver
Ok, is it possible that this property is not being sent through the tsserver? Here's what I see for an unused diagnostic on the 2.9.0-dev.20180409 insiders build:
"diagnostics": [
{
"start": {
"line": 3,
"offset": 7
},
"end": {
"line": 3,
"offset": 8
},
"text": "'a' is declared but its value is never read.",
"code": 6133,
"category": "suggestion"
}
]
Activity
mjbvz commentedon Apr 9, 2018
Ok, is it possible that this property is not being sent through the tsserver? Here's what I see for an unused diagnostic on the 2.9.0-dev.20180409 insiders build: