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

"C_Cpp.SwitchHeaderSource" does not respect "files.exclude" #653

Closed
AdamEttenberger opened this issue Apr 20, 2017 · 3 comments
Closed

"C_Cpp.SwitchHeaderSource" does not respect "files.exclude" #653

AdamEttenberger opened this issue Apr 20, 2017 · 3 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service

Comments

@AdamEttenberger
Copy link

AdamEttenberger commented Apr 20, 2017

vscode : 1.11.2
ms-vscode.cpptools: 0.10.5
platform: OSX El Capitan 10.11.6

Steps to reproduce :

  1. Create the following folder structure and open it in vscode :
    TESTING
    |-> build
    |-> include
    |-> src
  2. modify your global settings to have at least this : "files.exclude": { "build": true }
  3. create a main.cpp in src, and a main.h in both include and build
  4. (to make it easier to see) write the folder name in each of the files
  5. close all files
  6. open src/main.cpp
  7. Press F4 (or your mapping for "C_Cpp.SwitchHeaderSource")

Notice: It's possible that the build/main.h will be opened rather than the include/main.h

@AdamEttenberger AdamEttenberger changed the title Switching between header/source does not respect exclude settings Switching between header/source does not respect "files.exclude" Apr 20, 2017
@AdamEttenberger AdamEttenberger changed the title Switching between header/source does not respect "files.exclude" "C_Cpp.SwitchHeaderSource" does not respect "files.exclude" Apr 20, 2017
@AdamEttenberger
Copy link
Author

Possibly related to #541 ?
Some of the symptoms seem similar at least.

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Apr 20, 2017

Yeah, we found a bug on Mac in which files.exclude was not being used to exclude which files were parsed (and switched to). I tested it, and it's fixed in the update we're working on releasing, but you might need to delete your browse database (or change the databaseFilename) or update the files.exclude setting in order to get the file removed from the browse database. So interpret the "fixed" label as "a fix will be out soon".

@bobbrow bobbrow added the fixed Check the Milestone for the release in which the fix is or will be available. label Apr 20, 2017
@bobbrow
Copy link
Member

bobbrow commented Apr 25, 2017

This issue should be fixed with v0.11.0. Please let us know if it is not.

@bobbrow bobbrow closed this as completed Apr 25, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

3 participants