I'm using the VSCode API to build an extension, but I've found no documentation that covers how to grab the user's highlighted text, such as that shown below:
There is a similar question regarding the word the cursor is currently on, but I would like to grab the entirety of the highlighted text.
