-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
254 lines (254 loc) · 9.22 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
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
{
"name": "local-history",
"publisher": "theia-dev",
"license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
"repository": {
"type": "git",
"url": "https://github.com/vince-fugnitto/local-history-ext.git"
},
"displayName": "Local History",
"description": "local history vscode extension",
"version": "0.0.3",
"engines": {
"vscode": "^1.43.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "localHistory",
"title": "Local History",
"icon": "resources/history.svg"
}
]
},
"views": {
"localHistory": [
{
"id": "localHistoryTree",
"name": "Active Editor Revisions"
}
]
},
"commands": [
{
"command": "local-history.viewHistory",
"title": "Local History: View History"
},
{
"command": "local-history.revertToPrevRevision",
"title": "Local History: Revert to Previous Revision",
"icon": {
"dark": "resources/dark/history.svg",
"light": "resources/light/history.svg"
}
},
{
"command": "local-history.removeRevision",
"title": "Local History: Remove Revision",
"icon": {
"dark": "resources/dark/trash.svg",
"light": "resources/light/trash.svg"
}
},
{
"command": "local-history.clearHistory",
"title": "Local History: Clear History"
},
{
"command": "local-history.clearHistoryWorkspace",
"title": "Local History: Clear History (Workspace)"
},
{
"command": "local-history.refreshEntry",
"title": "Local History: Refresh",
"icon": {
"dark": "resources/dark/refresh.svg",
"light": "resources/light/refresh.svg"
}
},
{
"command": "local-history:viewDocumentation",
"title": "Local History: View Documentation"
},
{
"command": "local-history.copyRevisionPath",
"title": "Local History: Copy Revision Path"
},
{
"command": "local-history.copyRevisionPathWorkspace",
"title": "Local History: Copy Revision Path (Workspace)"
}
],
"menus": {
"commandPalette": [
{
"command": "local-history.viewHistory",
"when": "editorIsOpen && resourceScheme == file"
},
{
"command": "local-history.revertToPrevRevision",
"when": "false"
},
{
"command": "local-history.removeRevision",
"when": "false"
},
{
"command": "local-history.clearHistory",
"when": "editorIsOpen && resourceScheme == file"
},
{
"command": "local-history.clearHistoryWorkspace",
"when": "workspaceFolderCount"
},
{
"command": "local-history.copyRevisionPath",
"when": "editorIsOpen && resourceScheme == file"
},
{
"command": "local-history.copyRevisionPathWorkspace",
"when": "workspaceFolderCount"
}
],
"editor/context": [
{
"command": "local-history.viewHistory",
"when": "editorTextFocus",
"group": "LocalHistory@1"
},
{
"command": "local-history.clearHistory",
"when": "editorTextFocus",
"group": "LocalHistory@2"
},
{
"command": "local-history.copyRevisionPath",
"when": "editorTextFocus",
"group": "LocalHistory@3"
}
],
"explorer/context": [
{
"command": "local-history.viewHistory",
"when": "!explorerResourceIsFolder && !explorerResourceIsRoot && !listMultiSelection",
"group": "LocalHistory@1"
},
{
"command": "local-history.clearHistory",
"when": "!explorerResourceIsFolder && !explorerResourceIsRoot && !listMultiSelection",
"group": "LocalHistory@2"
},
{
"command": "local-history.copyRevisionPath",
"when": "!explorerResourceIsFolder && !explorerResourceIsRoot && !listMultiSelection",
"group": "LocalHistory@3"
},
{
"command": "local-history.copyRevisionPathWorkspace",
"when": "explorerResourceIsFolder && explorerResourceIsRoot && !listMultiSelection",
"group": "LocalHistory@4"
}
],
"view/title": [
{
"command": "local-history.refreshEntry",
"when": "view == localHistoryTree",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "local-history.revertToPrevRevision",
"when": "view == localHistoryTree && viewItem == local-history",
"group": "inline@1"
},
{
"command": "local-history.removeRevision",
"when": "view == localHistoryTree && viewItem == local-history",
"group": "inline@2"
},
{
"command": "local-history.revertToPrevRevision",
"when": "view == localHistoryTree && viewItem == local-history",
"group": "LocalHistory@1"
},
{
"command": "local-history.removeRevision",
"when": "view == localHistoryTree && viewItem == local-history",
"group": "LocalHistory@2"
}
]
},
"configuration": {
"title": "Local History",
"properties": {
"local-history.saveDelay": {
"type": "number",
"default": 300000,
"minimum": 0,
"description": "Controls the save delay in milliseconds."
},
"local-history.fileSizeLimit": {
"type": "number",
"default": 5,
"minimum": 0.5,
"description": "Controls the maximum acceptable file size for storing revisions in megabytes."
},
"local-history.fileLimit": {
"type": "number",
"default": 30,
"minimum": 5,
"description": "Controls the maximum number of saved revisions allowed for a given file"
},
"local-history.excludeFiles": {
"type": "object",
"description": "Configure glob patterns of file paths to exclude from automatic revisions. Inherits all glob patterns from the `files.exclude` setting. The glob includes `**./local-history/**` by default.",
"default": {
"**/.local-history/**": true
},
"scope": "resource"
}
}
}
},
"scripts": {
"install": "npm run lint",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"lint": "eslint . --ext .ts"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.7",
"@types/node": "^12.11.7",
"@types/vscode": "^1.43.0",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/eslint-plugin-tslint": "^2.16.0",
"@typescript-eslint/parser": "^2.25.0",
"eslint": "^6.8.0",
"eslint-config-google": "^0.14.0",
"glob": "^7.1.5",
"mocha": "^6.2.2",
"tslint": "^5.20.0",
"typescript": "^3.6.4",
"vscode-test": "^1.2.2"
},
"dependencies": {
"delete-empty": "^3.0.0",
"find-remove": "^2.0.1",
"minimatch": "^3.0.4",
"moment": "2.24.0",
"shelljs": "^0.8.4"
}
}