forked from midhunann/Haskell-Run
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
224 lines (224 loc) · 6.07 KB
/
package.json
File metadata and controls
224 lines (224 loc) · 6.07 KB
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
{
"name": "haskellrun",
"displayName": "Haskell Run",
"description": "Run Haskell code & functions instantly inside VS Code using GHCi — one-click run, run-selection, run-function.",
"version": "1.0.3",
"license": "MIT",
"publisher": "midhunan",
"icon": "resources/haskell-logo.png",
"engines": {
"vscode": "^1.97.0"
},
"keywords": [
"haskell",
"ghci",
"run",
"execute",
"repl",
"haskell-run",
"run-function",
"run-selection",
"haskell-snippets",
"stack",
"cabal",
"hls"
],
"categories": [
"Programming Languages",
"Other"
],
"activationEvents": [
"onLanguage:haskell"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "haskellrun.runHaskell",
"title": "Haskell Run: Run File",
"icon": {
"light": "resources/light/play.svg",
"dark": "resources/dark/play.svg"
}
},
{
"command": "haskellrun.runFunction",
"title": "Haskell Run: Run Selection",
"icon": {
"light": "resources/light/function.svg",
"dark": "resources/dark/function.svg"
}
},
{
"command": "haskellrun.restartRepl",
"title": "Haskell Run: Restart REPL"
},
{
"command": "haskellrun.clearRepl",
"title": "Haskell Run: Clear REPL"
},
{
"command": "haskellrun.reportIssue",
"title": "Report Issue",
"category": "Haskell Run"
}
],
"snippets": [
{
"language": "haskell",
"path": "./snippets/haskell.json"
}
],
"menus": {
"editor/title": [
{
"command": "haskellrun.runHaskell",
"when": "editorLangId == haskell",
"group": "navigation"
},
{
"command": "haskellrun.runFunction",
"when": "editorLangId == haskell && editorHasSelection",
"group": "navigation"
}
],
"view/title": [
{
"command": "haskellrun.restartRepl",
"when": "view == haskellFunctions",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "haskell-run",
"title": "Haskell Run",
"icon": "resources/haskell-logo.png",
"when": "haskellrun.hasHaskellFiles"
}
]
},
"views": {
"haskell-run": [
{
"id": "haskellFunctions",
"name": "Functions",
"contextualTitle": "Haskell Functions",
"when": "haskellrun.hasHaskellFiles"
}
]
},
"configuration": {
"title": "Haskell Run",
"properties": {
"haskellRun.enableCodeLens": {
"type": "boolean",
"default": true,
"description": "Enable/disable CodeLens for running Haskell functions"
},
"haskellRun.defaultRunner": {
"type": "string",
"enum": ["runghc", "stack runghc", "cabal run"],
"default": "runghc",
"description": "Default command to run Haskell files"
},
"haskellRun.timeout": {
"type": "number",
"default": 30000,
"description": "Timeout for long-running scripts (in milliseconds)"
},
"haskellRun.reuseTerminal": {
"type": "boolean",
"default": true,
"description": "Reuse existing terminal for running commands"
},
"haskellRun.telemetry.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable anonymous usage data collection"
},
"haskellRun.enableTelemetry": {
"type": "boolean",
"default": false,
"description": "Enable anonymous usage data collection to help improve the extension"
}
}
},
"keybindings": [
{
"command": "haskellrun.runHaskell",
"key": "f5",
"mac": "f5",
"when": "editorLangId == haskell"
},
{
"command": "haskellrun.runFunction",
"key": "shift+f5",
"mac": "shift+f5",
"when": "editorLangId == haskell"
},
{
"command": "haskellrun.runHaskell",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r",
"when": "editorLangId == haskell"
},
{
"command": "haskellrun.runFunction",
"key": "ctrl+alt+f",
"mac": "cmd+alt+f",
"when": "editorLangId == haskell && editorHasSelection"
},
{
"command": "haskellrun.restartRepl",
"key": "ctrl+alt+k",
"mac": "cmd+alt+k",
"when": "editorLangId == haskell"
},
{
"command": "haskellrun.clearRepl",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "editorLangId == haskell"
}
]
},
"scripts": {
"vscode:prepublish": "pnpm run package",
"compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "pnpm run check-types && pnpm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "~22.13.1",
"@types/vscode": "^1.97.0",
"@typescript-eslint/eslint-plugin": "^8.23.0",
"@typescript-eslint/parser": "^8.23.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"esbuild": "^0.25.0",
"eslint": "^9.20.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.7.3",
"vsce": "^2.15.0"
},
"repository": {
"type": "git",
"url": "https://github.com/midhunann/Haskell-Run"
},
"homepage": "https://github.com/midhunann/Haskell-Run",
"bugs": {
"url": "https://github.com/midhunann/Haskell-Run/issues"
}
}