Skip to content

Commit 116f1f7

Browse files
authored
tool set should actually use transaction (microsoft#249868)
1 parent 2e6ae92 commit 116f1f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/common/languageModelToolsService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class ToolSet {
213213
}
214214

215215
addTool(data: IToolData, tx?: ITransaction): IDisposable {
216-
this._tools.add(data);
216+
this._tools.add(data, tx);
217217
return toDisposable(() => {
218218
this._tools.delete(data);
219219
});
@@ -223,7 +223,7 @@ export class ToolSet {
223223
if (toolSet === this) {
224224
return Disposable.None;
225225
}
226-
this._toolSets.add(toolSet);
226+
this._toolSets.add(toolSet, tx);
227227
return toDisposable(() => {
228228
this._toolSets.delete(toolSet);
229229
});

0 commit comments

Comments
 (0)