-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 4.16 KB
/
package.json
File metadata and controls
147 lines (147 loc) · 4.16 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
{
"name": "tlcsdm-java-method-sorter",
"displayName": "Tlcsdm Java Method Sorter",
"description": "Sort methods in Java classes to increase code readability",
"version": "1.0.0",
"publisher": "unknowIfGuestInDream",
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/tlcsdm/vscode-java-method-sorter"
},
"bugs": {
"url": "https://github.com/tlcsdm/vscode-java-method-sorter/issues"
},
"homepage": "https://github.com/tlcsdm/vscode-java-method-sorter#readme",
"engines": {
"vscode": "^1.110.0"
},
"categories": [
"Formatters",
"Programming Languages"
],
"keywords": [
"java",
"method",
"sorter",
"sort",
"clean code"
],
"activationEvents": [
"onLanguage:java"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "tlcsdm.methodsorter.sortMethods",
"title": "Sort Methods"
},
{
"command": "tlcsdm.methodsorter.shuffleMethodsRandomly",
"title": "Shuffle Methods Randomly"
}
],
"submenus": [
{
"id": "tlcsdm.submenu",
"label": "tlcsdm"
}
],
"menus": {
"editor/context": [
{
"submenu": "tlcsdm.submenu",
"group": "tlcsdm",
"when": "editorLangId == java"
}
],
"tlcsdm.submenu": [
{
"command": "tlcsdm.methodsorter.sortMethods",
"when": "editorLangId == java",
"group": "methodsorter"
},
{
"command": "tlcsdm.methodsorter.shuffleMethodsRandomly",
"when": "editorLangId == java",
"group": "methodsorter"
}
]
},
"configuration": {
"title": "Java Method Sorter",
"properties": {
"tlcsdm.methodsorter.sortingStrategy": {
"type": "string",
"default": "depth-first",
"enum": [
"depth-first",
"breadth-first"
],
"enumDescriptions": [
"Depth-first invocation ordering",
"Breadth-first invocation ordering"
],
"description": "Invocation ordering strategy"
},
"tlcsdm.methodsorter.applyWorkingListHeuristics": {
"type": "boolean",
"default": true,
"description": "Apply heuristics to determine start points for invocation ordering"
},
"tlcsdm.methodsorter.respectBeforeAfterRelation": {
"type": "boolean",
"default": true,
"description": "Respect before/after relation in method ordering"
},
"tlcsdm.methodsorter.clusterOverloadedMethods": {
"type": "boolean",
"default": false,
"description": "Keep overloaded methods together"
},
"tlcsdm.methodsorter.clusterGetterSetter": {
"type": "boolean",
"default": false,
"description": "Keep getter and setter methods together"
},
"tlcsdm.methodsorter.separateByAccessLevel": {
"type": "boolean",
"default": true,
"description": "Separate methods by access level (public, protected, package, private)"
},
"tlcsdm.methodsorter.separateConstructors": {
"type": "boolean",
"default": true,
"description": "Separate constructors from other methods"
},
"tlcsdm.methodsorter.applyLexicalOrdering": {
"type": "boolean",
"default": true,
"description": "Apply lexical (alphabetical) ordering as a secondary sort"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test --config ./.vscode-test.json"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/vscode": "^1.110.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.2",
"eslint": "^10.0.3",
"typescript": "^5.7.2",
"typescript-eslint": "^8.57.0"
},
"license": "MIT"
}