-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathpackage.json
186 lines (186 loc) · 5.56 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
{
"name": "vscode-open-in-github",
"displayName": "Open in GitHub, GitLab, Gitea, Bitbucket, VisualStudio.com !",
"description": "Jump to a source code line in GitHub, GitLab, Gitea, Bitbucket, VisualStudio.com !",
"icon": "images/icon_200.png",
"version": "1.4.1",
"publisher": "ziyasal",
"license": "SEE LICENSE IN LICENSE.md",
"galleryBanner": {
"color": "#E9EBED",
"theme": "light"
},
"homepage": "https://github.com/ziyasal/vscode-open-in-github/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/ziyasal/vscode-open-in-github.git"
},
"bugs": {
"url": "https://github.com/ziyasal/vscode-open-in-github/issues"
},
"categories": [
"Other"
],
"engines": {
"vscode": "^1.30.x"
},
"activationEvents": [
"onCommand:extension.openInGitHub",
"onCommand:extension.copyGitHubLinkToClipboard",
"onCommand:extension.openPrGitProvider"
],
"main": "./src/extension",
"contributes": {
"commands": [
{
"command": "extension.openInGitHub",
"title": "Open in GitHub"
},
{
"command": "extension.copyGitHubLinkToClipboard",
"title": "Copy GitHub link to clipboard"
},
{
"command": "extension.openPrGitProvider",
"title": "Open Pull Request"
}
],
"configuration": {
"type": "object",
"title": "Open in GitHub extension configuration",
"properties": {
"openInGitHub.gitHubDomain": {
"type": [
"string"
],
"default": "github.com",
"description": "Configure a custom GitHub domain. Useful for GitHub Enterprise"
},
"openInGitHub.giteaDomain": {
"type": [
"string"
],
"default": "gitea.io",
"description": "Configure a custom Gitea domain"
},
"openInGitHub.requireSelectionForLines": {
"type": "boolean",
"default": false,
"description": "If enabled, the copied or opened URL won't include line number(s) unless there's an active selection"
},
"openInGitHub.useCommitSHAInURL": {
"type": "boolean",
"default": false,
"description": "If enabled, use commit SHA instead of branch"
},
"openInGitHub.providerType": {
"type": "string",
"default": "unknown",
"enum": [
"github",
"gitlab",
"gitea",
"bitbucket",
"visualstudio.com",
"custom"
],
"description": "Specify the provider type in Custom Site"
},
"openInGitHub.providerProtocol": {
"type": "string",
"default": "https",
"enum": [
"https",
"http"
],
"description": "Specify the provider protocol for custom sites or GitHub Enterprise"
},
"openInGitHub.alwaysOpenInDefaultBranch": {
"type": "boolean",
"default": false,
"description": "If enabled, web url will always point to default branch instead of local commit SHA or local branch"
},
"openInGitHub.customProviderPath": {
"type": "string",
"default": "https://git-repo-domain:git-path/custom-path/",
"description": "Configure a custom path to the git repo your project is hosted"
},
"openInGitHub.customBlobPath": {
"type": "string",
"default": "+",
"description": "Configure a custom blob path to connect git path and file path"
},
"openInGitHub.customLinePrefix": {
"type": "string",
"default": "#",
"description": "Configure a custom line number prefix"
},
"openInGitHub.defaultPullRequestBranch": {
"type": "string",
"default": "integration",
"description": "Specify the default destination branch for pull requests"
}
}
},
"keybindings": [
{
"command": "extension.openInGitHub",
"key": "ctrl+l g",
"mac": "ctrl+l g"
},
{
"command": "extension.copyGitHubLinkToClipboard",
"key": "ctrl+l c",
"mac": "ctrl+l c"
},
{
"command": "extension.openPrGitProvider",
"key": "ctrl+l p",
"mac": "ctrl+l p"
}
],
"menus": {
"editor/context": [
{
"command": "extension.openInGitHub"
}
],
"explorer/context": [
{
"command": "extension.openInGitHub"
},
{
"command": "extension.copyGitHubLinkToClipboard"
},
{
"command": "extension.openPrGitProvider"
}
]
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"test:linuxOSX": "CODE_TESTS_WORKSPACE=$(pwd)/test/sampleTestData CODE_EXTENSIONS_PATH=$(pwd) node ./node_modules/vscode/bin/test",
"test:windows": "cd && code -n %CD%/test/sampleTestData --extensionDevelopmentPath=%CD% --extensionTestsPath=%CD%/test --verbose",
"test": "node ./testScript",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/node": "^10.12.5",
"@types/proxyquire": "^1.3.28",
"chai": "^4.2.0",
"proxyquire": "^2.1.0",
"typescript": "^3.1.6",
"vscode": "^1.1.21"
},
"dependencies": {
"copy-paste": "^1.3.0",
"find-parent-dir": "^0.3.0",
"git-rev-2": "^0.1.0",
"git-url-parse": "^11.1.1",
"open": "6.0.0",
"parse-git-config": "^0.3.1"
}
}