-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 5.25 KB
/
package.json
File metadata and controls
105 lines (105 loc) · 5.25 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
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "open-in-sublime",
"description": "Open the current file in Sublime Text",
"publisher": "sourcegraph",
"activationEvents": [
"*"
],
"wip": true,
"categories": [
"Code editors"
],
"tags": [
"sublime",
"editor",
"open"
],
"contributes": {
"actions": [
{
"id": "openInSublime.open.file",
"command": "openInSublime.open.file",
"commandArguments": [
"${resource.uri}"
],
"title": "Open file in Sublime Text",
"category": "Open in Sublime Text",
"actionItem": {
"description": "Open file in Sublime Text",
"iconURL": "data:image/svg+xml,%3Csvg viewBox='26.6 26.6 446.8 446.7' xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='136.178' x2='372.681' y1='369.638' y2='287.81'%3E%3Cstop offset='.233' stop-color='%23f89822'/%3E%3Cstop offset='1' stop-color='%23c27818'/%3E%3C/linearGradient%3E%3Cpath d='M456.1 473.3H43.9c-9.5 0-17.3-7.8-17.3-17.3V43.9c0-9.5 7.8-17.3 17.3-17.3h412.2c9.5 0 17.3 7.8 17.3 17.3v412.2c-.1 9.5-7.8 17.2-17.3 17.2z' fill='%234d4d4e'/%3E%3Cpath d='M129.6 161.5l233.8-74.2s16.6-8.7 12.6 7.4l.6 71.5s2.9 10.5-11.5 13.1l-95 29.7z' fill='%23f89820'/%3E%3Cpath d='M129.6 161.5s-9.2 2.2-6.5 17.9l-.5 68.9s-.8 8.7 15.7 12.2L370 335.1s7.8 3.1 6.9-6.5l.1-76.8s2.2-7.9-12.2-13.1L270.1 209z' fill='%23f89820'/%3E%3Cpath d='M231.7 290.5l-98.6 30.1s-11.9.4-10.5 22.7-.1 67.2-.1 67.2 1 8.3 12.4 3.5l233.8-74.6s8.3-2.1 1.3-4.4c-7-2.2-138.3-44.5-138.3-44.5z' fill='url(%23a)'/%3E%3C/svg%3E"
}
}
],
"menus": {
"editor/title": [
{
"action": "openInSublime.open.file",
"when": "resource.type === 'textDocument'"
}
],
"commandPalette": [
{
"action": "openInSublime.open.file",
"when": "resource.type === 'textDocument'"
}
]
},
"configuration": {
"properties": {
"openInSublime.basePath": {
"description": "The absolute path on the machine to the folder that is expected to contain all repositories.",
"type": "string",
"format": "regex",
"pattern": "^[^~]+"
},
"openInSublime.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': ''"]
},
"openInSublime.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-sublime"
},
"license": "Apache-2.0",
"main": "dist/open-in-sublime.js",
"scripts": {
"eslint": "eslint 'src/**/*.ts'",
"typecheck": "tsc -p tsconfig.json",
"build": "parcel build --out-file dist/open-in-sublime.js src/open-in-sublime.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-sublime.js src/open-in-sublime.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": "24.12.2",
"eslint": "^10.2.0",
"lnfs-cli": "^2.1.0",
"mkdirp": "^3.0.1",
"parcel-bundler": "^1.12.4",
"sourcegraph": "^25.7.0",
"typescript": "^3.9.7"
},
"icon": "data:image/svg+xml,%3Csvg viewBox='26.6 26.6 446.8 446.7' xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='136.178' x2='372.681' y1='369.638' y2='287.81'%3E%3Cstop offset='.233' stop-color='%23f89822'/%3E%3Cstop offset='1' stop-color='%23c27818'/%3E%3C/linearGradient%3E%3Cpath d='M456.1 473.3H43.9c-9.5 0-17.3-7.8-17.3-17.3V43.9c0-9.5 7.8-17.3 17.3-17.3h412.2c9.5 0 17.3 7.8 17.3 17.3v412.2c-.1 9.5-7.8 17.2-17.3 17.2z' fill='%234d4d4e'/%3E%3Cpath d='M129.6 161.5l233.8-74.2s16.6-8.7 12.6 7.4l.6 71.5s2.9 10.5-11.5 13.1l-95 29.7z' fill='%23f89820'/%3E%3Cpath d='M129.6 161.5s-9.2 2.2-6.5 17.9l-.5 68.9s-.8 8.7 15.7 12.2L370 335.1s7.8 3.1 6.9-6.5l.1-76.8s2.2-7.9-12.2-13.1L270.1 209z' fill='%23f89820'/%3E%3Cpath d='M231.7 290.5l-98.6 30.1s-11.9.4-10.5 22.7-.1 67.2-.1 67.2 1 8.3 12.4 3.5l233.8-74.6s8.3-2.1 1.3-4.4c-7-2.2-138.3-44.5-138.3-44.5z' fill='url(%23a)'/%3E%3C/svg%3E"
}