|
25 | 25 | "color": "#0072c6", |
26 | 26 | "theme": "dark" |
27 | 27 | }, |
28 | | - "icon": "images/icon256.png", |
| 28 | + "icon": "media/icon256.png", |
29 | 29 | "repository": { |
30 | 30 | "type": "git", |
31 | 31 | "url": "https://github.com/Microsoft/PSRule-vscode.git" |
|
38 | 38 | "activationEvents": [ |
39 | 39 | "onLanguage:powershell", |
40 | 40 | "workspaceContains:/ps-rule.yaml", |
| 41 | + "workspaceContains:**/ps-rule.yaml", |
41 | 42 | "workspaceContains:**/*.Rule.yaml", |
42 | 43 | "workspaceContains:**/*.Rule.yml", |
43 | 44 | "workspaceContains:**/*.Rule.json", |
44 | 45 | "workspaceContains:**/*.Rule.jsonc", |
45 | 46 | "workspaceContains:**/*.Rule.ps1", |
46 | | - "onCommand:workbench.action.tasks.runTask" |
| 47 | + "onCommand:workbench.action.tasks.runTask", |
| 48 | + "onCommand:PSRule.createOrEditDocumentation", |
| 49 | + "onCommand:PSRule.openOptionsFile", |
| 50 | + "onCommand:PSRule.createOptionsFile", |
| 51 | + "onCommand:PSRule.configureSettings", |
| 52 | + "onCommand:PSRule.walkthroughCopySnippet" |
47 | 53 | ], |
48 | 54 | "main": "./out/dist/main.js", |
49 | 55 | "capabilities": { |
|
60 | 66 | "shortTitle": "Edit documentation", |
61 | 67 | "category": "PSRule" |
62 | 68 | }, |
| 69 | + { |
| 70 | + "command": "PSRule.openOptionsFile", |
| 71 | + "title": "Open options file", |
| 72 | + "category": "PSRule" |
| 73 | + }, |
63 | 74 | { |
64 | 75 | "command": "PSRule.createOptionsFile", |
65 | 76 | "title": "Create options file", |
66 | 77 | "category": "PSRule" |
| 78 | + }, |
| 79 | + { |
| 80 | + "command": "PSRule.configureSettings", |
| 81 | + "title": "Configure settings", |
| 82 | + "category": "PSRule" |
| 83 | + }, |
| 84 | + { |
| 85 | + "$comment": "Only used by walkthrough.", |
| 86 | + "command": "PSRule.walkthroughCopySnippet", |
| 87 | + "title": "Copy walkthrough snippet", |
| 88 | + "enablement": "false", |
| 89 | + "category": "PSRule" |
67 | 90 | } |
68 | 91 | ], |
69 | 92 | "configuration": [ |
|
310 | 333 | } |
311 | 334 | ] |
312 | 335 | } |
| 336 | + ], |
| 337 | + "walkthroughs": [ |
| 338 | + { |
| 339 | + "id": "PSRule.getStarted", |
| 340 | + "title": "Get Started with PSRule", |
| 341 | + "description": "Learn about and start using PSRule with Visual Studio Code.", |
| 342 | + "when": "config.PSRule.experimental.enabled", |
| 343 | + "steps": [ |
| 344 | + { |
| 345 | + "id": "configureOptions", |
| 346 | + "title": "Configure an options file", |
| 347 | + "description": "The options file **ps-rule.yaml** is used to initialize a workspace and configure features of PSRule.\n[Open an options file](command:PSRule.openOptionsFile)\n[Create an options file](command:PSRule.createOptionsFile)\nTip: [Close the side bar for more space](command:workbench.action.closeSidebar)", |
| 348 | + "media": { |
| 349 | + "markdown": "media/walkthroughs/getStarted/01_configureOptions.md" |
| 350 | + }, |
| 351 | + "completionEvents": [ |
| 352 | + "onCommand:PSRule.openOptionsFile", |
| 353 | + "onCommand:PSRule.createOptionsFile" |
| 354 | + ] |
| 355 | + }, |
| 356 | + { |
| 357 | + "id": "configureSettings", |
| 358 | + "title": "Configure settings", |
| 359 | + "description": "In addition to **ps-rule.yaml**, some settings that affect how PSRule runs within Visual Studio Code can be configured per user or per workspace.\n[Configure settings](command:PSRule.configureSettings)\nTip: __You can sync some of these settings across devices.__", |
| 360 | + "media": { |
| 361 | + "markdown": "media/walkthroughs/getStarted/02_configureSettings.md" |
| 362 | + }, |
| 363 | + "completionEvents": [ |
| 364 | + "onCommand:PSRule.configureSettings" |
| 365 | + ] |
| 366 | + }, |
| 367 | + { |
| 368 | + "id": "learnMore", |
| 369 | + "title": "Learn more", |
| 370 | + "description": "Check out our [PSRule documentation](https://aka.ms/ps-rule) to learn more about features and customization.", |
| 371 | + "media": { |
| 372 | + "markdown": "media/walkthroughs/getStarted/03_learnMore.md" |
| 373 | + } |
| 374 | + } |
| 375 | + ] |
| 376 | + } |
313 | 377 | ] |
314 | 378 | }, |
315 | 379 | "scripts": { |
|
0 commit comments