Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Markdium-VSCode extension inside a nx workspace
const index = join(context.extensionPath, 'studio/index.html');
// Refresh the webview on update from the code
const updateWebview = async () => {
const html = await fs.readFile(index, 'utf-8');
panel.webview.html = html.replace(matchLinks, toUri);
// In dev mode listen on changes from index.html & update the view
if (!environment.production) {
watch(index).on('change', updateWebview)
// First render
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.