Skip to content

Debt: code duplication in src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.ts #270898

@bpasero

Description

@bpasero

I see some very weird code duplication from https://github.dev/microsoft/vscode/pull/260770. If I understand correctly, a chat confirmation widget was deprecated but mostly duplicated, specifically now that I want to tweak notifyConfirmationNeeded to fix #270619 I seem to be having to do this in 2 places.

This feels like a wasteful way of doing deprecation, at the very minimum I would have extracted a base class with the duplicated code and/or introduce helper methods. Now we need to maintain the same code multiple times.

Metadata

Metadata

Labels

debtCode quality issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions