-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
222 lines (222 loc) · 8.72 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
{
"name": "curry",
"displayName": "Curry",
"description": "IDE for the functional logic language Curry",
"version": "0.0.20",
"icon": "icons/extension.png",
"publisher": "fwcd",
"repository": {
"type": "git",
"url": "https://github.com/fwcd/vscode-curry.git"
},
"scripts": {
"compile": "tsc -p .",
"watch": "tsc -w -p .",
"package-extension": "vsce package",
"publish-extension": "vsce publish"
},
"engines": {
"vscode": "^1.79.1"
},
"categories": [
"Programming Languages"
],
"activationEvents": [],
"main": "./out/extension",
"contributes": {
"languages": [
{
"id": "curry",
"aliases": [
"Curry",
"curry"
],
"extensions": [
".curry"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./icons/language-light.png",
"dark": "./icons/language-dark.png"
}
},
{
"id": "icurry",
"aliases": [
"Curry Interface",
"icurry"
],
"extensions": [
".icurry"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "curry",
"scopeName": "source.curry",
"path": "./syntaxes/curry.tmLanguage.json"
},
{
"language": "icurry",
"scopeName": "source.icurry",
"path": "./syntaxes/icurry.tmLanguage.json"
},
{
"scopeName": "markdown.curry.codeblock",
"path": "./syntaxes/codeblock-curry.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.curry": "curry"
}
}
],
"commands": [
{
"command": "curry.languageServer.restart",
"title": "Restart the Language Server",
"category": "Curry"
}
],
"configuration": {
"title": "Curry",
"properties": {
"curry.languageServer.enabled": {
"type": "boolean",
"default": true,
"description": "[Recommended] Specifies whether the language server should be used."
},
"curry.languageServer.extensions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the language server extension, for bookkeeping"
},
"extensionPoint": {
"type": "string",
"enum": [
"hover"
],
"description": "The language server feature that is to be extended, i.e. where the analysis results will show up"
},
"outputFormat": {
"type": "string",
"enum": [
"plaintext",
"markdown"
],
"default": "plaintext",
"description": "The command's output format"
},
"showOutputOnError": {
"type": "boolean",
"default": false,
"description": "Whether to display the standard error if the exit code is 0 (instead of simply not displaying the hover)"
},
"executable": {
"type": "string",
"description": "The executable to query for analyses"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "The arguments to pass to the executable. May contain placeholders that provide information about the editing context, e.g. {sourceFile} for a path to the edited file or {line} for the current line number. (TODO: Add a comprehensive overview here)"
}
},
"default": {
"name": "Example Extension",
"extensionPoint": "hover",
"executable": "printf",
"args": [
"%s\n",
"This is an example output:",
"Current File: {currentFile}",
"Current URI: {currentUri}",
"Current Module: {currentModule}",
"Line: {line}",
"Column: {column}",
"Type: {type}",
"Identifier: {identifier}",
"Module: {module}",
"Symbol Kind: {symbolKind}"
]
},
"required": ["extensionPoint", "executable"]
},
"description": "External programs that the language server can invoke to provide additional information or analyses e.g. in hovers or other places."
},
"curry.languageServer.path": {
"type": "string",
"default": "",
"description": "[Required] The path to the language server executable."
},
"curry.languageServer.curryPath": {
"type": "string",
"default": "pakcs",
"description": "The path to the Curry executable (e.g. `pakcs`, `kics2`, ...)."
},
"curry.languageServer.importPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Directories for the Curry compiler to search in for imports."
},
"curry.languageServer.libraryPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Directories for the Curry compiler to search in for libraries."
},
"curry.languageServer.forceRecompilation": {
"type": "boolean",
"default": false,
"description": "Forces recompilation of Curry modules"
},
"curry.languageServer.logLevel": {
"type": "string",
"enum": [
"debug",
"info",
"warning",
"error"
],
"default": "info",
"description": "The language server's logging level"
},
"curry.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the Curry language server",
"scope": "window"
}
}
}
},
"devDependencies": {
"@types/vscode": "^1.79.1",
"@types/node": "^20.3.1",
"@vscode/vsce": "^2.15.0",
"typescript": "^5.1.3"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
}
}