project-system icon indicating copy to clipboard operation
project-system copied to clipboard

File nesting doesn't work due to case-sensitive file name comparisons

Open vsfeedback opened this issue 2 years ago • 1 comments

This issue has a corresponding ticket on Developer Community. Please vote and comment there to make sure your voice is heard.


[severity:It bothers me. A fix would be nice]

File nesting needs to use case-insensitive comparison of file names so that files with the same name, but have a case changes, behave the same way. I feel that this is a bug in Windows systems where the file name's case is irrelevant.

For example the file names app.config and App.config are the same name, but file-nesting in the example below only works for one of them. The syntax also doesn't allow adding other variations of the name. This needs to become consistent by doing one of three following things:

  1. Compare file names in a case-insensitive manner.
  2. Add an option to the syntax below to perform case-insensitive compares
  3. Allow adding more than file variation of a file's name
{
    "root": false,
    "dependentFileProviders": {
        "add": {
            "fileToFile": {
                "add": {
                    "App.config": [
                        "App.config.template"
                    ]
                }
            }
        }
    }
}

Be84a7ec315784d14869befaaa241c430637700564257847896_FileNesting

vsfeedback avatar May 17 '23 15:05 vsfeedback

The code for this lives in CPS.

drewnoakes avatar May 18 '23 10:05 drewnoakes