зеркало из
1
0
Форкнуть 0

Fix code snippet in getting started guide (#434)

Description of changes

Updates a code snippet from the getting started guide that demonstrated an improper way of disposing of webview panel resources when the panel is closed.
This commit is contained in:
Hawk Ticehurst 2022-12-14 17:30:56 -08:00 коммит произвёл GitHub
Родитель b4facb3303
Коммит bfb9755495
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
```