Visual studio code 源代码管理中的事件处理
在开发VSCode扩展时,我希望在用户使用源代码管理菜单进行提交时有一个自定义函数execute/trigger。我可以想象它是这样的:Visual studio code 源代码管理中的事件处理,visual-studio-code,vscode-extensions,Visual Studio Code,Vscode Extensions,在开发VSCode扩展时,我希望在用户使用源代码管理菜单进行提交时有一个自定义函数execute/trigger。我可以想象它是这样的: git.SourceControl.onCommit(commit, () => { // Have access to the commit object and being able to for example show a notification with the commit message }) 然而,我一直无法找到合适的API
git.SourceControl.onCommit(commit, () => {
// Have access to the commit object and being able to for example
show a notification with the commit message
})
然而,我一直无法找到合适的API来实现这一点,甚至不确定这是否可能
我已经调查过的资料来源是:-
-
-
-
-
-我也试着自己检查这些元素,但没有真正做到这一点 是否存在类似的情况?我的选择是什么?
谢谢