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

Enable start line and column for Zed only #422

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

Moshyfawn
Copy link
Contributor

Description

This PR re-enables the Zed integration by addressing a specific edge case: it only appends the start line and column to the URL when the URL is specifically for Zed and not the end line and column (see zed-industries/zed#18520 for more info)

Closes #415

What is the purpose of this pull request?

  • New feature
  • Documentation update
  • Bug fix
  • Refactor
  • Release
  • Other

@Moshyfawn
Copy link
Contributor Author

Moshyfawn commented Sep 30, 2024

I dug deeper into the issue (and the Onlook codebase) because the supposed URL from OnLook was working fine for me, but I didn't realise it was adding end row and column info to pinpoint the core issue. So the initally linked issue isn't the same as what I'm facing. I created zed-industries/zed#18520 with more details if you're interested.

P.S. Sorry for the noise: I should've looked into the Onlook codebase before posting here.

@Kitenite
Copy link
Contributor

Thanks for following up!
Honestly, the other IDEs don't handle end line or column anyway so maybe we'll remove them entirely. Thanks for taking ownership on this

@Kitenite Kitenite self-requested a review September 30, 2024 01:40
@Kitenite Kitenite merged commit 56595d4 into onlook-dev:main Sep 30, 2024
@Moshyfawn Moshyfawn deleted the feat/zed-cmd-url branch September 30, 2024 01:47
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

Successfully merging this pull request may close these issues.

[bug] "Open component in Zed" creates empty buffer instead of existing file
2 participants