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

search bug: "whole word" toggles appearance of results in non-loaded files #24993

Closed
Spongman opened this issue Apr 19, 2017 · 1 comment
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@Spongman
Copy link

Steps to Reproduce:

  1. open a c++ project with some '#include' statements in some files
  2. close all editor windows
  3. open search panel, clear ALL search flags (case, word, regex)
  4. search for "#include" (without quotes). NOTE: search results appear
  5. turn ON 'Match whole word'. NOTE search results dissappear. ok...
  6. open a c++ file containing the text '#include'
  7. repeat the search. NOTE: the search results include the text contained in the open file.

this is inconsistent. either 'match whole word' should match '#include', or it shouldn't. but it shouldn't depend on whether or not the file is open in the editor.

  • VSCode Version: Code 1.11.2 (6eaebe3, 2017-04-13T08:01:14.464Z)
  • OS Version: Linux x64 4.4.0-72-generic
  • Extensions:
Extension Author Version
glslx-vscode evanw 0.0.11
debugger-for-chrome msjsdiag 3.0.1
cpptools ms-vscode 0.10.5
csharp ms-vscode 1.8.1
mono-debug ms-vscode 0.15.5
@roblourens
Copy link
Member

This is #23624 and is fixed in the Insiders build. It's due to using 'whole word' with non-word characters like #.

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 19, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants