-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
166 lines (166 loc) · 4.9 KB
/
package.json
File metadata and controls
166 lines (166 loc) · 4.9 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
{
"name": "relatedsources",
"displayName": "Related Sources",
"description": "Quickly toggle between related source files in your project.",
"repository": {
"type": "git",
"url": "https://github.com/david-risney/RelatedSources"
},
"version": "1.0.0",
"icon": "src/logo-128.png",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./src/extension.js",
"contributes": {
"commands": [
{
"command": "relatedsources.next",
"title": "Related Sources: Next Related File",
"category": "Related Sources"
},
{
"command": "relatedsources.prev",
"title": "Related Sources: Previous Related File",
"category": "Related Sources"
},
{
"command": "relatedsources.showRelated",
"title": "Related Sources: Show Related Files",
"category": "Related Sources"
}
],
"keybindings": [
{
"command": "relatedsources.next",
"key": "f4",
"when": "editorTextFocus"
},
{
"command": "relatedsources.prev",
"key": "shift+f4",
"when": "editorTextFocus"
},
{
"command": "relatedsources.showRelated",
"key": "ctrl+shift+r",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "Related Sources",
"properties": {
"relatedsources.matchers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sourceRegexp": {
"type": "string",
"description": "Regular expression pattern to match against the source path."
},
"targetPath": {
"type": "string",
"description": "Path to related file with optional capture groups."
},
"name": {
"type": "string",
"description": "Name of the relationship of related files. Does not need to be unique."
}
},
"required": ["sourceRegexp", "targetPath", "name"]
},
"default": [
{
"sourceRegexp": "^(?<path>.*)\\.[^.]*$",
"targetPath": "${path}.*",
"name": "Same filename"
},
{
"sourceRegexp": "^out/[^\\/]+/gen/(?<path>.*)\\.[^.]*$",
"targetPath": "${path}.*",
"name": "Generated source files"
},
{
"sourceRegexp": "^(?<path>.*)\\.[^.]*$",
"targetPath": "out/*/gen/${path}.*",
"name": "Generated target files"
},
{
"sourceRegexp": "^(?<path>.*)_(base|impl|p|i)\\.[^.]*$",
"targetPath": "${path}.*",
"name": "Suffix target files"
},
{
"sourceRegexp": "^(?<path>.*)\\.[^.]*$",
"targetPath": "${path}_base.*",
"name": "Suffix base source files"
},
{
"sourceRegexp": "^(?<path>.*)\\.[^.]*$",
"targetPath": "${path}_impl.*",
"name": "Suffix impl source files"
},
{
"sourceRegexp": "^(?<path>.*)\\.[^.]*$",
"targetPath": "${path}_p.*",
"name": "Suffix midl _p source files"
},
{
"sourceRegexp": "^(?<path>.*)\\.[^.]*$",
"targetPath": "${path}_i.*",
"name": "Suffix midl _i source files"
}
],
"description": "Related source file patterns"
},
"relatedsources.openColumn": {
"type": "string",
"enum": [
"current",
"beside",
"besideNoNewColumn"
],
"default": "current",
"description": "Column in which to open related documents",
"enumDescriptions": [
"Open in the *current* column as the source document",
"Open *beside* the current column",
"Open *beside* the current column but never creating a new column"
],
"enumItemLabels": [
"Current Column",
"Beside Current Column",
"Beside Current Column (No New Column)"
]
}
}
}
},
"scripts": {
"test": "node --test ./test/unit/**/*.test.js",
"package": "npx vsce package",
"install-local": "code --install-extension relatedsources-1.0.0.vsix",
"package-and-install": "npm run package && npm run install-local"
},
"devDependencies": {
"@types/node": "^20.0.0"
},
"homepage": "https://github.com/david-risney/RelatedSources#readme",
"bugs": {
"url": "https://github.com/david-risney/RelatedSources/issues"
},
"keywords": [
"related",
"sources",
"files",
"navigation"
],
"publisher": "DavidRisney"
}