-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
136 lines (136 loc) · 4.84 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
{
"name": "better-folding",
"displayName": "Better Folding",
"description": "Improve the folding experience in VS Code",
"version": "0.5.1",
"engines": {
"vscode": "^1.74.0"
},
"repository": {
"type": "git",
"url": "https://github.com/mtbaqer/vscode-better-folding.git"
},
"icon": "icon_large.png",
"publisher": "MohammadBaqer",
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"keywords": [
"folding",
"fold",
"collapsing",
"collapse",
"hide",
"blocks",
"markers",
"bracket",
"brackets",
"vscode"
],
"main": "./out/main.js",
"contributes": {
"configuration": {
"title": "Better Folding",
"properties": {
"betterFolding.foldClosingBrackets": {
"order": 1,
"type": "boolean",
"default": true,
"markdownDescription": "Include closing brackets like `}` and `]` in the folding range."
},
"betterFolding.foldClosingTags": {
"order": 1,
"type": "boolean",
"default": true,
"markdownDescription": "Include closing tags like `</div>` and `</p>` in the folding range."
},
"betterFolding.showFoldedBodyLinesCount": {
"order": 2,
"type": "boolean",
"default": true,
"markdownDescription": "Shows the number of lines folded, excluding the closing bracket line. \n\nExample: `function example() { ⋯ 3 lines ⋯ `"
},
"betterFolding.showFoldedBrackets": {
"order": 3,
"type": "boolean",
"default": true,
"markdownDescription": "Shows brackets like `{` and `}` in the collapsed text. Only applies if `#betterFolding.foldClosingBrackets#` is `enabled`. \n\nExample: `function example() {…}`."
},
"betterFolding.showFunctionParameters": {
"order": 4,
"type": "boolean",
"default": true,
"markdownDescription": "Shows the function parameters in the collapsed text for functions with params in multiple lines. Only applies if `#betterFolding.showFoldedBrackets#` is `enabled`. \n\nExample: `function example(firstParam, secondParam) {…}`."
},
"betterFolding.chainFoldingRanges": {
"order": 5,
"type": "boolean",
"default": true,
"markdownDescription": "On folding a range, fold all the ranges that start on the same line where the original range ends. Only applies if `#betterFolding.showFoldedBrackets#` is `enabled`. \n\nEnabled: `function example(…) {…}`. \n\nDisabled: `function example(…) {`."
},
"betterFolding.showOnlyRegionsDescriptions": {
"order": 6,
"type": "boolean",
"default": false,
"markdownDescription": "Only shows the region description in the collapsed text. \n\nExample: `// #region some text`.\n\nBecomes: `some text`."
},
"betterFolding.showObjectPreviews": {
"order": 6,
"type": "boolean",
"default": true,
"markdownDescription": "Show the first property in the collapsed text of an object literal. Only applies if `#betterFolding.showFoldedBrackets#` is `enabled`. \n\nExample: `{ id:'123',… }`."
},
"betterFolding.excludedLanguages": {
"order": 7,
"type": "array",
"default": [],
"markdownDescription": "List of languages to exclude from folding. \n\nExample: `['javascript', 'typescript']`."
}
}
},
"commands": [
{
"command": "betterFolding.createZenFoldsAroundSelection",
"title": "Better Folding: Create Zen Folds Around Selection"
},
{
"command": "betterFolding.clearZenFolds",
"title": "Better Folding: Clear Zen Folds"
}
]
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.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": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.74.0",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@vscode/test-electron": "^2.2.0",
"esbuild": "^0.17.4",
"eslint": "^8.32.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"prettier": "2.8.2",
"typescript": "^4.9.4"
},
"dependencies": {
"@typescript-eslint/typescript-estree": "^5.49.0",
"json5": "^2.2.3",
"vscode-languageserver-protocol": "^3.17.2"
}
}