Add `workspace.activeTextDocument` to the extensions API
Created by: lguychard
Added this to address the shortcomings of onDidOpenTextDocument
, most notably its racy behaviour: the event may fire before extension activation, making it impossible to reliably react to the currently open text document upon extension activation, which is how extension authors expect to use it.