Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useGitApi() missing repository resource after updating to latest version #242531

Open
FloppyDisco opened this issue Mar 4, 2025 · 1 comment
Open
Assignees

Comments

@FloppyDisco
Copy link

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

i wrote an extension that allows you to run some git commands using the keyboard.
https://github.com/Bluesteel-Software/git-stage-file

i was previously using repository.onDidRunOperation() for adding an event listener.

upon updating to the latest version.

it seems onDidRunOperation is no longer available?
it is not so much that onDidRunOperation is not available but the actual repository resource is completely gone.
i am unable to locate the repository resource that was previously available from the git extension api that is returned from useGitApi()

Is there at least somewhere i can find the changes that were made so i can get my extension going again?
the documentation surrounding the git extension API is abismal. I'm NOT the first to complain about it's lack of support!

thank you for any help anyone might provide.

@FloppyDisco
Copy link
Author

here are two screen shots of the useGitApi()
running VSCode 1.95 a call to useGitApi().repositories returns an array of resources which have a repository available.

Image

now in version 1.97 a call to useGitApi().repositories still returns an array, but the resources do not have the repository property anymore...

Image

this extension API needs MORE features not less...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants