When using the API in a vscode extension, package.json is not available, and creation of an API fails.

As a sidenote: as a user I was very surprised that an http client library tries to read files from the disk, is that really necessary? The library should know its version without doing that.
When using the API in a vscode extension, package.json is not available, and creation of an API fails.
As a sidenote: as a user I was very surprised that an http client library tries to read files from the disk, is that really necessary? The library should know its version without doing that.