Commit bccd293
Honor repository selection for PR and issue status bars (#8416)
* Initial plan
* feat: honor repository selection for PR and issue status bars
Listen to repository.ui.onDidChange event to track when the user
switches between repositories. The PR status bar item and issue
status bar item now show only when their respective repository
is selected in the VS Code UI.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* refactor: address code review feedback
- Use definite assignment assertion for _isRepositorySelected field
- Update updateStatusBarVisibility to also handle switching state
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* refactor: extract showStatusBarIfSelected method
Extract the repeated pattern of checking _isRepositorySelected before
showing the status bar into a dedicated private method.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Revert some files
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent de14294 commit bccd293
1 file changed
+39
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
190 | 196 | | |
191 | 197 | | |
192 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
193 | 204 | | |
194 | 205 | | |
195 | 206 | | |
| |||
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
240 | 275 | | |
241 | 276 | | |
242 | 277 | | |
| |||
562 | 597 | | |
563 | 598 | | |
564 | 599 | | |
565 | | - | |
| 600 | + | |
566 | 601 | | |
567 | 602 | | |
568 | 603 | | |
| |||
1116 | 1151 | | |
1117 | 1152 | | |
1118 | 1153 | | |
1119 | | - | |
| 1154 | + | |
1120 | 1155 | | |
1121 | 1156 | | |
1122 | 1157 | | |
| |||
1165 | 1200 | | |
1166 | 1201 | | |
1167 | 1202 | | |
1168 | | - | |
| 1203 | + | |
1169 | 1204 | | |
1170 | 1205 | | |
1171 | 1206 | | |
| |||
1186 | 1221 | | |
1187 | 1222 | | |
1188 | 1223 | | |
1189 | | - | |
| 1224 | + | |
1190 | 1225 | | |
1191 | 1226 | | |
1192 | 1227 | | |
| |||
0 commit comments