diff --git a/docs/getting-started.md b/docs/getting-started.md index e0a2c29..92fea14 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -157,7 +157,7 @@ With the `dispose` method defined, you also need to update the constructor metho private constructor(panel: vscode.WebviewPanel) { // ... other code ... - this._panel.onDidDispose(this.dispose, null, this._disposables); + this._panel.onDidDispose(() => this.dispose(), null, this._disposables); } ```