-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
136 lines (136 loc) · 4.12 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
{
"publisher": "antfu",
"name": "array-index-inlay",
"displayName": "Array Index Inlay",
"version": "0.4.0",
"private": true,
"packageManager": "[email protected]",
"description": "Inlay hints for index of large arrays",
"author": "Anthony Fu <[email protected]>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/antfu/vscode-array-index-inlay#readme",
"repository": {
"type": "git",
"url": "https://github.com/antfu/vscode-array-index-inlay"
},
"bugs": {
"url": "https://github.com/antfu/vscode-array-index-inlay/issues"
},
"sponsor": {
"url": "https://github.com/sponsors/antfu"
},
"categories": [
"Other"
],
"main": "./dist/index.js",
"icon": "res/icon.png",
"files": [
"LICENSE.md",
"dist/*",
"res/*"
],
"engines": {
"vscode": "^1.90.0"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"category": "Array Index Inlay",
"title": "Toggle",
"command": "arrayIndexInlay.toggle"
}
],
"configuration": {
"type": "object",
"properties": {
"arrayIndexInlay.enabled": {
"type": "boolean",
"default": true,
"description": "Enable inlay hints"
},
"arrayIndexInlay.minLength": {
"type": "number",
"default": 15,
"description": "Minimum length of array to show inlay hints"
},
"arrayIndexInlay.minLines": {
"type": "number",
"default": 30,
"description": "Minimum lines of array to show inlay hints"
},
"arrayIndexInlay.startIndex": {
"type": "number",
"default": 0,
"description": "Start index of the array, default to 0"
},
"arrayIndexInlay.allowSpread": {
"type": "boolean",
"default": false,
"description": "Show inlay hints even there are spread operators in the array"
},
"arrayIndexInlay.colorizeDepth": {
"type": "boolean",
"default": false,
"description": "Colorize the inlay hints based on the depth of the array. Colors can be customized with `arrayIndexInlay.depthColors`"
},
"arrayIndexInlay.depthColors": {
"type": "array",
"default": [
"var(--vscode-editorBracketHighlight-foreground1)",
"var(--vscode-editorBracketHighlight-foreground2)",
"var(--vscode-editorBracketHighlight-foreground3)",
"var(--vscode-editorBracketHighlight-foreground4)",
"var(--vscode-editorBracketHighlight-foreground5)",
"var(--vscode-editorBracketHighlight-foreground6)"
],
"description": "Custom colors for each level of the array. Supports CSS color formats. Select an equal number of colors to your bracket colors to get the best results.",
"items": {
"type": "string"
}
}
}
}
},
"scripts": {
"build": "tsup src/index.ts --external vscode",
"dev": "nr build --watch",
"prepare": "nr update",
"update": "vscode-ext-gen --output src/generated/meta.ts --scope arrayIndexInlay",
"lint": "eslint .",
"vscode:prepublish": "nr build",
"publish": "vsce publish --no-dependencies",
"pack": "vsce package --no-dependencies",
"test": "vitest",
"typecheck": "tsc --noEmit",
"release": "bumpp && nr publish"
},
"devDependencies": {
"@antfu/eslint-config": "^2.26.0",
"@antfu/ni": "^0.22.4",
"@babel/core": "^7.25.2",
"@babel/preset-typescript": "^7.24.7",
"@babel/traverse": "^7.25.3",
"@types/babel__core": "^7.20.5",
"@types/node": "^22.4.1",
"@types/vscode": "1.90.0",
"@vscode/vsce": "^3.0.0",
"acorn": "^8.12.1",
"acorn-loose": "^8.4.0",
"acorn-walk": "^8.3.3",
"bumpp": "^9.5.1",
"eslint": "^9.9.0",
"eslint-plugin-format": "^0.1.2",
"esno": "^4.7.0",
"pnpm": "^9.7.1",
"reactive-vscode": "^0.2.1",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"vitest": "^2.0.5",
"vscode-ext-gen": "^0.4.2"
}
}