-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
255 lines (255 loc) · 6.63 KB
/
package.json
File metadata and controls
255 lines (255 loc) · 6.63 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
{
"name": "xtodo",
"displayName": "XTodo",
"description": "File-based todo management tool, supporting multi-level file structure and task status tracking",
"version": "0.0.4",
"icon": "resources/logo.png",
"publisher": "meteorOSS",
"repository": {
"type": "git",
"url": "https://github.com/meteorOSS/xtodo"
},
"keywords": [
"todo",
"task",
"productivity",
"task management",
"todo items",
"待办",
"任务管理",
"任务",
"任务清单"
],
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:todo",
"onView:todoExplorer",
"onView:todoActive"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "XTodo",
"properties": {
"xtodo.todoFolders": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Specify the list of folder paths for storing todo task files (supports absolute paths or paths relative to the workspace), searches the entire workspace when empty"
},
"xtodo.colors.notStarted": {
"type": "string",
"default": "#808080",
"description": "颜色设置: 未开始任务的颜色(灰色)",
"format": "color"
},
"xtodo.colors.inProgress": {
"type": "string",
"default": "#0066cc",
"description": "颜色设置: 进行中任务的颜色(蓝色)",
"format": "color"
},
"xtodo.colors.completed": {
"type": "string",
"default": "#008000",
"description": "颜色设置: 已完成任务的颜色(绿色)",
"format": "color"
}
}
},
"colors": [
{
"id": "xtodo.notStartedColor",
"description": "未开始任务的颜色",
"defaults": {
"dark": "#808080",
"light": "#808080",
"highContrast": "#808080"
}
},
{
"id": "xtodo.inProgressColor",
"description": "进行中任务的颜色",
"defaults": {
"dark": "#0066cc",
"light": "#0066cc",
"highContrast": "#0066cc"
}
},
{
"id": "xtodo.completedColor",
"description": "已完成任务的颜色",
"defaults": {
"dark": "#008000",
"light": "#008000",
"highContrast": "#008000"
}
}
],
"languages": [
{
"id": "todo",
"extensions": [".todo"],
"aliases": ["TODO", "todo"]
}
],
"commands": [
{
"command": "xtodo.toggleTodoStatus",
"title": "Toggle Task Status"
},
{
"command": "xtodo.refreshTodoView",
"title": "Refresh Todo View",
"icon": "$(refresh)"
},
{
"command": "xtodo.openTodoFile",
"title": "Open Todo File"
},
{
"command": "xtodo.addTodoFolder",
"title": "Add Todo Folder",
"icon": "$(add)"
},
{
"command": "xtodo.setTaskCompleted",
"title": "Mark as Completed"
},
{
"command": "xtodo.setTaskNotStarted",
"title": "Mark as Not Started"
},
{
"command": "xtodo.setTaskInProgress",
"title": "Mark as In Progress"
},
{
"command": "xtodo.convertToTask",
"title": "Convert to Task or Toggle Task Status"
},
{
"command": "xtodo.showMemoryUsage",
"title": "XTodo: 显示内存占用情况"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "todo-explorer",
"title": "Todo Tasks",
"icon": "$(checklist)"
}
]
},
"views": {
"todo-explorer": [
{
"id": "todoActive",
"name": "Active Tasks"
},
{
"id": "todoExplorer",
"name": "All Tasks"
},
{
"id": "todoCurrentProject",
"name": "Current Project"
}
]
},
"menus": {
"view/title": [
{
"command": "xtodo.addTodoFolder",
"when": "view == todoExplorer",
"group": "navigation"
},
{
"command": "xtodo.refreshTodoView",
"when": "view == todoExplorer || view == todoActive || view == todoCurrentProject",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "xtodo.setTaskCompleted",
"when": "view =~ /todo.*/ && viewItem == 'task'",
"group": "1_modification"
},
{
"command": "xtodo.setTaskInProgress",
"when": "view =~ /todo.*/ && viewItem == 'task'",
"group": "1_modification"
},
{
"command": "xtodo.setTaskNotStarted",
"when": "view =~ /todo.*/ && viewItem == 'task'",
"group": "1_modification"
}
]
},
"keybindings": [
{
"command": "xtodo.toggleTodoStatus",
"key": "alt+l",
"mac": "alt+l",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"command": "xtodo.setTaskCompleted",
"key": "alt+d",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"command": "xtodo.setTaskNotStarted",
"key": "alt+q",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"command": "xtodo.setTaskInProgress",
"key": "alt+f",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"command": "xtodo.convertToTask",
"key": "ctrl+q",
"when": "editorTextFocus && editorLangId == 'todo'"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"vsce:package": "node ./scripts/package.js",
"vsce:publish": "vsce publish"
},
"devDependencies": {
"@types/vscode": "^1.74.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"eslint": "^9.25.1",
"typescript": "^5.8.3",
"ts-loader": "^9.5.2",
"webpack": "^5.99.7",
"webpack-cli": "^6.0.1",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.5.2"
}
}