Skip to content

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

@AdamEttenberger

Description

@AdamEttenberger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions