-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
207 lines (207 loc) · 6.98 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
{
"name": "effekt",
"displayName": "effekt",
"description": "The Effekt language",
"repository": {
"type": "git",
"url": "https://github.com/effekt-lang/effekt-vscode.git"
},
"icon": "icon.png",
"version": "0.2.3",
"publisher": "effekt-lang",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:effekt",
"onLanguage:literateeffekt"
],
"main": "./out/extension",
"contributes": {
"languages": [
{
"id": "effekt",
"extensions": [
".effekt"
],
"aliases": [
"Effekt",
"effekt"
],
"configuration": "./language-configuration.json"
},
{
"id": "literate effekt",
"extensions": [
".effekt.md"
],
"aliases": [
"literate effekt"
],
"configuration": "./language-configuration.json"
},
{
"id": "ir",
"extensions": [
".ir"
],
"aliases": [
"ir",
"IR"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "effekt",
"scopeName": "source.effekt",
"path": "./syntaxes/effekt.tmLanguage.json"
},
{
"language": "literate effekt",
"scopeName": "source.literateeffekt",
"path": "./syntaxes/literateeffekt.tmLanguage.json"
},
{
"language": "ir",
"scopeName": "source.ir",
"path": "./syntaxes/ir.tmLanguage.json"
}
],
"configuration": {
"type": "object",
"title": "Effekt",
"properties": {
"effekt.executable": {
"type": "string",
"description": "Path to the effekt executable (you need to restart vscode after changing this setting)."
},
"effekt.backend": {
"type": "string",
"default": "js",
"enum": [
"js",
"llvm",
"chez-monadic",
"chez-callcc",
"chez-lift",
"ml"
],
"enumDescriptions": [
"Use the JavaScript backend.",
"Use the LLVM backend.",
"Use the Chez Scheme backend (monadic).",
"Use the Chez Scheme backend (call/cc).",
"Use the Chez Scheme backend (lifted).",
"Use the MLton backend."
]
},
"effekt.showExplanations": {
"type": "boolean",
"default": true,
"description": "Display additional information when hovering over identifier."
},
"effekt.showCaptures": {
"type": "boolean",
"default": false,
"description": "Show additional information about resources used by a function."
},
"effekt.showIR": {
"type": "string",
"default": "none",
"enum": [
"none",
"source",
"core",
"lifted-core",
"machine",
"target"
],
"enumDescriptions": [
"Disable showing intermediate representation.",
"Show source tree after parsing.",
"Show the core intermediate representation after capability-passing transformation.",
"Show the core intermediate representation after lift inference.",
"Show the machine representation.",
"Show the generated code in the target language."
]
},
"effekt.showTree": {
"type": "boolean",
"default": "false",
"description": "Show tree of IR instead of rendered version (only relevant if 'showIR' is neither 'none' nor 'js'."
},
"effekt.lib": {
"type": "string",
"description": "Path to the standard library."
},
"effekt.debug": {
"type": "boolean",
"default": false,
"description": "Run the LSP server in debug mode (for development of the VSCode plugin and the Effekt compiler)."
}
}
},
"commands": [
{
"category": "Effekt",
"command": "effekt.selectLinkedEditors",
"title": "Focus Product Editors"
},
{
"category": "Effekt",
"command": "effekt.checkForUpdates",
"title": "Check for Effekt Updates"
},
{
"category": "Effekt",
"command": "effekt.restartServer",
"title": "Restart LSP Server"
}
],
"keybindings": [
{
"command": "effekt.selectLinkedEditors",
"key": "ctrl+alt+p",
"mac": "cmd+alt+p",
"when": "editorTextFocus && editorLangId == 'effekt'"
}
],
"configurationDefaults": {
"[effekt]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[literate effekt]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx"
},
"dependencies": {
"compare-versions": "^6.1.1",
"vscode-languageclient": "^8.1.0"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.25",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^8.57.0",
"mocha": "^10.3.0",
"typescript": "^5.3.3"
}
}