-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
105 lines (105 loc) · 6.29 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
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "open-in-atom",
"description": "Open the current file in the Atom editor",
"publisher": "sourcegraph",
"activationEvents": [
"*"
],
"wip": false,
"categories": [
"Code editors"
],
"tags": [
"atom",
"editor",
"open"
],
"contributes": {
"actions": [
{
"id": "openInAtom.open.file",
"command": "openInAtom.open.file",
"commandArguments": [
"${resource.uri}"
],
"title": "Open file in Atom",
"category": "Open in atom",
"actionItem": {
"description": "Open file in atom",
"iconURL": "data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid'%3E%3Cdefs/%3E%3Cdefs%3E%3ClinearGradient x1='50%25' y1='4%25' x2='50%25' y2='100%25' id='a'%3E%3Cstop stop-color='%23FDFDFD' offset='0%25'/%3E%3Cstop stop-color='%23CBCBCB' offset='100%25'/%3E%3C/linearGradient%3E%3ClinearGradient x1='50%25' y1='4%25' x2='50%25' y2='100%25' id='b'%3E%3Cstop stop-color='%23B2E198' offset='0%25'/%3E%3Cstop stop-color='%2304A171' offset='100%25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle fill='url(%23a)' cx='128' cy='128' r='127.9'/%3E%3Ccircle fill='url(%23b)' cx='127.9' cy='128.1' r='116.9'/%3E%3Cpath d='M100 110l-4 6-3-11 12-1-5 6zm104 8c-5-4-10-8-18-11a172 172 0 00-64-12c17-20 32-30 41-30l5 1c5 3 6 11 4 23a4 4 0 008 2c4-20-2-29-7-32-3-2-6-3-10-3-14 1-34 16-52 39l-20 2-2-10c-2-13 0-23 5-25l3-1c4 0 11 3 18 9a4 4 0 005-7c-9-7-17-11-24-10l-5 1c-5 3-8 7-10 14v20l1 10-14 4c-18 7-22 16-22 22-1 6 2 14 18 23a4 4 0 004-8c-9-5-14-10-14-15 0-6 11-13 30-17l7 19c-7 13-12 25-14 36-2 8-3 15-2 21 1 7 4 11 8 14 2 2 5 3 9 3 6 0 13-3 23-10a4 4 0 10-5-7c-9 7-18 10-22 7-5-3-6-13-3-26l10-28 4 7c9 19 21 36 33 47 6 5 12 9 17 11 3 2 6 2 9 2l7-1c5-3 8-7 10-13l1-20c-2-15-8-33-16-51a4 4 0 00-8 3c8 18 14 35 15 49 1 13-1 22-5 24-5 3-14-1-24-11a163 163 0 01-38-56 211 211 0 0115-24 199 199 0 0168 12c12 5 19 11 19 17 0 5-6 9-16 13a4 4 0 003 8c17-6 21-15 21-21 1-5-2-10-6-14z' fill='%23F2F8F6'/%3E%3Cpath d='M119 129a9 9 0 1019 0 9 9 0 00-19 0' fill='%23F1F8F3'/%3E%3C/svg%3E"
}
}
],
"menus": {
"editor/title": [
{
"action": "openInAtom.open.file",
"when": "resource.type === 'textDocument'"
}
],
"commandPalette": [
{
"action": "openInAtom.open.file",
"when": "resource.type === 'textDocument'"
}
]
},
"configuration": {
"properties": {
"openInAtom.basePath": {
"description": "The absolute path on the machine to the folder that is expected to contain all repositories.",
"type": "string",
"format": "regex",
"pattern": "^[^~]+"
},
"openInAtom.replacements": {
"description": "Take key-value pairs where each key is replaced by its value in the final url. The key can be a string or a RegExp pattern, and the value must be a string. The final path must be a valid path on the machine to the folder that is expected to contain all repositories.",
"type": "object",
"format": "{}",
"examples": ["'(?<=Documents\/)(.*[\\\/])': 'string-to-add-$1'", "'string-to-remove': ''"]
},
"openInAtom.osPaths": {
"description": "The absolute path on each platform to the folder that is expected to contain all repositories. Currently supports 'windows', 'mac', and 'linux' as keys.",
"type": "object",
"format": "{}"
}
}
}
},
"version": "0.0.0-DEVELOPMENT",
"repository": {
"type": "git",
"url": "https://github.com/sourcegraph/sourcegraph-open-in-atom"
},
"license": "Apache-2.0",
"main": "dist/open-in-atom.js",
"scripts": {
"eslint": "eslint 'src/**/*.ts'",
"typecheck": "tsc -p tsconfig.json",
"build": "parcel build --out-file dist/open-in-atom.js src/open-in-atom.ts",
"symlink-package": "mkdirp dist && lnfs ./package.json ./dist/package.json",
"serve": "yarn run symlink-package && parcel serve --no-hmr --out-file dist/open-in-atom.js src/open-in-atom.ts",
"watch:typecheck": "tsc -p tsconfig.json -w",
"watch:build": "tsc -p tsconfig.dist.json -w",
"sourcegraph:prepublish": "yarn run typecheck && yarn run build"
},
"browserslist": [
"last 1 Chrome versions",
"last 1 Firefox versions",
"last 1 Edge versions",
"last 1 Safari versions"
],
"devDependencies": {
"@sourcegraph/eslint-config": "^0.37.1",
"@sourcegraph/tsconfig": "^4.0.1",
"@types/node": "22.10.5",
"eslint": "^9.17.0",
"lnfs-cli": "^2.1.0",
"mkdirp": "^1.0.4",
"parcel-bundler": "^1.12.4",
"sourcegraph": "^25.7.0",
"typescript": "^3.9.7"
},
"icon": "data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid'%3E%3Cdefs/%3E%3Cdefs%3E%3ClinearGradient x1='50%25' y1='4%25' x2='50%25' y2='100%25' id='a'%3E%3Cstop stop-color='%23FDFDFD' offset='0%25'/%3E%3Cstop stop-color='%23CBCBCB' offset='100%25'/%3E%3C/linearGradient%3E%3ClinearGradient x1='50%25' y1='4%25' x2='50%25' y2='100%25' id='b'%3E%3Cstop stop-color='%23B2E198' offset='0%25'/%3E%3Cstop stop-color='%2304A171' offset='100%25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle fill='url(%23a)' cx='128' cy='128' r='127.9'/%3E%3Ccircle fill='url(%23b)' cx='127.9' cy='128.1' r='116.9'/%3E%3Cpath d='M100 110l-4 6-3-11 12-1-5 6zm104 8c-5-4-10-8-18-11a172 172 0 00-64-12c17-20 32-30 41-30l5 1c5 3 6 11 4 23a4 4 0 008 2c4-20-2-29-7-32-3-2-6-3-10-3-14 1-34 16-52 39l-20 2-2-10c-2-13 0-23 5-25l3-1c4 0 11 3 18 9a4 4 0 005-7c-9-7-17-11-24-10l-5 1c-5 3-8 7-10 14v20l1 10-14 4c-18 7-22 16-22 22-1 6 2 14 18 23a4 4 0 004-8c-9-5-14-10-14-15 0-6 11-13 30-17l7 19c-7 13-12 25-14 36-2 8-3 15-2 21 1 7 4 11 8 14 2 2 5 3 9 3 6 0 13-3 23-10a4 4 0 10-5-7c-9 7-18 10-22 7-5-3-6-13-3-26l10-28 4 7c9 19 21 36 33 47 6 5 12 9 17 11 3 2 6 2 9 2l7-1c5-3 8-7 10-13l1-20c-2-15-8-33-16-51a4 4 0 00-8 3c8 18 14 35 15 49 1 13-1 22-5 24-5 3-14-1-24-11a163 163 0 01-38-56 211 211 0 0115-24 199 199 0 0168 12c12 5 19 11 19 17 0 5-6 9-16 13a4 4 0 003 8c17-6 21-15 21-21 1-5-2-10-6-14z' fill='%23F2F8F6'/%3E%3Cpath d='M119 129a9 9 0 1019 0 9 9 0 00-19 0' fill='%23F1F8F3'/%3E%3C/svg%3E"
}