/
package.json
228 lines (228 loc) · 8.79 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
"name": "rustlings-helper",
"displayName": "Rustlings Helper",
"publisher": "drwilco",
"description": "A helper extension for the Rustlings exercises. It doesn't do the exercises for you, it does everything the Rustlings CLI does but inside the VSCode IDE. And plenty more!",
"preview": true,
"icon": "media/rustlings.png",
"version": "0.1.4",
"license": "SEE LICENSE IN LICENSE.md",
"pricing": "Free",
"homepage": "https://github.com/docwilco/rustlings-helper",
"repository": {
"type": "git",
"url": "https://github.com/docwilco/rustlings-helper.git"
},
"bugs": {
"url": "https://github.com/docwilco/rustlings-helper/issues"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"Rust",
"Rustlings",
"Exercises",
"Learning",
"Learning Rust"
],
"extensionKind": [
"workspace"
],
"engines": {
"vscode": "^1.82.0"
},
"activationEvents": [
"workspaceContains:info.toml"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "rustlingsHelper",
"title": "Rustlings Helper",
"icon": "media/rustlings.svg"
}
]
},
"views": {
"rustlingsHelper": [
{
"id": "rustlingsHelper.exercisesView",
"type": "tree",
"name": "Exercises",
"icon": "media/rustlings.svg"
}
]
},
"viewsWelcome": [
{
"view": "rustlingsHelper.exercisesView",
"contents": "No Rustlings exercises found in this workspace. Please open your rustlings folder.\n[Open Folder](command:vscode.openFolder)\nIf you don't have a Rustlings folder yet, please follow these instructions:\n[Install Rustlings](https://github.com/rust-lang/rustlings#getting-started)\n",
"when": "rustlingsHelper:hasRustlingsKnown && !rustlingsHelper:hasRustlings"
}
],
"commands": [
{
"command": "rustlingsHelper.openNextExercise",
"title": "Open Next Exercise",
"when": "rustlingsHelper:hasRustlings",
"category": "Rustlings Helper"
},
{
"command": "rustlingsHelper.openExercise",
"title": "Open Exercise",
"when": "rustlingsHelper:hasRustlings",
"category": "Rustlings Helper"
},
{
"command": "rustlingsHelper.toggleDone",
"title": "Toggle Done on Exercise",
"when": "rustlingsHelper:exerciseOpen",
"category": "Rustlings Helper",
"icon": "$(check)"
},
{
"command": "rustlingsHelper.watch",
"title": "Open Watch terminal",
"when": "rustlingsHelper:hasRustlings && !rustlingsHelper:watching",
"category": "Rustlings Helper",
"icon": "$(eye)"
},
{
"command": "rustlingsHelper.showHint",
"title": "Show Hint",
"when": "rustlingsHelper:exerciseOpen",
"category": "Rustlings Helper",
"icon": "$(question)"
},
{
"command": "rustlingsHelper.showReadme",
"title": "Open README for section",
"when": "rustlingsHelper:exerciseOpen",
"category": "Rustlings Helper",
"icon": "$(info)"
},
{
"command": "rustlingsHelper.resetExercise",
"title": "Reset exercise to original state",
"when": "rustlingsHelper:exerciseOpen",
"category": "Rustlings Helper",
"icon": "$(discard)"
},
{
"command": "rustlingsHelper.openSettings",
"title": "Open Settings",
"category": "Rustlings Helper",
"icon": "$(gear)"
}
],
"keybindings": [
{
"command": "rustlingsHelper.toggleDone",
"key": "ctrl+alt+d",
"mac": "ctrl+cmd+d",
"when": "rustlingsHelper:exerciseOpen"
}
],
"menus": {
"view/title": [
{
"command": "rustlingsHelper.showHint",
"when": "view == rustlingsHelper.exercisesView && rustlingsHelper:exerciseOpen",
"group": "navigation"
},
{
"command": "rustlingsHelper.showReadme",
"when": "view == rustlingsHelper.exercisesView && rustlingsHelper:exerciseOpen",
"group": "navigation"
},
{
"command": "rustlingsHelper.openSettings",
"when": "view == rustlingsHelper.exercisesView",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "rustlingsHelper.watch",
"when": "view == rustlingsHelper.exercisesView && viewItem == rustlingsTreeNotWatching",
"group": "inline"
},
{
"command": "rustlingsHelper.resetExercise",
"when": "view == rustlingsHelper.exercisesView && viewItem == exercise",
"group": "inline"
}
]
},
"configuration": [
{
"title": "Rustlings Helper",
"id": "rustlingsHelper",
"properties": {
"rustlingsHelper.showWalkthrough": {
"type": "boolean",
"default": true,
"description": "Whether to show the walkthrough messages for the intro exercises."
}
}
},
{
"title": "Startup",
"id": "rustlingsHelper.startup",
"order": 1,
"properties": {
"rustlingsHelper.startup.setupLSP": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to create the `rust-project.json` file on startup if it doesn't exist yet. This file allows for instance [Rust Analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) to be used for the exercises. However, if you want to work on the source for Rustlings itself, you should either disable this setting or this extension as a whole."
},
"rustlingsHelper.startup.showWatchTerminal": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to show the built-in watch terminal on startup. This extension emulates the output of `rustlings watch` in the terminal, but it can be disabled here if you prefer to use the real `rustlings watch` command instead."
},
"rustlingsHelper.startup.openNextExercise": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to open the next exercise on startup. If you prefer to open the exercises manually, you can disable this setting."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "node ./esbuild.js",
"package": "cross-env NODE_ENV=production node ./esbuild.js",
"watch": "node ./esbuild.js --watch",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.82.0",
"@types/vscode-webview": "^1.57.2",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vscode/test-electron": "^2.3.4",
"cross-env": "^7.0.3",
"esbuild": "^0.16.17",
"eslint": "^8.47.0",
"glob": "^10.3.3",
"mocha": "^10.2.0",
"typescript": "^5.1.6"
},
"dependencies": {
"@types/markdown-it": "^13.0.1",
"@vscode/webview-ui-toolkit": "^1.2.2",
"chalk": "^5.3.0",
"markdown-it": "^13.0.1",
"toml": "^3.0.0"
}
}