fix: Remove partial search prompt and respect files to exclude
Related to gitlab-web-ide!639 (merged)
What does this MR do?
gitlab-web-ide!639 (merged) adds full project search to the Web IDE, so the "Only results from opened files are shown" message from patch 0005 is not true anymore. This MR removes that patch, like we talked about in gitlab-web-ide!639 (merged).
Removing it also brings back the Toggle Search Details button. The patch replaced queryDetails with the message element, so the button opened nothing and you couldn't get to files to include or files to exclude.
When the exclude field was reachable again I noticed it doesn't filter anything. That's a bug in VS Code 1.94, it ignores an exclude match when the glob answers right away and not with a promise. Microsoft fixed it upstream in microsoft/vscode@f85fab91bc07b5d0a094711809cf48c14e1c6130, so I added a small patch that backports just those 3 lines. It has gl_mod comments and can be dropped when the fork moves to a VS Code version with the fix.
Two commits:
- fix: Remove the partial search prompt. Removes 0005 and renumbers 0006 to 0009, same as !132 (merged) did
- fix: Respect files to exclude in search results. Adds the new 0009 patch
Demo
| Before | After |
|---|---|
![]() |
![]() |
Before: the message is wrong, the 14 results come from all files, and the ... button doesn't open include/exclude. After: no message, include/exclude are back, and excluding /src/search/ gives 7 results in 2 files.
How to test
- Build the fork and use it with the Web IDE from gitlab-web-ide!639 (merged)
- Search for something, click ... and put a folder in files to exclude
- Results from that folder are gone, and include still works
Notes
I couldn't build VS Code on my machine, so I tested by applying the same changes to the built files of the current release in the Web IDE example app.

