Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private constructor(panel: vscode.WebviewPanel, extensionPath: string) {
this.questionsResolutions = new Map();
this.panel = panel;
this.extensionPath = extensionPath;
this.rpc = new RpcExtension(this.panel.webview);
const logger: YouiLog = new OutputChannelLog();
this.yeomanui = new YeomanUI(this.rpc, logger, YeomanUIPanel.genFilter);
// Set the webview's initial html content
this._update();
// Listen for when the panel is disposed
// This happens when the user closes the panel or when the panel is closed programatically
this.panel.onDidDispose(() => this.dispose(), null, this.disposables);
// Update the content based on view changes
this.panel.onDidChangeViewState(
e => {
if (this.panel.visible) {
this._update();