forked from pragmagic/vscode-nim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
226 lines (226 loc) · 7.46 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
{
"name": "nim",
"displayName": "Nim",
"description": "Nim language support for Visual Studio Code",
"version": "0.6.6",
"publisher": "kosz78",
"author": {
"name": "Xored Software Inc."
},
"license": "MIT",
"icon": "images/nim_icon.png",
"homepage": "https://github.com/pragmagic/vscode-nim/blob/master/README.md",
"categories": [
"Programming Languages",
"Linters"
],
"galleryBanner": {
"color": "#2C2A35",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/pragmagic/vscode-nim.git"
},
"bugs": {
"url": "https://github.com/pragmagic/vscode-nim/issues"
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "node ./node_modules/tslint/bin/tslint ./src/*.ts ./test/*.ts"
},
"dependencies": {
"nedb": "1.8.0"
},
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^10.17.17",
"tslint": "^5.20.1",
"typescript": "^2.6.1",
"vscode": "^1.1.36"
},
"extensionDependencies": [
"ms-vscode.cpptools"
],
"engines": {
"vscode": "^1.27.0"
},
"activationEvents": [
"onLanguage:nim",
"onLanguage:nimcfg",
"onLanguage:nimble",
"onCommand:nim.build",
"onCommand:nim.run",
"onCommand:nim.runTest",
"onCommand:nim.execSelectionInTerminal"
],
"main": "./out/nimMain",
"contributes": {
"languages": [
{
"id": "nim",
"aliases": [
"Nim",
"nim"
],
"extensions": [
".nim",
".nims",
"nim.cfg",
".nim.cfg"
],
"configuration": "./nimcfg.json"
},
{
"id": "nimble",
"aliases": [
"Nimble",
"nimble"
],
"extensions": [
".nimble"
],
"configuration": "./nimcfg.json"
}
],
"grammars": [
{
"language": "nim",
"scopeName": "source.nim",
"path": "./syntaxes/nim.json"
},
{
"language": "nimble",
"scopeName": "source.nimble",
"path": "./syntaxes/nimble.json"
}
],
"commands": [
{
"command": "nim.run.file",
"title": "Run selected Nim file",
"category": "Nim"
},
{
"command": "nim.check",
"title": "Check Nim project",
"category": "Nim"
},
{
"command": "nim.execSelectionInTerminal",
"title": "Run Selection/Line in Nim Terminal",
"category": "Nim"
}
],
"menus": {
"editor/context": [
{
"when": "editorLangId == 'nim'",
"command": "nim.run.file",
"group": "run@1"
}
]
},
"keybindings": [
{
"key": "F6",
"command": "nim.run.file",
"when": "editorLangId == 'nim'"
},
{
"key": "ctrl+alt+b",
"command": "nim.check",
"when": "editorLangId == 'nim'"
},
{
"key": "shift+enter",
"command": "nim.execSelectionInTerminal",
"when": "editorFocus && editorLangId == nim && !findInputFocussed && !replaceInputFocussed"
}
],
"configuration": {
"type": "object",
"title": "Nim configuration",
"properties": {
"nim.project": {
"type": "array",
"default": [],
"description": "Nim project file, if empty use current selected."
},
"nim.projectMapping": {
"type": "object",
"default": {},
"description": "For non project mode list of per file project mapping using regex, for example ```{\"(.*).inim\": \"$1.nim\"}```"
},
"nim.test-project": {
"type": "string",
"default": "",
"description": "Optional test project."
},
"nim.buildOnSave": {
"type": "boolean",
"default": false,
"description": "Execute build task from tasks.json file on save."
},
"nim.buildCommand": {
"type": "string",
"default": "c",
"description": "Nim build command (c, cpp, doc, etc)"
},
"nim.runOutputDirectory": {
"type": "string",
"default": "",
"description": "Output directory for run selected file command. The directory is relative to the workspace root."
},
"nim.lintOnSave": {
"type": "boolean",
"default": true,
"description": "Check code by using 'nim check' on save."
},
"nim.enableNimsuggest": {
"type": "boolean",
"default": true,
"description": "Enable calling nimsuggest process to provide completion suggestions, hover suggestions, etc.\nThis option requires restart to take effect."
},
"nim.logNimsuggest": {
"type": "boolean",
"default": false,
"description": "Enable verbose logging of nimsuggest to use profile directory."
},
"nim.licenseString": {
"type": "string",
"default": "",
"description": "Optional license text that will be inserted on nim file creation."
},
"nim.nimsuggestRestartTimeout": {
"type": "integer",
"default": 60,
"description": "Nimsuggest will be restarted after this timeout in minutes, if 0 then restart disabled.\nThis option requires restart to take effect."
},
"nim.nimprettyIndent": {
"type": "integer",
"default": 0,
"description": "Nimpretty: set the number of spaces that is used for indentation\n--indent:0 means autodetection (default behaviour)."
},
"nim.nimprettyMaxLineLen": {
"type": "integer",
"default": 80,
"description": "Nimpretty: set the desired maximum line length (default: 80)."
}
}
},
"breakpoints": [
{
"language": "nim"
}
],
"snippets": [
{
"language": "nim",
"path": "./snippets/nim.json"
}
]
}
}