|
1 | 1 | {
|
2 | 2 | "activationEvents": [
|
3 |
| - "workspaceContains:**/freecodecamp.conf.json" |
| 3 | + "onStartupFinished" |
4 | 4 | ],
|
5 | 5 | "author": "freeCodeCamp",
|
6 | 6 | "bugs": {
|
|
15 | 15 | "command": "freecodecamp-courses.openCourse",
|
16 | 16 | "title": "freeCodeCamp: Open Course"
|
17 | 17 | },
|
18 |
| - { |
19 |
| - "command": "freecodecamp-courses.createNewCourse", |
20 |
| - "title": "freeCodeCamp: Create New Course" |
21 |
| - }, |
22 | 18 | {
|
23 | 19 | "command": "freecodecamp-courses.runCourse",
|
24 | 20 | "title": "freeCodeCamp: Run Course"
|
|
36 | 32 | "title": "freeCodeCamp: Shutdown Course"
|
37 | 33 | }
|
38 | 34 | ],
|
39 |
| - "jsonValidation": [ |
40 |
| - { |
41 |
| - "fileMatch": "**/freecodecamp.conf.json", |
42 |
| - "url": "./schema.json" |
| 35 | + "configuration": { |
| 36 | + "title": "freeCodeCamp - Courses", |
| 37 | + "properties": { |
| 38 | + "freecodecamp-courses.autoStart": { |
| 39 | + "type": "boolean", |
| 40 | + "default": false, |
| 41 | + "description": "Automatically start the course when opened in VS Code" |
| 42 | + }, |
| 43 | + "freecodecamp-courses.path": { |
| 44 | + "type": "string", |
| 45 | + "default": ".", |
| 46 | + "description": "Relative path to directory where scripts will be run" |
| 47 | + }, |
| 48 | + "freecodecamp-courses.prepare": { |
| 49 | + "type": "string", |
| 50 | + "default": "npm install", |
| 51 | + "description": "Command to run on first opening a course" |
| 52 | + }, |
| 53 | + "freecodecamp-courses.scripts.develop-course": { |
| 54 | + "type": "string", |
| 55 | + "default": "npm run develop", |
| 56 | + "description": "Command to run when developing a course" |
| 57 | + }, |
| 58 | + "freecodecamp-courses.scripts.run-course": { |
| 59 | + "type": "string", |
| 60 | + "default": "npm run start", |
| 61 | + "description": "Command to run when running a course in production" |
| 62 | + }, |
| 63 | + "freecodecamp-courses.workspace.files": { |
| 64 | + "type": "array", |
| 65 | + "default": [], |
| 66 | + "description": "Files to open in the workspace when opening a course", |
| 67 | + "items": { |
| 68 | + "type": "object", |
| 69 | + "properties": { |
| 70 | + "path": { |
| 71 | + "type": "string", |
| 72 | + "description": "Relative path to file" |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + }, |
| 77 | + "freecodecamp-courses.workspace.previews": { |
| 78 | + "type": "array", |
| 79 | + "default": [ |
| 80 | + { |
| 81 | + "open": true, |
| 82 | + "showLoader": true, |
| 83 | + "url": "http://localhost:8080", |
| 84 | + "timeout": 4000 |
| 85 | + } |
| 86 | + ], |
| 87 | + "description": "Previews to open in the workspace when opening a course", |
| 88 | + "items": { |
| 89 | + "type": "object", |
| 90 | + "properties": { |
| 91 | + "open": { |
| 92 | + "type": "boolean", |
| 93 | + "default": true, |
| 94 | + "description": "Whether to open the preview" |
| 95 | + }, |
| 96 | + "showLoader": { |
| 97 | + "type": "boolean", |
| 98 | + "default": true, |
| 99 | + "description": "Whether to show the loading screen" |
| 100 | + }, |
| 101 | + "url": { |
| 102 | + "type": "string", |
| 103 | + "description": "URL to open in the preview" |
| 104 | + }, |
| 105 | + "timeout": { |
| 106 | + "type": "number", |
| 107 | + "default": 4000, |
| 108 | + "description": "Timeout for URL to respond with 200" |
| 109 | + } |
| 110 | + } |
| 111 | + } |
| 112 | + }, |
| 113 | + "freecodecamp-courses.workspace.terminals": { |
| 114 | + "type": "array", |
| 115 | + "default": [], |
| 116 | + "items": { |
| 117 | + "type": "object", |
| 118 | + "properties": { |
| 119 | + "directory": { |
| 120 | + "type": "string", |
| 121 | + "description": "Relative path to directory where scripts will be run" |
| 122 | + }, |
| 123 | + "message": { |
| 124 | + "type": [ |
| 125 | + "string", |
| 126 | + "null" |
| 127 | + ], |
| 128 | + "default": null, |
| 129 | + "description": "Message to display in terminal" |
| 130 | + }, |
| 131 | + "name": { |
| 132 | + "type": "string", |
| 133 | + "description": "Name of terminal" |
| 134 | + }, |
| 135 | + "show": { |
| 136 | + "type": "boolean", |
| 137 | + "description": "Whether to show the terminal" |
| 138 | + } |
| 139 | + } |
| 140 | + }, |
| 141 | + "description": "Terminals to open in the workspace when opening a course" |
| 142 | + } |
43 | 143 | }
|
44 |
| - ] |
45 |
| - }, |
46 |
| - "dependencies": { |
47 |
| - "node-fetch": "3.3.2" |
| 144 | + } |
48 | 145 | },
|
49 | 146 | "description": "Provides tooling for quick and easy selection of courses offered by freeCodeCamp",
|
50 | 147 | "devDependencies": {
|
|
96 | 193 | "vscode:prepublish": "npm run package",
|
97 | 194 | "watch": "webpack --watch"
|
98 | 195 | },
|
99 |
| - "version": "2.1.0" |
| 196 | + "version": "3.0.0" |
100 | 197 | }
|
0 commit comments