-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
251 lines (251 loc) · 7.43 KB
/
Copy pathpackage.json
File metadata and controls
251 lines (251 loc) · 7.43 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"name": "mcpp-vscode",
"displayName": "mcpp",
"description": "mcpp 工程构建、工具链与 C++ Modules 语言服务集成",
"version": "0.4.0",
"publisher": "mcpp-community",
"license": "Apache-2.0",
"icon": "images/logo.png",
"repository": {
"type": "git",
"url": "https://github.com/mcpp-community/mcpp-vscode.git"
},
"homepage": "https://github.com/mcpp-community/mcpp-vscode#readme",
"bugs": {
"url": "https://github.com/mcpp-community/mcpp-vscode/issues"
},
"engines": {
"vscode": "^1.91.0"
},
"extensionDependencies": [
"sunrisepeak.mcpp-language-server"
],
"activationEvents": [
"workspaceContains:mcpp.toml",
"onLanguage:cpp",
"onLanguage:mcpp-build",
"onLanguage:mcpp-toml",
"onCommand:mcpp.configureLanguageServer",
"onCommand:mcpp.configureClangd",
"onCommand:mcpp.refreshCompilationDatabase",
"onCommand:mcpp.checkModuleSupport",
"onCommand:mcpp.showMenu",
"onCommand:mcpp.newProject",
"onCommand:mcpp.build",
"onCommand:mcpp.run",
"onCommand:mcpp.test",
"onCommand:mcpp.clean",
"onCommand:mcpp.showToolchains",
"onCommand:mcpp.installToolchain",
"onCommand:mcpp.selectDefaultToolchain",
"onCommand:mcpp.autoConfigureModules",
"onCommand:mcpp.showModuleGraph",
"onCommand:mcpp.showLanguageServerLogs"
],
"categories": [
"Programming Languages",
"Other"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "未受信任工作区仅启用本扩展的模块语法高亮与 mcpp.toml 结构补全(纯文本分析),不执行 mcpp CLI 或接管语言服务配置。"
}
},
"main": "./dist/src/extension.js",
"contributes": {
"menus": {
"editor/title": [
{
"command": "mcpp.run",
"group": "navigation@1",
"when": "mcpp.inProject"
},
{
"command": "mcpp.test",
"group": "navigation@2",
"when": "mcpp.inProject"
}
]
},
"commands": [
{
"command": "mcpp.showMenu",
"title": "mcpp: 打开快捷菜单"
},
{
"command": "mcpp.newProject",
"title": "mcpp: 新建工程"
},
{
"command": "mcpp.build",
"title": "mcpp: 构建"
},
{
"command": "mcpp.run",
"title": "mcpp: 运行",
"icon": "$(play)"
},
{
"command": "mcpp.test",
"title": "mcpp: 测试",
"icon": "$(beaker)"
},
{
"command": "mcpp.clean",
"title": "mcpp: 清理 target"
},
{
"command": "mcpp.showToolchains",
"title": "mcpp: 查看工具链"
},
{
"command": "mcpp.installToolchain",
"title": "mcpp: 安装工具链"
},
{
"command": "mcpp.selectDefaultToolchain",
"title": "mcpp: 选择全局默认工具链"
},
{
"command": "mcpp.configureLanguageServer",
"title": "mcpp: 选择 C++ 模块分析上下文"
},
{
"command": "mcpp.configureClangd",
"title": "mcpp: [已弃用] 配置 C++ 模块语言服务"
},
{
"command": "mcpp.refreshCompilationDatabase",
"title": "mcpp: 刷新模块构建描述"
},
{
"command": "mcpp.checkModuleSupport",
"title": "mcpp: 重启 C++ Modules 语言服务"
},
{
"command": "mcpp.autoConfigureModules",
"title": "mcpp: 一键构建并刷新模块语言服务"
},
{
"command": "mcpp.showModuleGraph",
"title": "mcpp: 查看模块图"
},
{
"command": "mcpp.showLanguageServerLogs",
"title": "mcpp: 打开 C++ Modules 日志"
}
],
"configuration": {
"title": "mcpp 设置",
"properties": {
"mcpp.path": {
"type": "string",
"default": "",
"scope": "resource",
"description": "供扩展执行全部 mcpp CLI 命令使用;留空时从 VS Code 进程的 PATH 查找 mcpp。"
},
"mcpp.clangd.path": {
"type": "string",
"default": "",
"scope": "resource",
"description": "已弃用:C++ 模块语言服务已迁移到 sunrisepeak.mcpp-language-server,此设置不再生效。",
"deprecationMessage": "C++ 模块语言服务已迁移到 sunrisepeak.mcpp-language-server;此设置不再被 mcpp-vscode 使用。"
},
"mcpp.modulesSupport": {
"type": "string",
"enum": [
"auto",
"on",
"off"
],
"default": "auto",
"scope": "resource",
"description": "已弃用:C++ 模块语言服务已迁移到 sunrisepeak.mcpp-language-server,此设置不再生效。",
"deprecationMessage": "C++ 模块语言服务已迁移到 sunrisepeak.mcpp-language-server;此设置不再被 mcpp-vscode 使用。"
},
"mcpp.configureCppTools": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "已弃用:语言服务冲突现由 sunrisepeak.mcpp-language-server 管理,此设置不再生效。",
"deprecationMessage": "C++ 模块语言服务已迁移到 sunrisepeak.mcpp-language-server;此设置不再被 mcpp-vscode 使用。"
},
"mcpp.tomlCompletion": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "为 mcpp.toml 提供结构补全:段头与写法模板(snippet)。所有建议带显式替换范围,并经真实 mcpp 契约测试验证。"
}
}
},
"languages": [
{
"id": "mcpp-build",
"aliases": [
"mcpp build script",
"build.mcpp"
],
"filenames": [
"build.mcpp"
],
"configuration": "./syntaxes/mcpp-build-language-configuration.json"
},
{
"id": "mcpp-toml",
"aliases": [
"mcpp TOML",
"mcpp.toml"
],
"filenames": [
"mcpp.toml"
]
}
],
"configurationDefaults": {
"files.associations": {
"*.ccm": "cpp",
"*.cppm": "cpp",
"*.ixx": "cpp",
"*.mpp": "cpp"
}
},
"grammars": [
{
"language": "mcpp-build",
"scopeName": "source.mcpp-build",
"path": "./syntaxes/mcpp-build.tmLanguage.json"
},
{
"language": "mcpp-toml",
"scopeName": "source.toml.mcpp",
"path": "./syntaxes/mcpp-toml.tmLanguage.json"
},
{
"scopeName": "source.cpp.mcpp-modules",
"injectTo": [
"source.cpp",
"source.mcpp-build"
],
"path": "./syntaxes/mcpp-modules.tmLanguage.json"
}
]
},
"scripts": {
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"compile": "tsc -p tsconfig.json",
"test": "npm run clean && npm run compile && node --test dist/test/*.test.js",
"package": "npm run clean && npm run compile && vsce package",
"test:e2e": "npm run compile && node dist/test/e2e/runTest.js",
"test:all": "npm test && npm run test:e2e"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^24.0.0",
"@types/vscode": "^1.91.0",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^3.9.2",
"mocha": "^11.8.0",
"typescript": "^5.9.0"
}
}