Skip to content

tsconfig files to allow directories? #443

Closed

Description

Hi,
I am using the Error List function in Sublime.
However, I have no files defined because I find it a bit redundant to register a file every time I created a new file in my project.
So I removed the file option which makes it load all files as standard behaviour.

So the Error list worker process is freaking out about some of the definition files (not maintained by me).
I don't want to see those errors but it happens because of all the files are loaded.
It would help me, if I could add directories with a wildcard to the file section in the tsconfig.
That way I can include the whole view section and components, but exclude the typings folder.

Activity

  1. billti commented on Feb 23, 2016

    @billti
    Member

    We already allow you to exclude specific directories via the excludes property (see https://github.com/Microsoft/TypeScript/wiki/tsconfig.json ). Wildcard support (i.e. globbing patterns) are coming in this pull request: microsoft/TypeScript#5980 .

  2. mattiLeBlanc commented on Feb 23, 2016

    @mattiLeBlanc
    Author

    Awesome. Thank you.

  3. mattiLeBlanc commented on Feb 24, 2016

    @mattiLeBlanc
    Author

    Bill Ticehurst (@billti) Actually excluding the typings file drops the whole type checking system in Sublime, so that doesn't work.

    I just manually included my top level typing files

    {
        "filesGlob": [
            "./typings/browser.d.ts",
            "./typings/custom.d.ts",
            "./server/**/*.ts",
            "./client/**/*.ts"
        ],
        "compilerOptions": {
            "module": "commonjs"
        },
        "compileOnSave": false,
        "buildOnSave": false
    
    }
    

    but I still get all the duplicate messages in my typing files.
    Is there anyway to NOT have the typing messages in the Error List?

  4. zhengbli commented on Feb 25, 2016

    @zhengbli
    Contributor

    Excluding folders should not turn off type checking system in Sublime. Also, filesGlob field is not currently supported by tsconfig.json. All options available in tsconfig.json can be found in this
    wiki page.

    Unfortunately before the wildcard file name pattern was merged, there is no other way to define a project except using either files array or exclude array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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