forked from lexical-lsp/vscode-lexical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
191 lines (191 loc) · 6.06 KB
/
Copy pathpackage.json
File metadata and controls
191 lines (191 loc) · 6.06 KB
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
{
"name": "lexical",
"displayName": "Lexical (Elixir Language Server)",
"description": "Elixir language support for Visual Studio Code",
"version": "0.0.22",
"repository": "github:lexical-lsp/vscode-lexical",
"publisher": "lexical-lsp",
"icon": "assets/lexi-logo-square-128.png",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.82.0"
},
"categories": ["Programming Languages", "Formatters"],
"keywords": ["elixir", "mix"],
"activationEvents": ["workspaceContains:mix.exs"],
"main": "./out/main.js",
"contributes": {
"languages": [
{
"id": "elixir",
"aliases": ["Elixir", "elixir"],
"extensions": [".ex", ".exs"],
"filenames": ["mix.lock"],
"configuration": "./elixir-language-configuration.json"
},
{
"id": "eex",
"aliases": ["Embedded Elixir", "EEx", "eex"],
"extensions": [".eex", ".leex"],
"configuration": "./eex-language-configuration.json"
},
{
"id": "html-eex",
"aliases": ["HTML (EEx)", "html-eex"],
"extensions": [".html.eex", ".heex"],
"configuration": "./eex-language-configuration.json"
}
],
"grammars": [
{
"language": "elixir",
"scopeName": "source.elixir",
"path": "./syntaxes/elixir.json",
"unbalancedBracketScopes": [
"keyword.operator.bitwise.elixir",
"keyword.operator.other.unbalanced.elixir",
"constant.language.symbol.elixir",
"constant.language.symbol.single-quoted.elixir",
"constant.language.symbol.double-quoted.elixir",
"entity.name.function.call.dot.elixir"
],
"embeddedLanguages": {
"comment.documentation.heredoc.elixir": "markdown"
}
},
{
"language": "eex",
"scopeName": "text.elixir",
"path": "./syntaxes/eex.json"
},
{
"language": "html-eex",
"scopeName": "text.html.eex",
"path": "./syntaxes/html-eex.json"
}
],
"problemMatchers": [
{
"name": "mixCompileError",
"owner": "elixir",
"fileLocation": ["relative", "${workspaceRoot}"],
"severity": "error",
"pattern": {
"regexp": "^\\*\\* \\((\\w+)\\) (.*):(\\d+): (.*)$",
"file": 2,
"location": 3,
"message": 0
}
},
{
"name": "mixCompileWarning",
"owner": "elixir",
"fileLocation": ["relative", "${workspaceRoot}"],
"severity": "warning",
"pattern": [
{
"regexp": "^warning: (.*)$",
"message": 1
},
{
"regexp": "^ (.*):(\\d+)(.*)$",
"file": 1,
"location": 2,
"message": 3
}
]
}
],
"configuration": {
"title": "Lexical",
"properties": {
"lexical.trace.server": {
"scope": "window",
"type": "string",
"enum": ["off", "messages", "verbose"],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"lexical.server.releasePathOverride": {
"scope": "window",
"type": "string",
"markdownDescription": "The path to the lexical executable. The path should point to a folder containing the `start_lexical.sh` or an executable file. Note that setting this to any value will disable automatic installation of Lexical."
},
"lexical.server.projectDir": {
"scope": "window",
"type": "string",
"markdownDescription": "A subdirectory of the current workspace in which to start Lexical."
},
"lexical.notifyOnServerAutoUpdate": {
"scope": "window",
"type": "boolean",
"default": true,
"markdownDescription": "Whether to notify when a new release of Lexical is installed automatically."
}
}
},
"commands": [
{
"command": "lexical.server.restart",
"category": "Lexical",
"title": "Restart Lexical's language server"
},
{
"command": "lexical.server.reindexProject",
"category": "Lexical",
"title": "Rebuild code search index"
}
],
"configurationDefaults": {
"[elixir]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
}
}
},
"scripts": {
"test-compile": "tsc -p ./src/test-e2e --outDir ./out/test-e2e && npm run esbuild && rm -rf ./out/test-e2e/fixtures && cp -r ./src/test-e2e/fixtures ./out/test-e2e/fixtures",
"lint": "biome check --formatter-enabled=false --linter-enabled=true --organize-imports-enabled=true src",
"lint:fix": "npm run lint -- --write",
"format": "biome format --write",
"format:check": "biome format",
"test": "jest",
"test:e2e": "npm run test-compile && node ./out/test-e2e/runTest.js",
"vsce:package": "vsce package",
"vsce:publish": "vsce publish",
"ovsx:publish": "ovsx publish -p ",
"vsce:login": "vsce login lexical-lsp",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"tsc": "tsc"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@jest/globals": "29.7.0",
"@types/node": "22.x",
"@types/semver": "^7.5.8",
"@types/vscode": "1.82.0",
"@vscode/test-electron": "2.4.1",
"@vscode/vsce": "3.2.1",
"esbuild": "0.24.0",
"jest": "29.7.0",
"jest-environment-node": "29.7.0",
"jest-extended": "4.0.2",
"ovsx": "0.10.1",
"synchronous-promise": "2.0.17",
"ts-jest": "29.2.5",
"typescript": "5.7.2",
"vscode-uri": "3.0.8"
},
"dependencies": {
"axios": "1.7.9",
"date-fns": "4.1.0",
"extract-zip": "2.0.1",
"semver": "7.6.3",
"vscode-languageclient": "9.0.1"
}
}