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

fix preview of search result #10054

Closed
wants to merge 1 commit into from
Closed

fix preview of search result #10054

wants to merge 1 commit into from

Conversation

shuyaqian
Copy link
Contributor

@shuyaqian shuyaqian commented Sep 6, 2021

Signed-off-by: shuyaqian [email protected]

What it does

Fix #10045
Fix #7589
Closes #8735

How to test

  1. set 'Enable Preview' true in preferences
  2. search in workspace
  3. click tree item in search results

Review checklist

Reminder for reviewers

@shuyaqian
Copy link
Contributor Author

shuyaqian commented Sep 6, 2021

I still have some questions I'd like to discuss. If Enable Preview is set to true, whether to open file when double-clicking the file? And if I double-click the preview tab , should block fullscreen events to open this file? @msujew @vince-fugnitto

@msujew
Copy link
Member

msujew commented Sep 6, 2021

Hi @shuyaqian thank you for contributing again!

If Enable Preview is set to true, whether to open file when double-clicking the file?

I noticed that someone already tried to fix this in #8735. In there, some discussion on the double clicking behavior already happened. That PR isn't active anymore, so I recommend we should continue discussion on that in here.

The specific double-clicking change in question will be adressed here: #9567. I would argue that we should wait until that is merged to continue the preview related question.

@msujew msujew added the search in workspace issues related to the search-in-workspace label Sep 6, 2021
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that it works well for now, when we single-click and editor.enablePreview is enabled we can now open search-in-workspace results in preview-editors. As for the double-click behavior we can do what @msujew mentioned and wait for #9567 first.

@vince-fugnitto
Copy link
Member

@shuyaqian do you mind rebasing the pull-request?

@shuyaqian
Copy link
Contributor Author

@shuyaqian do you mind rebasing the pull-request?

I wonder if I should wait until #9567 be merged before rebase.

@vince-fugnitto
Copy link
Member

Thank you for contributing, the pull-request is no longer applicable as the issue was fixed in #10839.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
search in workspace issues related to the search-in-workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Preview not works in search in workspace result File search doesn't open files as preview
3 participants