-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 1.89 KB
/
Copy pathpackage.json
File metadata and controls
75 lines (75 loc) · 1.89 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
{
"name": "copy-import",
"publisher": "billjohnston4",
"author": {
"name": "Bill Johnston"
},
"repository": {
"type": "git",
"url": "https://github.com/billjohnston/vscode-copy-import"
},
"displayName": "Copy import",
"description": "Copies import code for file in explorer menu",
"version": "0.1.0",
"engines": {
"vscode": "^1.36.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.copyImport"
],
"main": "./extension.js",
"contributes": {
"configuration": {
"title": "Copy Import",
"properties": {
"copyImport.rootAlias": {
"type": "string",
"default": "",
"markdownDescription": "An alias for your project root used for substitutions in import templates"
},
"copyImport.fileExtensionImportTemplateMap": {
"type": "object",
"default": {},
"markdownDescription": "A map of file extensions to their import template\n\n\nSubstition variables:\n\n\n`{{EXT}}` `{{BASENAME}}` `{{PROJECT_ROOT}}` `{{FILE_PATH}}` `{{DOT_PATH}}` `{{ROOT_ALIAS}}`\n\n\nConfiguration example:\n\n```\n\"copyImport.fileExtensionImportTemplateMap\": {\n\t\"js\": \"import {{BASENAME}} from '{{ROOT_ALIAS}}/{{FILE_PATH}}'\",\n\t\"py\": \"from {{DOT_PATH}} import {{BASENAME}}\"\n}\n```"
}
}
},
"commands": [
{
"command": "extension.copyImport",
"title": "Copy Import"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.copyImport",
"group": "6_copypath"
}
],
"editor/title/context": [
{
"command": "extension.copyImport",
"group": "6_copypath"
}
]
}
},
"scripts": {
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^10.12.21",
"@types/vscode": "^1.36.0",
"eslint": "^5.13.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"typescript": "^3.3.1",
"vscode-test": "^1.0.0-next.0"
}
}