-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
177 lines (177 loc) · 4.73 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
{
"name": "vscode-erg",
"displayName": "vscode-erg",
"description": "Erg language support for Visual Studio Code",
"publisher": "erg-lang",
"version": "0.1.19",
"engines": {
"vscode": "^1.70.0"
},
"categories": ["Programming Languages"],
"icon": "images/icon.jpg",
"repository": {
"type": "git",
"url": "https://github.com/erg-lang/vscode-erg.git"
},
"main": "./dist/extension.js",
"activationEvents": [
"workspaceContains:package.er",
"workspaceContains:*/package.er",
"onLanguage:erg"
],
"contributes": {
"commands": [
{
"title": "Restart Language Server",
"category": "Erg",
"command": "erg.restartLanguageServer"
}
],
"languages": [
{
"id": "erg",
"aliases": ["Erg", "erg"],
"extensions": [".er"],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "erg",
"scopeName": "source.erg",
"path": "./syntaxes/erg.tmLanguage.json"
}
],
"configuration": {
"type": "object",
"title": "vscode-erg",
"properties": {
"vscode-erg.ergpath.path": {
"type": "string",
"default": "",
"markdownDescription": "Path to `.erg` directory"
},
"vscode-erg.executablePath": {
"type": "string",
"default": "",
"markdownDescription": "Path to `erg` executable"
},
"vscode-erg.checkForUpdates": {
"type": "boolean",
"default": true,
"markdownDescription": "Check for updates on startup"
},
"vscode-erg.lsp.diagnostics": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable diagnostics"
},
"vscode-erg.lsp.inlayHints": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable inlay hints"
},
"vscode-erg.lsp.semanticTokens": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable semantic tokens"
},
"vscode-erg.lsp.hover": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable hover"
},
"vscode-erg.lsp.completion": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable completion"
},
"vscode-erg.lsp.codeAction": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable code action"
},
"vscode-erg.lsp.codeLens": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable code lens"
},
"vscode-erg.lsp.signatureHelp": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable signature help"
},
"vscode-erg.lsp.documentHighlight": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable document highlight"
},
"vscode-erg.lsp.documentLink": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable document link"
},
"vscode-erg.lsp.selectionRange": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable selection range"
},
"vscode-erg.lsp.smartCompletion": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable smart completion (see [ELS features](https://github.com/erg-lang/erg/blob/main/crates/els/doc/features.md))"
},
"vscode-erg.lsp.checkOnType": {
"type": "boolean",
"default": false,
"markdownDescription": "Perform checking each time any character is entered. This improves the accuracy of completion, etc., but may slow down the execution of ELS"
},
"vscode-erg.lsp.lint": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable linting"
}
}
}
},
"scripts": {
"vscode:publish": "vsce publish",
"vscode:prepublish": "npm run package",
"vscode:package": "vsce package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"test": "node ./out/test/runTest.js",
"type-check": "tsc --noEmit",
"check": "biome check .",
"lint": "biome lint .",
"format": "biome format .",
"lint:fix": "biome lint --write .",
"lint:fix-unsafe": "biome lint --write --unsafe .",
"format:fix": "biome format --write ."
},
"dependencies": {
"compare-versions": "^6.1.0",
"vscode-languageclient": "^8.0.2"
},
"devDependencies": {
"@biomejs/biome": "^1.8.2",
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "18.x",
"@types/vscode": "^1.70.0",
"@vscode/test-electron": "^2.2.1",
"glob": "^8.0.3",
"mocha": "^10.2.0",
"ts-loader": "^9.4.2",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"lint-staged": {
"*": "biome format --write"
}
}