Skip to content

Commit e35e95b

Browse files
committed
refactor(webview): remove unused provider disposables field and cleanup loop
1 parent 4eebab1 commit e35e95b

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎src/core/webview/ClineProvider.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ export class ClineProvider
219219
public static readonly sideBarId = `${Package.name}.SidebarProvider`
220220
public static readonly tabPanelId = `${Package.name}.TabPanelProvider`
221221
private static activeInstances: Set<ClineProvider> = new Set()
222-
private disposables: vscode.Disposable[] = []
223222
private webviewDisposables: vscode.Disposable[] = []
224223
private pendingThemeFixtureProbes = new Map<
225224
string,
@@ -902,14 +901,6 @@ export class ClineProvider
902901
CloudService.instance.off("settings-updated", this.handleCloudSettingsUpdate)
903902
}
904903

905-
while (this.disposables.length) {
906-
const x = this.disposables.pop()
907-
908-
if (x) {
909-
x.dispose()
910-
}
911-
}
912-
913904
this._workspaceTracker?.dispose()
914905
this._workspaceTracker = undefined
915906
await this.mcpHub?.unregisterClient()

0 commit comments

Comments
 (0)