Commit 5d52e84
[eslint] Fix issue with JsLog rule and VSCode
Remove the update if the Set didn't change during the rule run.
This make the rule take so little time it's no longer in the top 10
for time consumed.
Also conditionally reload the rule while if needed.
This can happen if the user checkouts a separate branch or commit,
this meant that the Set was out of sync and value could be deleted
unintentionally.
Bug: none
Change-Id: I29ff66e4e9f979444e5a22f1f9c001af9769dfc5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6439513
Reviewed-by: Danil Somsikov <[email protected]>
Auto-Submit: Nikolay Vitkov <[email protected]>
Commit-Queue: Nikolay Vitkov <[email protected]>1 parent 7f52031 commit 5d52e84
1 file changed
+41
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
25 | 57 | | |
26 | 58 | | |
27 | 59 | | |
| |||
40 | 72 | | |
41 | 73 | | |
42 | 74 | | |
| 75 | + | |
43 | 76 | | |
44 | 77 | | |
45 | 78 | | |
| |||
52 | 85 | | |
53 | 86 | | |
54 | 87 | | |
| 88 | + | |
55 | 89 | | |
56 | 90 | | |
57 | 91 | | |
| |||
68 | 102 | | |
69 | 103 | | |
70 | 104 | | |
| 105 | + | |
| 106 | + | |
71 | 107 | | |
72 | 108 | | |
73 | 109 | | |
| |||
121 | 157 | | |
122 | 158 | | |
123 | 159 | | |
124 | | - | |
| 160 | + | |
125 | 161 | | |
126 | 162 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 163 | + | |
130 | 164 | | |
131 | 165 | | |
132 | 166 | | |
| |||
0 commit comments