-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
231 lines (231 loc) · 7.5 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
227
228
229
230
231
{
"name": "elixir-tools",
"displayName": "elixir-tools",
"homepage": "https://github.com/elixir-tools/elixir-tools.vscode",
"description": "Elixir extension with support for Next LS and Credo Language Server",
"publisher": "elixir-tools",
"version": "0.15.1",
"repository": {
"type": "git",
"url": "https://github.com/elixir-tools/elixir-tools.vscode.git"
},
"icon": "images/logo.png",
"sponsor": {
"url": "https://github.com/sponsors/mhanberg"
},
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Programming Languages",
"Linters",
"Formatters"
],
"keywords": [
"elixir",
"lsp",
"ls",
"nextls",
"heex",
"surface",
"credo"
],
"activationEvents": [
"onLanguage:elixir",
"onLanguage:phoenix-heex",
"onLanguage:surface"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": [
{
"title": "Next LS",
"properties": {
"elixir-tools.nextLS.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to start **Next LS**.",
"order": 1
},
"elixir-tools.nextLS.adapter": {
"type": "string",
"enum": [
"stdio",
"tcp"
],
"default": "stdio",
"markdownDescription": "Which adapter to use when connecting to **Next LS**."
},
"elixir-tools.nextLS.port": {
"type": "integer",
"default": 9000,
"markdownDescription": "If adapter is `tcp`, use this port to connect to a running server.\n\nYou can start the server with `path/to/nextls --port <port>`."
},
"elixir-tools.nextLS.MIX_ENV": {
"type": "string",
"default": "dev",
"markdownDescription": "The MIX_ENV to use when starting the runtime for your project."
},
"elixir-tools.nextLS.MIX_TARGET": {
"type": "string",
"default": "host",
"markdownDescription": "The MIX_TARGET to use when starting the runtime for your project."
},
"elixir-tools.nextLS.spitfire": {
"type": "boolean",
"default": false,
"markdownDescription": "Enables or disables the use of the Spitfire parser internally."
},
"elixir-tools.nextLS.experimental.completions.enable": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to activate completions. Defaults to false."
},
"elixir-tools.nextLS.installationDirectory": {
"type": "string",
"default": "~/.cache/elixir-tools/nextls/bin/",
"markdownDescription": "Overrides the default installation directory for the **Next LS** server binary."
},
"elixir-tools.nextLS.extensions.credo.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls whether the Credo extension is activated."
},
"elixir-tools.nextLS.extensions.credo.cli_options": {
"type": "array",
"default": [],
"markdownDescription": "Configures the CLI options to pass to the Credo extension."
},
"elixir-tools.nextLS.trace.server": {
"type": "string",
"scope": "window",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Next LS."
}
}
},
{
"title": "Credo Language Server",
"properties": {
"elixir-tools.credo.enable": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to start **Credo Language Server**",
"order": 1
},
"elixir-tools.credo.adapter": {
"type": "string",
"enum": [
"stdio",
"tcp"
],
"default": "stdio",
"markdownDescription": "Which adapter to use when connecting to **Credo Language Server**."
},
"elixir-tools.credo.port": {
"type": "integer",
"default": 9000,
"markdownDescription": "If adapter is `tcp`, use this port to connect to a running server.\n\nYou can start the server with `path/to/credo-language-server --port <port>`."
},
"elixir-tools.credo.version": {
"type": "string",
"default": "latest",
"markdownDescription": "Specifies the version of **Credo Language Server**.\n\nDefaults to `latest`."
},
"elixir-tools.credo.trace.server": {
"type": "string",
"scope": "window",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Next LS."
}
}
}
],
"languages": [
{
"id": "elixir",
"extensions": [
".ex",
".exs"
],
"filenames": [
"mix.lock"
],
"configuration": "./elixir-language-configuration.json"
}
],
"commands": [
{
"command": "elixir-tools.uninstall-nextls",
"title": "elixir-tools: Uninstall Next LS"
},
{
"command": "elixir-tools.toPipe",
"title": "Convert to pipe (Next LS)"
},
{
"command": "elixir-tools.fromPipe",
"title": "Convert from pipe (Next LS)"
},
{
"command": "elixir-tools.aliasRefactor",
"title": "Refactor a module to an alias (Next LS)"
}
],
"grammars": [
{
"language": "elixir",
"scopeName": "source.elixir",
"path": "./syntaxes/elixir.json"
}
]
},
"scripts": {
"vscode:prepublish": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --target=node16 --minify",
"compile-tests": "tsc -p . --outDir out",
"compile-dist": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --target=node16 --sourcemap",
"watch-tests": "tsc -p . -w --outDir out",
"lint": "eslint src --ext ts",
"fix": "eslint src --ext ts --fix",
"typecheck": "tsc",
"build-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --target=node16",
"build": "yarn build-base --sourcemap",
"watch": "yarn build-base --sourcemap --watch",
"pretest": "yarn typecheck && yarn compile-dist && yarn build",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"vscode-languageclient": "^9.0.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^18.1.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vscode/test-electron": "^2.3.0",
"commitlint": "^18.2.0",
"esbuild": "^0.20.1",
"eslint": "^8.36.0",
"eslint-plugin-prettier": "^4.2.1",
"glob": "^8.1.0",
"mocha": "^10.3.0",
"node-fetch": "^3.3.1",
"prettier": "^2.8.8",
"sinon": "^17.0.1",
"typescript": "^4.9.5"
}
}