Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig files to allow directories? #443

Closed
mattiLeBlanc opened this issue Feb 22, 2016 · 4 comments
Closed

tsconfig files to allow directories? #443

mattiLeBlanc opened this issue Feb 22, 2016 · 4 comments

Comments

@mattiLeBlanc
Copy link

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.

@billti
Copy link
Member

billti commented Feb 23, 2016

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 .

@billti billti closed this as completed Feb 23, 2016
@mattiLeBlanc
Copy link
Author

Awesome. Thank you.

@mattiLeBlanc
Copy link
Author

@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?

@zhengbli
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants