-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
113 lines (113 loc) · 5.92 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
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "open-in-editor",
"description": "Open the current file in your editor of choice",
"publisher": "sourcegraph",
"icon": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNy4yMDAyIiB5PSI0Ljc5OTk5IiB3aWR0aD0iMTQuNCIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiNCMjAwRjgiLz4KPHJlY3QgeD0iNy4yMDAyIiB5PSIzOC40IiB3aWR0aD0iMTQuNCIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiNCMjAwRjgiLz4KPHJlY3QgeD0iMjEuNjAwNiIgeT0iMjEuNiIgd2lkdGg9IjE0LjQiIGhlaWdodD0iMy42IiByeD0iMS44IiBmaWxsPSIjMDBCNEYyIi8+CjxyZWN0IHg9IjI0IiB5PSI0Ljc5OTk5IiB3aWR0aD0iOS42IiBoZWlnaHQ9IjMuNiIgcng9IjEuOCIgZmlsbD0iIzAwQjRGMiIvPgo8cmVjdCB4PSIxNC40MDA0IiB5PSIzMCIgd2lkdGg9IjE0LjQiIGhlaWdodD0iMy42IiByeD0iMS44IiBmaWxsPSIjMDBCNEYyIi8+CjxyZWN0IHg9IjMxLjIwMDIiIHk9IjMwIiB3aWR0aD0iOS42IiBoZWlnaHQ9IjMuNiIgcng9IjEuOCIgZmlsbD0iI0Y5NjIxNiIvPgo8cmVjdCB4PSIzOC40MDA0IiB5PSIyMS42IiB3aWR0aD0iNy4yIiBoZWlnaHQ9IjMuNiIgcng9IjEuOCIgZmlsbD0iI0Y5NjIxNiIvPgo8cmVjdCB4PSIxNC40MDA0IiB5PSIxMy4yIiB3aWR0aD0iMTQuNCIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiMwMEI0RjIiLz4KPHJlY3QgeD0iMzEuMjAwMiIgeT0iMTMuMiIgd2lkdGg9IjcuMiIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiNGOTYyMTYiLz4KPHJlY3QgeD0iMjQiIHk9IjM4LjQiIHdpZHRoPSI0LjgiIGhlaWdodD0iMy42IiByeD0iMS44IiBmaWxsPSIjRjk2MjE2Ii8+Cjwvc3ZnPgo=",
"activationEvents": [
"*"
],
"wip": false,
"categories": [
"Code editors"
],
"tags": [
"vscode",
"intellij",
"idea",
"jetbrains",
"sublime",
"editor",
"open"
],
"contributes": {
"actions": [
{
"id": "openineditor.open.file",
"command": "openineditor.open.file",
"commandArguments": [
"${resource.uri}"
],
"title": "Open file in editor",
"category": "Open in editor",
"actionItem": {
"description": "Open file in editor",
"iconURL": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNy4yMDAyIiB5PSI0Ljc5OTk5IiB3aWR0aD0iMTQuNCIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiNCMjAwRjgiLz4KPHJlY3QgeD0iNy4yMDAyIiB5PSIzOC40IiB3aWR0aD0iMTQuNCIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiNCMjAwRjgiLz4KPHJlY3QgeD0iMjEuNjAwNiIgeT0iMjEuNiIgd2lkdGg9IjE0LjQiIGhlaWdodD0iMy42IiByeD0iMS44IiBmaWxsPSIjMDBCNEYyIi8+CjxyZWN0IHg9IjI0IiB5PSI0Ljc5OTk5IiB3aWR0aD0iOS42IiBoZWlnaHQ9IjMuNiIgcng9IjEuOCIgZmlsbD0iIzAwQjRGMiIvPgo8cmVjdCB4PSIxNC40MDA0IiB5PSIzMCIgd2lkdGg9IjE0LjQiIGhlaWdodD0iMy42IiByeD0iMS44IiBmaWxsPSIjMDBCNEYyIi8+CjxyZWN0IHg9IjMxLjIwMDIiIHk9IjMwIiB3aWR0aD0iOS42IiBoZWlnaHQ9IjMuNiIgcng9IjEuOCIgZmlsbD0iI0Y5NjIxNiIvPgo8cmVjdCB4PSIzOC40MDA0IiB5PSIyMS42IiB3aWR0aD0iNy4yIiBoZWlnaHQ9IjMuNiIgcng9IjEuOCIgZmlsbD0iI0Y5NjIxNiIvPgo8cmVjdCB4PSIxNC40MDA0IiB5PSIxMy4yIiB3aWR0aD0iMTQuNCIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiMwMEI0RjIiLz4KPHJlY3QgeD0iMzEuMjAwMiIgeT0iMTMuMiIgd2lkdGg9IjcuMiIgaGVpZ2h0PSIzLjYiIHJ4PSIxLjgiIGZpbGw9IiNGOTYyMTYiLz4KPHJlY3QgeD0iMjQiIHk9IjM4LjQiIHdpZHRoPSI0LjgiIGhlaWdodD0iMy42IiByeD0iMS44IiBmaWxsPSIjRjk2MjE2Ii8+Cjwvc3ZnPgo="
}
}
],
"menus": {
"editor/title": [
{
"action": "openineditor.open.file",
"when": "resource"
}
],
"commandPalette": [
{
"action": "openineditor.open.file",
"when": "resource"
}
]
},
"configuration": {
"properties": {
"openineditor.editor": {
"description": "Editor config to use. Supported: 'vscode', 'idea', 'sublime', 'custom'. If 'custom', also set 'openindeditor.customUrlPattern'",
"type": "string",
"enum": ["vscode", "idea", "sublime", "custom"]
},
"openineditor.customUrlPattern": {
"description": "The custom URL pattern for your editor of choice. Use placeholders %file, %line, %col.",
"type": "string"
},
"openineditor.basePath": {
"description": "The file path on the machine to the folder that is expected to contain all repositories.",
"type": "string"
},
"openineditor.osPaths": {
"description": "The file path on each platform to the folder that is expected to contain all repositories.",
"type": "object"
},
"openineditor.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"
}
}
}
},
"version": "0.0.0-DEVELOPMENT",
"repository": {
"type": "git",
"url": "https://github.com/sourcegraph/open-in-editor-extension"
},
"license": "Apache-2.0",
"main": "dist/open-in-editor.js",
"scripts": {
"eslint": "eslint 'src/**/*.ts'",
"typecheck": "tsc -p tsconfig.json",
"build": "parcel build --out-file dist/open-in-editor.js src/open-in-editor.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-editor.js src/open-in-editor.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.20.0",
"@sourcegraph/tsconfig": "^4.0.1",
"@types/node": "14.0.27",
"eslint": "^7.6.0",
"lnfs-cli": "^2.1.0",
"mkdirp": "^1.0.4",
"parcel-bundler": "^1.12.4",
"sourcegraph": "^24.7.0",
"typescript": "^3.9.7"
}
}