Skip to content

配置文件能否支持忽略指定文件/目录的诊断 #1232

Description

@gogoolu

如果直接将目录加到 workspace.ignoreDir 里,诊断确实不会有,但是外部require的时候会报找不到模块,必须在对应文件里加上---@diagnostic disable

希望能在配置中忽略文件/目录的诊断,比如这样

{
    "diagnostics": {
        "ignoreDir": [
            "./Config/"
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions