extensions/github/src/links.ts/getFileAndPosition
function getFileAndPosition(): { uri: vscode.Uri | undefined; range: vscode.Range | undefined } {
	let uri: vscode.Uri | undefined;
	let range: vscode.Range | undefined;
	if (vscode.window.activeTextEditor) {
		uri = vscode.window.activeTextEditor.document.uri;
		range = vscode.window.activeTextEditor.selection;
	}
	return { uri, range };
}