Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 源代码管理中的事件处理_Visual Studio Code_Vscode Extensions - Fatal编程技术网

Visual studio code 源代码管理中的事件处理

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

在开发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来实现这一点,甚至不确定这是否可能

我已经调查过的资料来源是:
-
-
-
-
-
-我也试着自己检查这些元素,但没有真正做到这一点

是否存在类似的情况?我的选择是什么?
谢谢