Hide .js.map files in Visual Studio Code

后端 未结 12 2167
生来不讨喜
生来不讨喜 2020-11-30 16:19

I am working on a typescript project in Visual Studio code and would like to hide the .js.map (and maybe even the .js) files from appearing in the

12条回答
  •  清歌不尽
    2020-11-30 17:08

    There is still no official solution for excluding a file glob based on two different conditions. See this issue.

    There is a workaround though, to define two different glob patterns which target the same files:

    {
        "files.exclude": {
            "**/*.js": { "when": "$(basename).ts"},
            "**/*?.js": { "when": "$(basename).tsx"}
        }
    }
    

提交回复
热议问题