Skip to content

Commit b043431

Browse files
authored
chat: fix leaking disposable test tool (microsoft#259857)
Closes microsoft#259823
1 parent 7e6267d commit b043431

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ interface IRunTestToolParams {
6363
testNames?: string[];
6464
}
6565

66-
class RunTestTool extends Disposable implements IToolImpl {
66+
class RunTestTool implements IToolImpl {
6767
public static readonly ID = 'runTests';
6868
public static readonly DEFINITION: IToolData = {
6969
id: this.ID,
@@ -107,9 +107,7 @@ class RunTestTool extends Disposable implements IToolImpl {
107107
@IUriIdentityService private readonly _uriIdentityService: IUriIdentityService,
108108
@IWorkspaceContextService private readonly _workspaceContextService: IWorkspaceContextService,
109109
@ITestResultService private readonly _testResultService: ITestResultService,
110-
) {
111-
super();
112-
}
110+
) { }
113111

114112
async invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, progress: ToolProgress, token: CancellationToken): Promise<IToolResult> {
115113
const params: IRunTestToolParams = invocation.parameters;

0 commit comments

Comments
 (0)