Skip to content

Commit e395e49

Browse files
committed
Add secondary error code to relevant error code list in addMissingConstInForLoop codefix
1 parent 8987e56 commit e395e49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/services/codefixes/addMissingConstInForLoop.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
/* @internal */
22
namespace ts.codefix {
33
const fixId = "addMissingConstInForLoop";
4-
const errorCodes = [Diagnostics.Cannot_find_name_0.code];
4+
const errorCodes = [
5+
Diagnostics.Cannot_find_name_0.code,
6+
Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code
7+
];
58

69
registerCodeFix({
710
errorCodes,

0 commit comments

Comments
 (0)