Skip to content

Commit 7852f5b

Browse files
committed
refactor: remove disposeInternals, use dispose directly
1 parent 8cc5b11 commit 7852f5b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/webviews/chat/chatPanelProvider.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class ChatPanelProvider
5454
}),
5555
);
5656
this.renderView();
57-
webviewView.onDidDispose(() => this.disposeInternals());
57+
webviewView.onDidDispose(() => this.dispose());
5858
}
5959

6060
public refresh(): void {
@@ -183,14 +183,10 @@ text-align:center;}</style></head>
183183
<body><p>No active chat session. Open a chat from the Agents tab on your Coder deployment.</p></body></html>`;
184184
}
185185

186-
private disposeInternals(): void {
186+
dispose(): void {
187187
for (const d of this.disposables) {
188188
d.dispose();
189189
}
190190
this.disposables = [];
191191
}
192-
193-
dispose(): void {
194-
this.disposeInternals();
195-
}
196192
}

0 commit comments

Comments
 (0)