Extension API: doc.text can be undefined
Created by: chrismwendt
In the callback to registerHoverProvider
, the given TextDocument.text
field is undefined
on private repositories, but the type is string
. To handle this, I made a change to basic-code-intel:
The type of text
could be changed to string | undefined
, forcing this case to be handled.
Another idea is to make the entire doc
parameter TextDocument | undefined
, but that would break the Codecov extension, which needs only the file path.
Any other ideas?