-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
197 lines (197 loc) · 5.58 KB
/
package.json
File metadata and controls
197 lines (197 loc) · 5.58 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
192
193
194
195
196
197
{
"name": "odoo-lsp",
"description": "Language server for Odoo Python/JS/XML",
"license": "MIT",
"version": "0.6.2",
"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",
"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.restart-lsp",
"title": "odoo-lsp: Restart language server"
},
{
"command": "odoo-lsp.debug.intern",
"title": "odoo-lsp: (debug) Print common interned strings"
},
{
"command": "odoo-lsp.debug.type",
"title": "odoo-lsp: (debug) Inspect resolved type at cursor"
}
],
"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": 200,
"description": "Maximum amount of workspace symbols to retrieve at once."
},
"odoo-lsp.references.limit": {
"type": "number",
"default": 200,
"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-watch": "npm run esbuild-base -- --sourcemap --watch",
"compile": "cross-env NODE_ENV=production tsc -b",
"watch": "rm -rf dist && npm run esbuild-watch",
"lint": "prettier --write . && cargo fmt && cargo clippy --fix --allow-dirty --allow-staged",
"build": "npm run esbuild-base -- --sourcemap",
"package": "npx @vscode/vsce package --no-dependencies",
"publish": "npx @vscode/vsce publish --no-dependencies",
"install-for-vscode": "(rm *.vsix || true) && npm run package && code --install-extension *.vsix",
"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": "^22.13.11",
"@types/vscode": "1.75",
"@vscode/vsce": "^2.22.0",
"conventional-changelog-cli": "^4.1.0",
"cross-env": "^7.0.3",
"esbuild": "^0.15.18",
"glob": "^7.2.3",
"js-yaml": "^4.1.0",
"mocha": "^8.4.0",
"nano-spawn": "^0.2.0",
"prettier": "^3.0.3",
"typescript": "^5.4.2",
"vscode-languageclient": "^9.0.1",
"vscode-uri": "^3.0.8"
},
"pnpm": {
"onlyBuiltDependencies": [
"@biomejs/biome",
"esbuild",
"keytar"
]
},
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
}