generated from IWANABETHATGUY/tower-lsp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
200 lines (200 loc) · 5.56 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": "odoo-lsp",
"description": "Language server for Odoo Python/JS/XML",
"license": "MIT",
"version": "0.5.0",
"categories": [
"Programming Languages"
],
"keywords": [
"language-server",
"tower-lsp",
"odoo",
"python",
"xml",
"javascript",
"intellisense"
],
"repository": {
"type": "git",
"url": "https://github.com/Desdaemon/odoo-lsp.git"
},
"engines": {
"vscode": "^1.75.0"
},
"activationEvents": [
"onLanguage:xml",
"onLanguage:python",
"onLanguage:javascript"
],
"publisher": "Desdaemon",
"main": "./dist/extension.js",
"contributes": {
"grammars": [
{
"path": "./syntaxes/odoo-xml.tmLanguage.json",
"scopeName": "text.xml.odoo",
"injectTo": [
"text.xml"
],
"embeddedLanguages": {
"meta.embedded.inline.python": "python",
"meta.embedded.inline.javascript": "javascript",
"meta.embedded.inline.xpath": "xpath"
}
},
{
"path": "./syntaxes/odoo-owl.tmLanguage.json",
"scopeName": "text.xml.odoo.owl",
"injectTo": [
"text.xml"
],
"embeddedLanguages": {
"meta.embedded.inline.javascript": "javascript"
}
},
{
"path": "./syntaxes/odoo-python.tmLanguage.json",
"scopeName": "source.python.odoo",
"injectTo": [
"source.python"
],
"embeddedLanguages": {
"meta.embedded.expression.python": "python"
}
}
],
"commands": [
{
"command": "odoo-lsp.tsconfig",
"title": "odoo-lsp: Generate TypeScript config"
},
{
"command": "odoo-lsp.statistics",
"title": "odoo-lsp: Generate memory usage report"
},
{
"command": "odoo-lsp.restart-lsp",
"title": "odoo-lsp: Restart language server"
},
{
"command": "odoo-lsp.debug.intern",
"title": "[Debug] Print common interned strings"
}
],
"configuration": {
"type": "object",
"title": "odoo-lsp",
"properties": {
"odoo-lsp.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"enumDescriptions": [
"No traces",
"Error only",
"Full log"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"odoo-lsp.trace.binary": {
"type": "string",
"enum": [
"trace",
"debug",
"info",
"warn",
"error",
"off"
],
"default": "warn",
"markdownDescription": "Sets the level of logging done by the language server. Overridden by the [`RUST_LOG`](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) environment variable. Takes effect on extension reload."
},
"odoo-lsp.symbols.limit": {
"type": "number",
"default": 80,
"description": "Maximum amount of workspace symbols to retrieve at once."
},
"odoo-lsp.references.limit": {
"type": "number",
"default": 80,
"description": "Maximum amount of model/record references to retrieve at once."
},
"odoo-lsp.completions.limit": {
"type": "number",
"default": 200,
"description": "Maximum amount of completions to retrieve at once."
},
"odoo-lsp.module.roots": {
"type": "array",
"scope": "resource",
"items": {
"type": "string"
},
"markdownDescription": "List of module roots similar to `--addons-path`, either absolute or relative to the workspace root. Overrides any configuration files if exists. Accepts globs.",
"default": []
},
"odoo-lsp.binary.preferNightly": {
"type": "boolean",
"default": true,
"description": "Prefer nightly versions of odoo-lsp binaries. Set to false if you encounter any bugs with nightly binaries."
},
"odoo-lsp.binary.overrideVersion": {
"type": "string",
"description": "Always download a specific version of odoo-lsp, mainly used for debugging build issues. For example, nightly versions follow the format of 'nightly-YYYYMMDD'."
}
}
}
},
"scripts": {
"postinstall": "pnpm i -C client",
"vscode:prepublish": "./scripts/prepublish",
"esbuild-base": "esbuild ./client/src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./",
"compile": "cross-env NODE_ENV=production tsc -b",
"watch": "rm -rf dist && tsc -b -w",
"lint": "prettier --write . && cargo fmt && cargo clippy --fix --allow-dirty --allow-staged && ruff format",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js",
"build": "webpack --config webpack.config.js",
"package": "vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies",
"miri": "cargo +nightly miri test",
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@electron/rebuild": "^3.3.0",
"@octokit/rest": "^20.0.2",
"@types/glob": "^7.2.0",
"@types/mocha": "^8.2.3",
"@types/node": "^12.20.55",
"@types/vscode": "1.75",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"@vscode/test-electron": "^2.3.6",
"@vscode/vsce": "^2.22.0",
"conventional-changelog-cli": "^4.1.0",
"cross-env": "^7.0.3",
"esbuild": "^0.15.18",
"eslint": "^7.32.0",
"glob": "^7.2.3",
"js-yaml": "^4.1.0",
"mocha": "^8.4.0",
"prettier": "^3.0.3",
"ts-loader": "^9.5.0",
"typescript": "^5.4.2",
"vscode-uri": "^3.0.8",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"vscode-languageclient": "^8.1.0"
}
}