I am developing the extension for VS Code and i need to capture the line added / deleted in the editor. Basically the issue i have is. I have created a diagnostic collection for a opened document say on Line 5, Postiion 2.
When a user edits the text document say added a line, the position changes. But the diagnostic data that is displayed in problems is still points to the old line 5.
What is the way to solve this, was thinking is there any possibility to capture the line added / deleted events of editor and update the line numbers.