-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
171 lines (171 loc) · 5.37 KB
/
package.json
File metadata and controls
171 lines (171 loc) · 5.37 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
{
"name": "vscode-virtual-include",
"displayName": "Virtual Include",
"description": "Include content from other files with automatic updates and edit protection",
"icon": "icon.png",
"publisher": "artworkad",
"version": "1.0.5",
"repository": {
"type": "git",
"url": "https://github.com/artworkad/vscode-virtual-include.git"
},
"engines": {
"vscode": "^1.98.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:python",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:ruby",
"onLanguage:php",
"onLanguage:java",
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:markdown",
"onLanguage:plaintext",
"onLanguage:yaml",
"onLanguage:lua",
"workspaceContains:.py",
"workspaceContains:.js",
"workspaceContains:.ts",
"workspaceContains:.rb",
"workspaceContains:.php",
"workspaceContains:.java",
"workspaceContains:.c",
"workspaceContains:.cpp",
"workspaceContains:.h",
"workspaceContains:.hpp",
"workspaceContains:.md",
"workspaceContains:.txt",
"workspaceContains:.yml",
"workspaceContains:.yaml",
"workspaceContains:.lua"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "virtualInclude.process",
"title": "Process Virtual Includes"
},
{
"command": "virtualInclude.openIncludedFile",
"title": "Open Included File"
}
],
"menus": {
"editor/context": [
{
"command": "virtualInclude.process",
"group": "virtualInclude"
}
]
},
"configuration": {
"title": "Virtual Include",
"properties": {
"virtualInclude.languageSettings": {
"type": "object",
"default": {},
"description": "Language-specific settings for Virtual Include",
"additionalProperties": {
"type": "object",
"properties": {
"includeDirectivePattern": {
"type": "string",
"description": "Regular expression pattern to match include directives"
},
"startMarkerTemplate": {
"type": "string",
"description": "Template for the start marker ({{comment}} will be replaced with language's comment)"
},
"endMarkerTemplate": {
"type": "string",
"description": "Template for the end marker ({{comment}} will be replaced with language's comment)"
}
}
}
},
"virtualInclude.defaultCommentStyle": {
"type": "string",
"default": "#",
"description": "Default comment style when language-specific is not defined"
},
"virtualInclude.detectFromExtension": {
"type": "boolean",
"default": true,
"description": "Automatically detect language for includes based on file extension"
},
"virtualInclude.showCodeLens": {
"type": "boolean",
"default": true,
"description": "Show code lens above virtual include directives to quickly open included files"
},
"virtualInclude.languageOverrides": {
"type": "array",
"default": [],
"description": "Configuration for special sections that should use a different language's comment style",
"items": {
"type": "object",
"properties": {
"fileType": {
"type": "string",
"description": "The language ID of the file containing special sections"
},
"pattern": {
"type": "string",
"description": "Regex pattern to match the start of a special section"
},
"commentStyle": {
"type": "string",
"description": "Comment style to use inside this section"
},
"commentEnd": {
"type": "string",
"description": "End comment style to use inside this section (for paired comment styles)"
},
"continueUntil": {
"type": "string",
"description": "Regex pattern to match the end of a special section"
}
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"build": "webpack --mode production",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p ./tsconfig.test.json",
"pretest": "npm run compile && npm run compile-tests",
"posttest": "bash cleanup.sh",
"lint": "eslint src",
"test": "xvfb-run -a --server-args='-screen 0 1024x768x24' vscode-test && bash cleanup.sh",
"test:watch": "tsc -p ./ -w"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/sinon": "^17.0.4",
"@types/vscode": "^1.98.0",
"@typescript-eslint/eslint-plugin": "^8.25.0",
"@typescript-eslint/parser": "^8.25.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.21.0",
"glob": "^11.0.1",
"sinon": "^20.0.0",
"ts-loader": "^9.5.2",
"typescript": "^5.7.3",
"webpack": "^5.98.0",
"webpack-cli": "^6.0.1"
}
}