-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
196 lines (196 loc) · 6.34 KB
/
package.json
File metadata and controls
196 lines (196 loc) · 6.34 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"name": "vscode-function-separators",
"displayName": "Function Separators",
"description": "Add simple comment line separators above each function to make them stand out. Also jump between the separators.",
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/eridien/vscode-function-separators.git"
},
"version": "0.0.9",
"engines": {
"vscode": "^1.104.0"
},
"publisher": "eridien",
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "vscode-function-separators.insertSeparators",
"title": "Insert Separators Above Functions"
},
{
"command": "vscode-function-separators.removeSeparators",
"title": "Remove Function Separators"
},
{
"command": "vscode-function-separators.jumpNext",
"title": "Jump To Next Function Separator"
},
{
"command": "vscode-function-separators.jumpPrev",
"title": "Jump To Previous Function Separator"
}
],
"keybindings": [
{
"command": "vscode-function-separators.insertSeparators",
"key": "ctrl+alt+shift+/",
"mac": "cmd+alt+shift+/",
"when": "editorTextFocus"
},
{
"command": "vscode-function-separators.removeSeparators",
"key": "ctrl+alt+shift+'",
"mac": "cmd+alt+shift+'",
"when": "editorTextFocus"
},
{
"command": "vscode-function-separators.jumpNext",
"key": "ctrl+alt+shift+.",
"mac": "cmd+alt+shift+.",
"when": "editorTextFocus"
},
{
"command": "vscode-function-separators.jumpPrev",
"key": "ctrl+alt+shift+,",
"mac": "cmd+alt+shift+,",
"when": "editorTextFocus"
}
],
"configuration": {
"properties": {
"function-separators.minFuncHeight": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 1024,
"order": 1,
"title": "Minimum Function Height",
"description": "Only add separators to functions with at least this many lines of code."
},
"function-separators.includeNested": {
"type": "boolean",
"default": false,
"order": 2,
"title": "Include Nested Functions",
"description": "When enabled, add separators to nested functions."
},
"function-separators.blankLinesAbove": {
"type": "number",
"default": 1,
"minimum": 0,
"maximum": 1024,
"order": 3,
"title": "Blank Lines Above",
"description": "Number of blank lines to add above the function separator."
},
"function-separators.blankLinesBelow": {
"type": "number",
"default": 1,
"minimum": 0,
"maximum": 1024,
"order": 4,
"title": "Blank Lines Below",
"description": "Number of blank lines to add below the function separator."
},
"function-separators.leftFillString": {
"type": "string",
"default": "=",
"order": 5,
"title": "Separator Left Fill String",
"description": "The string repeated to the left of the function name. It may be multiple characters."
},
"function-separators.rightFillString": {
"type": "string",
"default": "=",
"order": 6,
"title": "Separator Right Fill String",
"description": "The string repeated to the right of the function name. It may be multiple characters."
},
"function-separators.indent": {
"type": "number",
"default": 0,
"minimum": -1,
"maximum": 1024,
"order": 7,
"title": "Separator Indent",
"description": "Number of spaces to indent the function separator. -1 means match the function's indent."
},
"function-separators.width": {
"type": "number",
"default": 80,
"minimum": -1,
"maximum": 1024,
"order": 8,
"title": "Width of Separator",
"description": "Total width of the function separator including indentation. -1 means match the widest line in the file."
},
"function-separators.splitName": {
"type": "boolean",
"default": true,
"order": 9,
"title": "Split Function Name",
"description": "Split the function name into multiple words by _ and camelcase."
},
"function-separators.case": {
"type": "string",
"order": 10,
"default": "Uppercase",
"enum": [
"Original",
"Lowercase",
"Capitalize",
"Uppercase"
],
"enumDescriptions": [
"Keep the original case of the function name.",
"Convert entire function name to lowercase.",
"Capitalize each word in the function name.",
"Convert entire function name to uppercase."
],
"title": "Function Name Case",
"description": "Controls the case of the function name."
},
"function-separators.fileWrap": {
"type": "boolean",
"default": true,
"order": 11,
"title": "Jump Between Files",
"description": "Jump to the next file when passing the end of the current file instead of wrapping to the top of the current file."
}
}
}
},
"scripts": {
"build": "npm run compile",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p .",
"watch": "tsc -p . -w",
"rebuild": "rm -rf node_modules package-lock.json && npm install",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext .ts,.tsx",
"test": "vscode-test",
"lint:watch": "echo 'eslint:watch not used , running eslint extension instead'"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/vscode": "^1.104.0",
"@typescript-eslint/eslint-plugin": "^8.42.0",
"@typescript-eslint/parser": "^8.42.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.34.0",
"typescript": "^5.9.2"
},
"dependencies": {
"web-tree-sitter": "^0.25.9"
}
}