Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/ff67ce77945541098269ea130a574aa3 to your computer and use it in GitHub Desktop.
Save ljmotta/ff67ce77945541098269ea130a574aa3 to your computer and use it in GitHub Desktop.
TodoListWebview Webview Panel
public open(pageId: string, opts: { onClose: () => void }) {
const webviewPanel = vscode.window.createWebviewPanel(pageId, this.envelopeLocator.title, ViewColumn.Beside, {
retainContextWhenHidden: true,
enableCommandUris: true,
enableScripts: true,
localResourceRoots: [vscode.Uri.file(this.context.extensionPath)],
});
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment