-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpackage.json
More file actions
205 lines (205 loc) · 5.88 KB
/
package.json
File metadata and controls
205 lines (205 loc) · 5.88 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"name": "file-ref-tags",
"displayName": "File Ref Tags",
"description": "VSCode extension for managing and quickly accessing code references, allowing users to add files, code snippets, and comments to a reference panel for quick navigation.",
"version": "0.0.5",
"icon": "icon.png",
"publisher": "LiRenTech",
"repository": {
"type": "git",
"url": "https://github.com/LiRenTech/file-ref-tags.git"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Snippets",
"Other"
],
"activationEvents": ["onUri"],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "file-ref-tags.helloWorld",
"title": "Hello World"
},
{
"command": "file-ref-tags.addCurrentFile",
"title": "添加当前文件到面板",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.addFileAndSnippet",
"title": "添加当前文件+选中的片段到面板",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.addGlobalUniqueSnippet",
"title": "添加当前选中的全局唯一片段到面板",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.addComment",
"title": "添加用户注释到面板",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.addGroup",
"title": "添加分组",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.copyLinkSnippetOnly",
"title": "复制链接(仅代码片段)",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.copyLinkFileNameOnly",
"title": "复制链接(仅文件名)",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.copyLinkFileNameAndSnippet",
"title": "复制链接(文件名+代码片段)",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.copyLinkParentDirAndSnippet",
"title": "复制链接(父级文件夹+文件名+代码片段)",
"category": "FileRefTags"
},
{
"command": "file-ref-tags.copyLinkWorkspacePathAndSnippet",
"title": "复制链接(项目级路径+代码片段)",
"category": "FileRefTags"
}
],
"menus": {
"editor/context": [
{
"submenu": "file-ref-tags.submenu",
"title": "FileRefTags",
"group": "9_cutcopypaste"
}
],
"view/title": [
{
"command": "file-ref-tags.addGroup",
"when": "view == file-ref-tags.list-view",
"group": "navigation"
}
],
"file-ref-tags.submenu": [
{
"command": "file-ref-tags.addCurrentFile",
"group": "file-ref-tags@1"
},
{
"command": "file-ref-tags.addFileAndSnippet",
"group": "file-ref-tags@2"
},
{
"command": "file-ref-tags.addGlobalUniqueSnippet",
"group": "file-ref-tags@3"
},
{
"command": "file-ref-tags.addComment",
"group": "file-ref-tags@4"
},
{
"command": "file-ref-tags.addGroup",
"group": "file-ref-tags@5"
},
{
"command": "file-ref-tags.copyLinkSnippetOnly",
"group": "file-ref-tags@6"
},
{
"command": "file-ref-tags.copyLinkFileNameOnly",
"group": "file-ref-tags@7"
},
{
"command": "file-ref-tags.copyLinkFileNameAndSnippet",
"group": "file-ref-tags@8"
},
{
"command": "file-ref-tags.copyLinkParentDirAndSnippet",
"group": "file-ref-tags@9"
},
{
"command": "file-ref-tags.copyLinkWorkspacePathAndSnippet",
"group": "file-ref-tags@10"
}
]
},
"submenus": [
{
"id": "file-ref-tags.submenu",
"label": "FileRefTags",
"icon": {
"light": "resources/icon.svg",
"dark": "resources/icon.svg"
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "file-ref-tags-view-container",
"title": "File Ref Tags",
"icon": "resources/icon.svg"
}
]
},
"views": {
"file-ref-tags-view-container": [
{
"type": "webview",
"id": "file-ref-tags.list-view",
"name": "References List",
"icon": "resources/icon.svg",
"contextualTitle": "File Ref Tags"
}
]
},
"keybindings": [
{
"command": "file-ref-tags.copyLinkFileNameAndSnippet",
"key": "cmd+shift+alt+c",
"when": "editorTextFocus && !editorReadonly && isMac"
},
{
"command": "file-ref-tags.copyLinkFileNameAndSnippet",
"key": "ctrl+shift+alt+c",
"when": "editorTextFocus && !editorReadonly && !isMac"
}
]
},
"scripts": {
"vscode:prepublish": "pnpm run package",
"compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "pnpm run check-types && pnpm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.85.0",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"typescript-eslint": "^8.48.1",
"eslint": "^9.39.1",
"esbuild": "^0.27.1",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2"
}
}