|
252 | 252 | { |
253 | 253 | "id": "github-actions.current-branch", |
254 | 254 | "name": "Current Branch", |
255 | | - "when": "github-actions.signed-in" |
| 255 | + "when": "github-actions.internet-access && github-actions.signed-in && github-actions.has-repos" |
256 | 256 | }, |
257 | 257 | { |
258 | 258 | "id": "github-actions.workflows", |
259 | 259 | "name": "Workflows", |
260 | | - "when": "github-actions.signed-in" |
| 260 | + "when": "github-actions.internet-access && github-actions.signed-in && github-actions.has-repos" |
261 | 261 | }, |
262 | 262 | { |
263 | 263 | "id": "github-actions.settings", |
264 | 264 | "name": "Settings", |
265 | | - "when": "github-actions.signed-in" |
| 265 | + "when": "github-actions.internet-access && github-actions.signed-in && github-actions.has-repos" |
266 | 266 | }, |
267 | 267 | { |
268 | 268 | "id": "github-actions.empty-view", |
269 | 269 | "name": "", |
270 | | - "when": "!github-actions.signed-in" |
| 270 | + "when": "!github-actions.internet-access || !github-actions.signed-in || !github-actions.has-repos" |
271 | 271 | } |
272 | 272 | ] |
273 | 273 | }, |
274 | 274 | "viewsWelcome": [ |
275 | 275 | { |
276 | 276 | "view": "github-actions.empty-view", |
277 | | - "contents": "Sign in to GitHub to display runs, workflows, and configure Actions settings\n[Sign in to GitHub](command:github-actions.sign-in)" |
| 277 | + "contents": "Unable to connect to the GitHub API, please check your internet connection.\n[Refresh](command:github-actions.explorer.refresh)", |
| 278 | + "when": "!github-actions.internet-access" |
| 279 | + }, |
| 280 | + { |
| 281 | + "view": "github-actions.empty-view", |
| 282 | + "contents": "Sign in to GitHub to display runs, workflows, and configure Actions settings.\n[Sign in to GitHub](command:github-actions.sign-in)", |
| 283 | + "when": "github-actions.internet-access && !github-actions.signed-in" |
| 284 | + }, |
| 285 | + { |
| 286 | + "view": "github-actions.empty-view", |
| 287 | + "contents": "No GitHub repositories found. Please open a folder that contains a GitHub repository.", |
| 288 | + "when": "github-actions.internet-access && github-actions.signed-in && !github-actions.has-repos" |
278 | 289 | } |
279 | 290 | ], |
280 | 291 | "viewsContainers": { |
|
0 commit comments