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

Open in Fink link does not include branch | Sherlock 🕵️‍♂️ #2742

Conversation

felixhaeberle
Copy link
Contributor

@felixhaeberle felixhaeberle commented May 10, 2024

fix SHERL-25

cc @janfjohannes can you please check why test-symlink isn't recognized as return value for repo.getCurrentBranch() in

The openInEditor command in the Sherlock IDE extension has been updated to change the title to "Sherlock: Open in Fink". Additionally, a new branch parameter has been added to the command callback function, allowing users to specify a branch when opening the editor. This change improves the usability and flexibility of the command.
This commit adds a new utility function called getCurrentBranch to the inlang/source-code/ide-extension/src/utilities/settings directory. The function retrieves the current branch of the git repository and allows for testing with functional code. This addition improves the functionality and flexibility of the IDE extension.
The openInEditor command in the Sherlock IDE extension has been refactored to use the openInFink function instead. This change improves the clarity and consistency of the codebase.
The openInEditor command in the Sherlock IDE extension has been refactored to use the openInFink function instead. This change improves the clarity and consistency of the codebase.
Refactor the openInEditor command in the Sherlock IDE extension to use the openInFink function instead. This improves codebase clarity and consistency.
The openInEditor command in the Sherlock IDE extension has been renamed to openInFink. This change improves codebase clarity and consistency.
Copy link

changeset-bot bot commented May 10, 2024

🦋 Changeset detected

Latest commit: aab8f5d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vs-code-extension Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@janfjohannes
Copy link
Contributor

@felixhaeberle seems to be unrelated to the branch thing but a problem with finding the repo root, let me know if that helps or i should debug/ fix the pr directly

stderr | src/utilities/settings/getCurrentBranch.test.ts > getCurrentBranch > should return undefined when no repository root is found
  Failed to find repository root.

@felixhaeberle
Copy link
Contributor Author

@janfjohannes I basically copied the test setup from the test you wrote so it would be cool if you could look into it with the mocked repo state.

@janfjohannes
Copy link
Contributor

@felixhaeberle looks like just your mocking setup was bad, please try to avoid mocks like hell.

@felixhaeberle felixhaeberle merged commit 545849c into main May 13, 2024
5 checks passed
@felixhaeberle felixhaeberle deleted the felixhaeberle/sherl-25-open-in-fink-link-does-not-include-branch branch May 13, 2024 11:48
@felixhaeberle felixhaeberle removed the request for review from janfjohannes May 13, 2024 11:48
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants