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

Backslashes not recognized in Project Search "Files to Include" especially when pasted from "Copy Relative Path" #87939

Closed
FirstVertex opened this issue Dec 31, 2019 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues verified Verification succeeded
Milestone

Comments

@FirstVertex
Copy link

FirstVertex commented Dec 31, 2019

Issue Type: Bug

  1. Windows 10, open your favorite project with deep filestructure
  2. Go to subfolder of project, right click it, choose "copy relative path"
  3. move to Search tab (Shift + Ctrl + F)
  4. paste relative path from step 2 into "files to include"
  5. notice the path has "backslashes" \
  6. search for something
  7. notice there are zero results
  8. change all the backslashes in "files to include" to forward slashes /
  9. notice the search results populated

Observed: The path pasted from "copy relative path" command has backslashes, but the Project Search function didn't recognize backslashes

Expected: Can we please standardize on the right kind of slashes for my OS, or just recognize any kind of slashes?

VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (6.40GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
EditorConfig Edi 0.14.4
docthis joe 0.7.1
@vscodebot vscodebot bot added the search Search widget and operation issues label Dec 31, 2019
@shogerr
Copy link

shogerr commented Dec 31, 2019

This is probably the desired behavior. On Windows, you have to remember they are the odd duck out with back slashes for paths. The search probably, and correctly, uses the backslash as an escape character. Try using '\\' to search for a back slash, and see if that works. Again, if this is the behavior, this is going to be intentional, and desirable.

What's broken here is Windows, and not VSCode.

@roblourens roblourens added the bug Issue identified by VS Code Team member as probable bug label Jan 3, 2020
@roblourens roblourens added this to the January 2020 milestone Jan 3, 2020
@JacksonKearl JacksonKearl added the verified Verification succeeded label Jan 30, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants