MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / dispose

Method dispose

webview-sample/src/extension.ts:130–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 public dispose() {
131 CatCodingPanel.currentPanel = undefined;
132
133 // Clean up our resources
134 this._panel.dispose();
135
136 while (this._disposables.length) {
137 const x = this._disposables.pop();
138 if (x) {
139 x.dispose();
140 }
141 }
142 }
143
144 private _update() {
145 const webview = this._panel.webview;

Callers 1

constructorMethod · 0.95

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected