-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
283 lines (283 loc) · 9.62 KB
/
Copy pathpackage.json
File metadata and controls
283 lines (283 loc) · 9.62 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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
{
"name": "GitHubFileFetcher",
"displayName": "GitHub File Fetcher",
"description": "This extension searches and fetches files from GitHub.",
"version": "2.1.0",
"publisher": "dennykorsukewitz",
"icon": "doc/images/icon.png",
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://github.com/dennykorsukewitz/VSCode-GitHubFileFetcher/blob/dev/README.md",
"pricing": "Free",
"bugs": {
"url": "https://github.com/dennykorsukewitz/VSCode-GitHubFileFetcher/issues",
"email": "dennykorsukewitz@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/dennykorsukewitz/VSCode-GitHubFileFetcher"
},
"sponsor": {
"url": "https://github.com/sponsors/dennykorsukewitz"
},
"keywords": [
"github",
"file",
"files",
"fetch",
"fetcher",
"grab",
"download",
"get"
],
"categories": [
"Other"
],
"engines": {
"vscode": "^1.85.0"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"browser": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"watch": "tsc -watch -p ./",
"build": "tsc -p ./",
"build-web": "npm run esbuild-base -- --sourcemap",
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"pretest": "rm -Rf .vscode-test && npm run build && npm run lint",
"test": "node ./dist/test/runTest.js",
"open-in-browser": "npm run build-web && npx @vscode/test-web --extensionDevelopmentPath=."
},
"dependencies": {
"base64-to-uint8array": "^1.0.0"
},
"devDependencies": {
"@types/glob": "^9.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "^26.1.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.25.0",
"@typescript-eslint/parser": "^8.25.0",
"@vscode/test-electron": "^3.0.0",
"esbuild": "^0.28.0",
"eslint": "^10.3.0",
"eslint-plugin-n": "^18.0.1",
"mocha": "^11.1.0",
"typescript": "^6.0.3"
},
"overrides": {
"minimatch": "5.1.2",
"glob": "8.1.0"
},
"contributes": {
"commands": [
{
"command": "gitHubFileFetcher.run",
"title": "Searches and fetches files from GitHub.",
"category": "GitHubFileFetcher"
},
{
"command": "gitHubFileFetcher.checkForUpdates",
"title": "Check current file for updates",
"category": "GitHubFileFetcher"
},
{
"command": "gitHubFileFetcher.fetchHistory.show",
"title": "Show Stored Fetch History in a new file",
"category": "GitHubFileFetcher"
},
{
"command": "gitHubFileFetcher.fetchHistory.clear",
"title": "Clear Stored Fetch History",
"category": "GitHubFileFetcher"
},
{
"command": "gitHubFileFetcher.fetchHistory.add",
"title": "Add",
"category": "GitHubFileFetcher",
"icon": "$(add)"
},
{
"command": "gitHubFileFetcher.fetchHistory.refresh",
"title": "Refresh",
"category": "GitHubFileFetcher",
"icon": "$(refresh)"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeFile",
"title": "Remove File from Fetch History",
"category": "GitHubFileFetcher",
"icon": "$(trash)"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeWorkspace",
"title": "Remove Workspace from Fetch History",
"category": "GitHubFileFetcher",
"icon": "$(trash)"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeMissing",
"title": "Remove Missing Files from Fetch History",
"category": "GitHubFileFetcher",
"icon": "$(warning)"
}
],
"menus": {
"commandPalette": [
{
"command": "gitHubFileFetcher.fetchHistory.add",
"when": "false"
},
{
"command": "gitHubFileFetcher.fetchHistory.refresh",
"when": "false"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeFile",
"when": "false"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeWorkspace",
"when": "false"
}
],
"view/title": [
{
"command": "gitHubFileFetcher.fetchHistory.add",
"when": "view == gitHubFileFetcher.fetchHistory",
"group": "navigation@1"
},
{
"command": "gitHubFileFetcher.fetchHistory.refresh",
"when": "view == gitHubFileFetcher.fetchHistory",
"group": "navigation@2"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeMissing",
"when": "view == gitHubFileFetcher.fetchHistory",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "gitHubFileFetcher.fetchHistory.removeFile",
"when": "view == gitHubFileFetcher.fetchHistory && viewItem == fetchHistoryFile",
"group": "1_modify"
},
{
"command": "gitHubFileFetcher.fetchHistory.removeWorkspace",
"when": "view == gitHubFileFetcher.fetchHistory && viewItem == fetchHistoryWorkspace",
"group": "1_modify"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "gitHubFileFetcher",
"title": "GitHub File Fetcher",
"icon": "resources/icon.svg"
}
]
},
"views": {
"gitHubFileFetcher": [
{
"id": "gitHubFileFetcher.fetchHistory",
"name": "Fetch History",
"contextualTitle": "GitHub Fetch History"
}
]
},
"keybindings": [
{
"command": "gitHubFileFetcher.run",
"key": "alt+shift+g",
"mac": "alt+cmd+g"
}
],
"configuration": {
"type": "object",
"title": "GitHub File Fetcher",
"properties": {
"gitHubFileFetcher.informationMessages": {
"order": 1,
"type": "string",
"description": "Information messages will be displayed.",
"default": "true",
"enum": [
"false",
"true",
"verbose"
],
"enumDescriptions": [
"No, nothing will be displayed.",
"Yes, the normal information will be displayed.",
"Yes, all the information will be displayed."
]
},
"gitHubFileFetcher.fetchHistory": {
"order": 2,
"type": "boolean",
"description": "Controls whether 'GitHub File Fetcher' fetch history is enabled. When enabled, the 'workspace folder', 'destination file', 'owner/repository', 'branch', 'file', 'commit id' and 'UTC timestamp' of the fetched file will be stored to global state 'gitHubFileFetcher.workspaceFolders'.",
"default": true
},
"gitHubFileFetcher.checkForUpdates": {
"order": 3,
"type": "boolean",
"description": "When enabled, compares the active file to GitHub if a fetch history entry exists (see gitHubFileFetcher.fetchHistory). Notifications always include up-to-date and out-of-date results; use gitHubFileFetcher.checkForUpdatesMessages for short vs detailed text.",
"default": true
},
"gitHubFileFetcher.checkForUpdatesMessages": {
"order": 4,
"type": "string",
"description": "How much detail to show when comparing the file to GitHub (after fetch history was stored). With \"verbose\", automatic checks (switching editors) use a short toast; run the \"Check for Updates\" command for a modal with full multi-line details.",
"default": "default",
"enum": [
"default",
"verbose"
],
"enumDescriptions": [
"Short notifications only (always, including when up to date).",
"Short toast when the editor changes; full details in a modal dialog when you run \"Check for Updates\"."
]
},
"gitHubFileFetcher.checkForUpdatesHintSeconds": {
"order": 5,
"type": "number",
"default": 5,
"minimum": 0,
"maximum": 120,
"description": "How long (in seconds) to keep the short compare result visible in the notification area before it closes. At 0, uses a standard information or warning toast (VS Code decides when it hides). Above 0, uses a timed notification (VS Code cannot auto-dismiss showInformationMessage/showWarningMessage on a custom schedule)."
},
"gitHubFileFetcher.repositories": {
"order": 6,
"type": "array",
"items": {
"type": "string"
},
"description": "List of possible GitHub repositories. GitHub {owner}/{repo}.",
"default": [
"dennykorsukewitz/VSCode-GitHubFileFetcher"
]
},
"gitHubFileFetcher.githubUsername": {
"order": 7,
"type": "string",
"description": "The GitHub API is limited to 60 requests per hour for non authorized requests. You can provide your GitHub username and an access token to push this limit to 5000 requests per hour."
},
"gitHubFileFetcher.githubToken": {
"order": 8,
"type": "string",
"description": "The GitHub API is limited to 60 requests per hour for non authorized requests. You can provide your GitHub username and an access token to push this limit to 5000 requests per hour."
}
}
}
}
}