-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
211 lines (211 loc) · 6.74 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
{
"name": "github-linker",
"displayName": "GitHub Linker",
"description": "Make and Open Links to GitHub repositories",
"version": "0.0.15",
"publisher": "manhen",
"license": "MIT",
"icon": "img/icon.png",
"extensionDependencies": [
"vscode.git"
],
"author": {
"name": "Manuel Hentschel"
},
"repository": {
"type": "git",
"url": "https://github.com/ManuelHentschel/vscode-github-linker"
},
"bugs": {
"url": "https://github.com/ManuelHentschel/vscode-github-linker/issues"
},
"engines": {
"vscode": "^1.75.0"
},
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "githubLinker.copyUrl",
"title": "GitHub Linker: Copy GitHub link"
},
{
"command": "githubLinker.openUrlInBrowser",
"title": "GitHub Linker: Open GitHub link in browser"
},
{
"command": "githubLinker.openFileFromUrl",
"title": "GitHub Linker: Open local file from clipboard"
}
],
"menus": {
"editor/context": [
{
"command": "githubLinker.copyUrl",
"when": "config.githubLinker.showInContextMenu"
}
]
},
"configuration": {
"type": "object",
"title": "githubLinker",
"properties": {
"githubLinker.showInContextMenu": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to add githubLinker commands to the editor context menu."
},
"githubLinker.remoteUrl.useFetchUrl": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to use the fetch url (true) or push url (false) of the repository."
},
"githubLinker.remoteUrl.remoteIds": {
"type": "array",
"items": {
"type": [
"string",
"integer"
],
"description": "Name of remote or numeric index."
},
"default": [
0
],
"markdownDescription": "Preferred names or numeric indices of remote to use, if there are multiple. First to match (either by name or existence of numeric index) is used."
},
"githubLinker.templates.oneLineNumber": {
"type": "string",
"markdownDescription": "The template used to construct the `${lineSpec}` in `#githubLinker.templates.githubUrl#`, if only one line is selected. Can reference `${line0}`.",
"default": "#L${line0}"
},
"githubLinker.templates.twoLineNumbers": {
"type": "string",
"markdownDescription": "The template used to construct the `${lineSpec}` in `#githubLinker.templates.githubUrl#`, if two or more lines are selected. Can reference `${line0}`, `${line1}`.",
"default": "#L${line0}-L${line1}"
},
"githubLinker.templates.githubUrl": {
"type": "string",
"markdownDescription": "The template used to construct the GitHub url. See README for details.",
"default": "${repoUrl}/blob/${remoteHash}/${relativePath}${lineSpec}",
"examples": [
"${repoUrl}/blob/${remoteHash}/${relativePath}${lineSpec}",
"Available Values:\n${path0}\n${repoUrl}\n${relativePath}\n${lineSpec}\n${localBranch}\n${remoteBranch}\n${localHash}\n${remoteHash}\n${tag}\n${tagOrBranch}\n${tagOrLocalHash}\n${tagOrRemoteHash}\n${remoteName}\n${line0}\n${line1}\n"
]
},
"githubLinker.patterns.githubUrl": {
"type": "array",
"markdownDescription": "Search-Replace patterns that are applied to the remote URL, when making a GitHub URL. Search patterns are passed to `Regexp()` first!",
"items": {
"type": "object",
"title": "URL pattern",
"properties": {
"search": {
"type": "string",
"description": "The search pattern."
},
"replace": {
"type": "string",
"description": "The replacement string."
}
},
"examples": [
{
"search": "\\.git$",
"replace": ""
},
{
"search": "^git@(.+):(.+)$",
"replace": "https://$1/$2"
}
]
},
"default": [
{
"search": "\\.git",
"replace": ""
},
{
"search": "^git@(.+):(.+)$",
"replace": "https://$1/$2"
}
]
},
"githubLinker.patterns.openFiles": {
"type": "array",
"markdownDescription": "Search-Replace patterns that are applied to the URL/path, when opening a file from the clipboard. Search patterns are passed to `Regexp()` first!",
"items": {
"type": "object",
"title": "URL pattern",
"properties": {
"search": {
"type": "string",
"description": "The search pattern."
},
"replace": {
"type": "string",
"description": "The replacement string."
}
},
"examples": [
{
"search": "^http.*/blob/[^/]*/",
"replace": ""
},
{
"search": "^\"(.*)\"",
"replace": "$1"
}
]
},
"default": [
{
"search": "^http.*/blob/[^/]*/",
"replace": ""
},
{
"search": "^\"(.*)\"",
"replace": "$1"
}
]
},
"githubLinker.patterns.lineNumbers": {
"type": "array",
"markdownDescription": "The regex pattern used to identify line numbers. Should contain one or two capture groups.",
"items": {
"type": "string",
"title": "Line Pattern",
"examples": [
"#L(\\d+)[-:]L(\\d+)$",
"#L(\\d+)$",
"#(\\d+)[-:](\\d+)$",
"#(\\d+)$"
]
},
"default": [
"#L(\\d+)[-:]L?(\\d+)$",
"#L(\\d+)$",
"#(\\d+)[-:](\\d+)$",
"#(\\d+)$"
]
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p .",
"compile": "tsc -p .",
"lint": "eslint src --ext ts",
"watch": "tsc --watch -p ."
},
"dependencies": {},
"devDependencies": {
"@types/node": "^18.7.16",
"@types/vscode": "^1.50.0",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"eslint": "^8.23.0",
"typescript": "^4.8.3"
}
}