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

[SIW] The search should not run when input does not change #7346

Closed
kittaakos opened this issue Mar 16, 2020 · 9 comments · Fixed by #8229
Closed

[SIW] The search should not run when input does not change #7346

kittaakos opened this issue Mar 16, 2020 · 9 comments · Fixed by #8229
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help search in workspace issues related to the search-in-workspace

Comments

@kittaakos
Copy link
Contributor

Description

We run the SIW each time the "selection"? changes in the SIW input. It's a bug.
screencast 2020-03-16 09-19-37

Reproduction Steps

Write something into the SIW input change the cursor location, try to Select All (if you are not in electron).

OS and Theia version:

Diagnostics:

@kittaakos kittaakos added bug bugs found in the application search in workspace issues related to the search-in-workspace labels Mar 16, 2020
@akosyakov

This comment has been minimized.

@akosyakov

This comment has been minimized.

@akosyakov akosyakov added the help wanted issues meant to be picked up, require help label Mar 16, 2020
@kittaakos
Copy link
Contributor Author

We should debounce and use cancellation token

Or we could not run the query when the input does not change. Can we do that instead of debouncing and cancellation?

@akosyakov
Copy link
Member

Or we could not run the query when the input does not change. Can we do that instead of debouncing and cancellation?

true, we should not trigger search at all

@akosyakov
Copy link
Member

What btw should happen if there are new files? Does search automatically adjust or one has to press enter to rerun. In this case disabling rerunning will break.

@kittaakos
Copy link
Contributor Author

What btw should happen if there are new files?

We have to do what VS Code does; it does not update the search results on new file creation. Which is what I would expect as a user.

@vince-fugnitto
Copy link
Member

I'll close the pre-existing issue in favor of this one since it has additional discussions:

@akosyakov
Copy link
Member

akosyakov commented Mar 16, 2020

We have to do what VS Code does; it does not update the search results on new file creation. Which is what I would expect as a user.

But I see that VS Code runs search again if I press enter and then it finds new results. For changed selection it is for sure bogus though.

@kittaakos
Copy link
Contributor Author

But I see that VS Code runs search again if I press enter and then it finds new results.

I didn't say it does not re-run the query when you hit enter, I said:

it does not update the search results on new file creation. Which is what I would expect as a user.

I meant automatically.

Anasshahidd21 pushed a commit to Anasshahidd21/theia that referenced this issue Jul 23, 2020
Fixes: eclipse-theia#7346

Runs a search query only when there is a change in the input field

Signed-off-by: Anas Shahid <[email protected]>
Anasshahidd21 pushed a commit to Anasshahidd21/theia that referenced this issue Jul 23, 2020
Fixes: eclipse-theia#7346

Runs a search query only when there is a change in the input field

Signed-off-by: Anas Shahid <[email protected]>
Anasshahidd21 pushed a commit to Anasshahidd21/theia that referenced this issue Jul 23, 2020
Fixes: eclipse-theia#7346

Runs a search query only when there is a change in the input field

Signed-off-by: Anas Shahid <[email protected]>
Anasshahidd21 pushed a commit to Anasshahidd21/theia that referenced this issue Jul 24, 2020
Fixes: eclipse-theia#7346

Runs a search query only when there is a change in the input field

Signed-off-by: Anas Shahid <[email protected]>
vince-fugnitto pushed a commit that referenced this issue Jul 29, 2020
Fixes: #7346

Runs a search query only when there is a change in the input field

Signed-off-by: Anas Shahid <[email protected]>
minyoungyang pushed a commit to minyoungyang/theia that referenced this issue Aug 4, 2020
Fixes: eclipse-theia#7346

Runs a search query only when there is a change in the input field

Signed-off-by: Anas Shahid <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help search in workspace issues related to the search-in-workspace
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants