forked from biomejs/biome-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
155 lines (155 loc) · 4.17 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
{
"name": "biome",
"publisher": "biomejs",
"displayName": "Biome",
"description": "Biome LSP VS Code Extension",
"version": "2.3.0",
"icon": "resources/icons/icon.png",
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:json",
"onLanguage:jsonc",
"onLanguage:vue",
"onLanguage:astro",
"onLanguage:svelte",
"onLanguage:css"
],
"main": "./out/main.js",
"homepage": "https://github.com/biomejs/biome-vscode",
"readme": "https://github.com/biomejs/biome-vscode#readme",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome-vscode.git"
},
"bugs": {
"url": "https://github.com/biomejs/biome-vscode/issues"
},
"engines": {
"vscode": "^1.80.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"restrictedConfigurations": ["biome.lspBin"],
"description": "The use of external binaries is disallowed in untrusted workspaces."
}
},
"contributes": {
"languages": [
{
"id": "biome_syntax_tree",
"extensions": [".rast"]
}
],
"grammars": [
{
"language": "biome_syntax_tree",
"scopeName": "source.biome_syntax_tree",
"path": "resources/grammaers/biome_syntax_tree.tmGrammar.json"
}
],
"commands": [
{
"command": "biome.syntaxTree",
"title": "Show Syntax Tree",
"category": "Biome"
},
{
"command": "biome.restartLspServer",
"title": "Restart LSP Server",
"category": "Biome"
},
{
"command": "biome.clearVersionsCache",
"title": "Clear versions cache",
"category": "Biome"
}
],
"menus": {
"commandPalette": [
{
"command": "biome.syntaxTree",
"when": "inBiomeProject"
}
]
},
"configuration": {
"title": "Biome",
"properties": {
"biome.enabled": {
"type": "boolean",
"default": true,
"description": "Whether the Biome extension is enabled."
},
"biome_lsp.trace.server": {
"type": "string",
"scope": "window",
"enum": ["off", "messages", "verbose"],
"enumDescriptions": ["No traces", "Error only", "Full log"],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"biome.lspBin": {
"type": "string",
"default": "",
"ignoreSync": true,
"markdownDescription": "The biome lsp server executable. If the path is relative, the workspace folder will be used as base path"
},
"biome.searchInPath": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to search for the biome executable in the folders declared in the PATH environment variable"
},
"biome.rename": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/Disable Biome handling renames in the workspace. (Experimental)"
}
}
}
},
"categories": ["Formatters", "Linters"],
"keywords": ["Formatter", "Linter"],
"license": "MIT OR Apache-2.0",
"scripts": {
"compile": "esbuild src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node14",
"watch": "bun run compile --sourcemap --watch",
"package": "vsce package --skip-license -o biome_lsp.vsix",
"build": "bun run compile --minify && bun run package",
"install-extension": "code --install-extension biome_lsp.vsix --force",
"format": "biome format . --write",
"check": "biome check .",
"check:apply": "biome check . --apply-unsafe",
"pack:dev": "bun run compile && bun run package && bun run install-extension",
"tsc": "tsc",
"prepare": "lefthook install",
"changelog": "git-cliff --unreleased --prepend CHANGELOG.md"
},
"devDependencies": {
"@biomejs/biome": "1.8.1",
"@types/node": "^18.19.15",
"@types/resolve": "^1.20.6",
"@types/semver": "^7.5.7",
"@types/vscode": "^1.80.0",
"@vscode/vsce": "^2.23.0",
"esbuild": "^0.21.3",
"git-cliff": "^1.4.0",
"lefthook": "^1.6.1",
"ovsx": "^0.9.0",
"typescript": "^5.3.3"
},
"dependencies": {
"resolve": "^1.22.8",
"semver": "^7.6.0",
"undici": "^5.28.3",
"vscode-languageclient": "^8.1.0"
},
"vsce": {
"dependencies": false,
"skipLicense": true
},
"packageManager": "[email protected]"
}