vscode-keep-context
vscode-keep-context copied to clipboard
[WIP] feat: Add current line number to task context (#24)
This adds tracking of the currently selected line number in editors and reveals the editor at that range when restoring windows on a task switch.
Currently, this is a bit buggy due to some sort of race condition. Sometimes the selected range does not set in time so you wind up with the range stuck at 1. It triggers pretty frequently at the moment, but this should be a good starting point.
Note that the current behavior is always to open the editor at line 1, so this bug does not provide any worse experience when it triggers.