VS Code 扩展将参数传递给 git 命令
我正在构建 Visual Studio Code 扩展并尝试将参数传递给 git 命令,但参数未传递,并且我仍然收到命令提示框,要求输入分支名称。我做错了什么?
vscode.commands.executeCommand('git.branchFrom','myBranch', 'main');
我认为这会绕过用户输入并继续从“main”分支创建一个名为“myBranch”的分支。
I'm building a Visual Studio Code extension and trying to pass argument to a git command but the arguments aren't passed and I still get the command prompt box asking for the branch name. What am I doing wrong?
vscode.commands.executeCommand('git.branchFrom','myBranch', 'main');
I thought this would bypass user input and go ahead and create a branch called 'myBranch' from the 'main' branch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论