Use related error spans for "implement abstract class" errors #32848
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Experience Enhancement
Noncontroversial enhancements
Good First Issue
Well scoped, documented and has the green light
Milestone
From microsoft/vscode#78048
TypeScript Version: 3.6.0-dev.20190810
Search Terms:
Problem
For the TypeScript:
The typescript server currently generates two errors on
B
, one forb
not being implemented and one forc
not being implemented.Having two errors causes VS Code to show a
fix all...
quick fix even though the singleimplement abstract class
quick fix will resolve both errors. See microsoft/vscode#78048Proposal
Instead of generating two errors in this case, generate a single, generic diagnostic that states something like:
B does not implement all abstract members of A
and on that diagnostic return related spans that state specifically which members are not implemented (b
andc
).Related Issues:
/cc @DanielRosenwasser
The text was updated successfully, but these errors were encountered: