-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
200 lines (200 loc) · 5.31 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
{
"name": "n3-lang-exec",
"displayName": "N3 Language and Reasoning Support",
"description": "Language and in-editor reasoning features for N3 code.",
"author": "w3c.n3",
"license": "Apache 2.0",
"version": "1.4.0",
"icon": "logo.png",
"repository": {
"type": "git",
"url": "https://github.com/william-vw/vscode-extension-n3"
},
"publisher": "w3cn3",
"categories": [],
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.63.0"
},
"activationEvents": [
"onLanguage:n3",
"onCommand:n3.execute",
"onCommand:n3.debug"
],
"main": "./client/out/extension.js",
"contributes": {
"languages": [
{
"id": "n3",
"aliases": [
"Notation3",
"n3",
"N3"
],
"extensions": [
".n3",
".notation3",
".ttl",
".turtle"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "n3",
"scopeName": "source.n3",
"path": "./syntaxes/n3.tmLanguage.json"
}
],
"themes": [
{
"label": "Notation3 Dark",
"uiTheme": "vs-dark",
"path": "./themes/n3-dark-color-theme.json"
},
{
"label": "Notation3 Light",
"uiTheme": "vs",
"path": "./themes/n3-light-color-theme.json"
}
],
"commands": [
{
"command": "n3.execute",
"title": "Execute N3 Code",
"category": "N3"
},
{
"command": "n3.debug",
"title": "Debug N3 Code",
"category": "N3"
},
{
"command": "n3.addTrace",
"title": "Add Trace",
"category": "N3"
}
],
"menus": {
"editor/context": [
{
"when": "resourceLangId == n3",
"command": "n3.addTrace",
"group": "YourGroup@1"
}
]
},
"configuration": {
"type": "object",
"title": "Notation3",
"properties": {
"n3Execute.reasoner": {
"order": 1,
"type": "string",
"enum": [
"eye",
"jen3"
],
"default": "eye",
"description": "Choose the N3 reasoner to execute N3 code"
},
"n3Execute.jen3Path": {
"order": 2,
"type": "string",
"default": "",
"description": "Path to the jen3 JAR file (download at https://github.com/william-vw/jen3/releases)"
},
"n3Execute.onlyShowInferences": {
"order": 3,
"type": "boolean",
"default": true,
"description": "Only show inferences and not the full deductive closure"
},
"n3Execute.extraEyeArguments": {
"order": 4,
"type": "string",
"default": "",
"description": "Provide additional command line arguments to eye."
},
"n3Execute.postProcessEyeTraces": {
"order": 5,
"type": "boolean",
"default": true,
"description": "Post-process eye debug tracing (group by subject and filter duplicates)."
},
"n3LspServer.formatNamespaces": {
"order": 6,
"type": "boolean",
"default": true,
"description": "When formatting, also format prefix and base declarations by grouping them all at the top, using the '@' syntax, and sorting them alphabetically."
},
"n3LspServer.namespacesFile": {
"order": 7,
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to a JSON file with a single object that maps prefixes to their namepace URIs. This is used to suggest or directly insert namespaces when their prefix is found.\n*** See https://github.com/william-vw/vscode-extension-n3/blob/main/data/namespaces.json for an example ***"
},
"n3LspServer.insertNamespaces": {
"order": 8,
"scope": "resource",
"type": "string",
"enum": [
"Automatic",
"Suggest"
],
"default": "Automatic",
"description": "When found, insert a known namespace directly (Automatic) or suggest a code action (Suggest)."
},
"n3LspServer.autocomplete": {
"order": 9,
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable auto-completion of N3 terms."
},
"n3LspServer.autocompleteWithWellKnownVocabularies": {
"order": 10,
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Use terms from well-known vocabularies in auto-completion."
},
"n3LspServer.vocabulariesFile": {
"order": 11,
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to a JSON file with a single object that maps namespace URIs to text files with their terms. If the relevant auto-complete option is enabled, these terms will also be used in auto-completion.\n*** See https://github.com/william-vw/vscode-extension-n3/blob/main/data/vocab/ for an example vocabularies.json file and files with predefined vocabulary terms. ***"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^16.11.7",
"@types/vscode": "^1.37.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"eslint": "^8.26.0",
"mocha": "^9.2.1",
"typescript": "^4.9.4",
"vscode-test": "^1.3.0"
},
"dependencies": {
"python-shell": "^3.0.1",
"should": "^13.2.3",
"tsce": "^0.0.2-728e3d8f6f961ed1dd9b59ba3285788cb13ff913"
}
}