forked from AtroxEGO/vscode-better-folding-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
149 lines (149 loc) · 5.51 KB
/
Copy pathpackage.json
File metadata and controls
149 lines (149 loc) · 5.51 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
{
"name": "better-folding-plus",
"displayName": "Better Folding Plus",
"description": "Improve the folding experience in VS Code",
"version": "0.6.1",
"engines": {
"vscode": "^1.74.0"
},
"repository": {
"type": "git",
"url": "https://github.com/AtroxEGO/vscode-better-folding"
},
"icon": "icon_large.png",
"publisher": "AtroxEGO",
"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": {
"betterFoldingPlus.foldClosingBrackets": {
"order": 1,
"type": "boolean",
"default": true,
"markdownDescription": "Include closing brackets like `}` and `]` in the folding range."
},
"betterFoldingPlus.foldClosingTags": {
"order": 1,
"type": "boolean",
"default": true,
"markdownDescription": "Include closing tags like `</div>` and `</p>` in the folding range."
},
"betterFoldingPlus.collapsedBodyContent": {
"order": 2,
"type": "string",
"default": "content",
"enum": [
"count",
"content",
"none"
],
"markdownDescription": "Determines what content replaces the collapsed body text. \n\n- `count`: Shows the number of folded lines (e.g., `⋯ 3 lines ⋯`).\n- `content`: Shows the content of the first line of the body (e.g., ` return value' `).\n- `none`: Uses the default ellipsis (`…`)."
},
"betterFoldingPlus.collapsedMaxBodyLength": {
"order": 2,
"type": "integer",
"default": 30,
"markdownDescription": "The maximum number of characters to show in the collapsed body text. Only applies if `#betterFoldingPlus.collapsedBodyContent#` is `content`. \n"
},
"betterFoldingPlus.showFoldedBrackets": {
"order": 3,
"type": "boolean",
"default": true,
"markdownDescription": "Shows brackets like `{` and `}` in the collapsed text. Only applies if `#betterFoldingPlus.foldClosingBrackets#` is `enabled`. \n\nExample: `function example() {…}`."
},
"betterFoldingPlus.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 `#betterFoldingPlus.showFoldedBrackets#` is `enabled`. \n\nExample: `function example(firstParam, secondParam) {…}`."
},
"betterFoldingPlus.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 `#betterFoldingPlus.showFoldedBrackets#` is `enabled`. \n\nEnabled: `function example(…) {…}`. \n\nDisabled: `function example(…) {`."
},
"betterFoldingPlus.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`."
},
"betterFoldingPlus.showObjectPreviews": {
"order": 6,
"type": "boolean",
"default": true,
"markdownDescription": "Show the first property in the collapsed text of an object literal. Only applies if `#betterFoldingPlus.showFoldedBrackets#` is `enabled`. \n\nExample: `{ id:'123',… }`."
},
"betterFoldingPlus.excludedLanguages": {
"order": 7,
"type": "array",
"default": [],
"markdownDescription": "List of languages to exclude from folding. \n\nExample: `['javascript', 'typescript']`."
}
}
},
"commands": [
{
"command": "betterFoldingPlus.createZenFoldsAroundSelection",
"title": "Better Folding: Create Zen Folds Around Selection"
},
{
"command": "betterFoldingPlus.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",
"deploy": "vsce publish --yarn"
},
"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",
"@vscode/vsce": "^3.2.1",
"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"
}
}