You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bit of a niche one but something that may become more prevalent as extension hosts are used more.
If an extension is in a different host to the SCM provider and wants to contribute to the context menu for files in SCM (something that can reasonably be done with no knowledge of the SCM system), when that command is called the vscode.SourceControlResourceState that is passed in is invalid.
For example, the state might look something like this:
When in the same host as the SCM extension, this is resolved into the instance of the vscode.SourceControlResourceState that the SCM extension creates, so it works fine for the SCM extension itself which can get the exact implementation that it creates.
For other extensions though, would it be possible to create the raw SCM state?
Or even just passing the vscode.Uri would be enough.
It is possible for extensions to add to the right clock context of a file via the explorer/context contribution point. It would be great if the same items could be contributed via the scm/resourceState/context contribution point.
The text was updated successfully, but these errors were encountered:
This is a bit of a niche one but something that may become more prevalent as extension hosts are used more.
If an extension is in a different host to the SCM provider and wants to contribute to the context menu for files in SCM (something that can reasonably be done with no knowledge of the SCM system), when that command is called the
vscode.SourceControlResourceState
that is passed in is invalid.For example, the state might look something like this:
When in the same host as the SCM extension, this is resolved into the instance of the
vscode.SourceControlResourceState
that the SCM extension creates, so it works fine for the SCM extension itself which can get the exact implementation that it creates.For other extensions though, would it be possible to create the raw SCM state?
Or even just passing the vscode.Uri would be enough.
It is possible for extensions to add to the right clock context of a file via the
explorer/context
contribution point. It would be great if the same items could be contributed via thescm/resourceState/context
contribution point.The text was updated successfully, but these errors were encountered: