-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
111 lines (111 loc) · 2.92 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
{
"publisher": "baincd",
"name": "custom-auto-fold",
"displayName": "Custom Auto Fold",
"description": "Automatically fold specific sections when files are opened",
"version": "1.1.1",
"repository": {
"url": "https://github.com/baincd/vscode-custom-auto-fold"
},
"license": "MIT",
"engines": {
"vscode": "^1.46.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "custom-auto-fold.autoFold",
"title": "Run Auto Fold"
}
],
"configuration": [
{
"properties": {
"custom-auto-fold.rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"linePattern": {
"type": "string",
"description": "Regex pattern for line to fold (can match any line within folding section)",
"examples": [
"^import\\s"
]
},
"fileGlob": {
"type": "string",
"description": "Only auto fold files that match this file glob (for glob examples see https://github.com/motemen/minimatch-cheat-sheet)",
"examples": [
"**/*.java"
]
},
"firstMatchOnly": {
"type": "boolean",
"description": "Only fold the first matching line (if false, every line that matches will be folded)",
"default": false
}
},
"required": [
"linePattern"
],
"examples": [
{
"fileGlob": "**/*.java",
"linePattern": "^import\\s",
"firstMatchOnly": true
}
]
},
"examples": [
[
{
"fileGlob": "**/*.java",
"linePattern": "^import\\s",
"firstMatchOnly": true
}
]
]
},
"custom-auto-fold.delay": {
"type": "integer",
"description": "ms delay before starting auto fold when files are opened. Auto fold must start after the folding ranges have been defined on the document. Increase or decrease this delay based on your vscode performance.",
"default": 0
},
"custom-auto-fold.betweenCommandsDelay": {
"type": "integer",
"description": "ms delay between commands. Increasing this may solve issues if your vscode experiences lag.",
"default": 0
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/vscode": "^1.46.0",
"@types/glob": "^7.1.3",
"@types/node": "^12.11.7",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"eslint": "^8.9.0",
"glob": "^7.1.3",
"typescript": "^4.5.5",
"ts-loader": "^9.2.6",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
}
}