Created
May 7, 2020 14:29
-
-
Save GrandSchtroumpf/4442b6861faec7100712449b83900c5b to your computer and use it in GitHub Desktop.
Markdium-VSCode extension inside a nx workspace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { promises as fs } from 'fs'; // Require @types/node@latest | |
import { join } from 'path'; | |
// On activation | |
export function activate(context: ExtensionContext) { | |
// Register command "start" | |
commands.registerCommand('start', async () => { | |
... | |
const indexPath = join(context.extensionPath, 'studio/index.html'); | |
const html = await fs.readFile(indexPath, 'utf-8'); | |
panel.webview.html = html; | |
... | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment