feat: add mcpp.newProject command to scaffold and open projects - #3
Open
Ximiaw wants to merge 1 commit into
Open
feat: add mcpp.newProject command to scaffold and open projects#3Ximiaw wants to merge 1 commit into
Ximiaw wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能
新增
mcpp.newProject命令(命令面板「mcpp: 新建工程」),在 VS Code 内完成新项目脚手架:mcpp new <项目名>,创建同名项目文件夹mcpp.refreshCompilationDatabase,完成首次构建与 clangd 配置实现说明
McppCliController,复用runProcess与mcpp.path设置,受工作区信任约束;失败时提示并将日志保留在 mcpp 输出频道vscode.openFolder会重载窗口,刷新请求通过globalState(PENDING_NEW_PROJECT_KEY)传递到新窗口,activate 时核对项目路径后兑现,且只兑现一次void),不阻塞activate()——否则扩展激活期间命令会排队,表现为编辑器标题按钮点击无反应测试
commands.test.ts、artifacts.test.ts的命令清单断言globalState标记在打开文件夹之前写入;activate 中刷新为非阻塞调用npm test:97 个测试全部通过