Sep 23, 2021
Hello Adam, thank you for the question. I indeed forgot to include doc function. The article is now updated with that function, fyi, here it is as well:
export async function doc(content: string, language?: string) {
return await vscode.workspace.openTextDocument({
language,
content,
});
}