-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
88 lines (88 loc) · 2.83 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
{
"name": "paste-relative-path",
"displayName": "Paste Relative Path",
"description": "When an absolute file path is on the clipboard, pastes the path relative to the current file.",
"version": "1.4.0",
"publisher": "brokensandals",
"license": "MIT",
"engines": {
"vscode": "^1.46.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
"url": "https://github.com/brokensandals/paste-relative-path.git"
},
"activationEvents": [
"onCommand:paste-relative-path.paste",
"onCommand:paste-relative-path.paste-markdown"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "paste-relative-path.paste",
"title": "Paste Relative Path"
},
{
"command": "paste-relative-path.paste-markdown",
"title": "Paste Relative Path as Markdown Link"
}
],
"configuration": {
"title": "Paste Relative Path",
"properties": {
"pasteRelativePath.useTitleForMarkdownLinks": {
"type": "boolean",
"default": true,
"description": "If true, the Paste Relative Path as Markdown Link command will read the target file and attempt to see if it contains a title. If a title is found, that is used as the link text. If no title is found or if this setting is false, the the filename is used as the link text."
},
"pasteRelativePath.showInEditorContextMenu": {
"type": "boolean",
"default": true,
"description": "If true, the Paste Relative Path command will be shown in the right-click menu of all editors, and Paste Relative Path as Markdown Link will be shown in the right-click menu of markdown editors."
}
}
},
"menus": {
"editor/context": [
{
"when": "config.pasteRelativePath.showInEditorContextMenu",
"command": "paste-relative-path.paste",
"group": "9_cutcopypaste_pasterelativepath"
},
{
"when": "resourceLangId == markdown && config.pasteRelativePath.showInEditorContextMenu",
"command": "paste-relative-path.paste-markdown",
"group": "9_cutcopypaste_pasterelativepath"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^7.1.2",
"typescript": "^3.8.3",
"vscode-test": "^1.3.0"
},
"dependencies": {
"@types/js-yaml": "^3.12.5",
"js-yaml": "^3.14.0"
}
}