-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Support "exclude" property in tsconfig.json #3188
Conversation
This should probably have a name that ties it more close to 'fileNames'. i.e. 'excludedFileNames'. That way we know that this is supposed to complement that tsconfig property. |
The other property is called |
|
I like |
Meh. Seems to completely ignore the community feedback about globs. |
Adding |
I should have added more specifics. We keep all feature related code in the same directory. Unit tests are named *.spec.js Doing a build and excluding tests (or otherwise) doesn't work for us when files must be excluded by name and not by pattern. |
👍 |
@ahejlsberg We discussed this briefly, but I have an alternative approach that supports "glob"-style pattern matching with recursive directories in this pull request: #3232. |
I suspect |
Pluralization ("excludes") would be better, but I'd too prefer a more specific name. |
Conflicts: src/compiler/sys.ts
Support "exclude" property in tsconfig.json
Does language service take I'm on VSCode 0.3 on a Mac. And I'm using the current master branch. |
@tinganho this has been checked in recently. The Language Service support should be in 1.6 by the time it ships. |
@rbuckton I'd like to add support for this and completely remove atom-typescript's custom |
Quick use case: user needs to include source from only a few folders. So ignore my last query 😉 |
I use fileGlobs to order my ts files.
|
@Mig1st4ck your filesGlob reference is from Atom correct? This is not (yet) a native tsconfig feature right? |
@mbalex99 yes. It is not native |
is this available in 1.5.3? Adding an |
I guess not as it works as expected with a nightly (1.6) build |
It would be great if the EDIT: on second thought, maybe my issue is only exclusive to TypeStrong/atom-typescript#558... apologies for noise... |
Implements #3043. A tsconfig.json file that doesn't specify a
files
property (and therefore implicitly references all *.ts files in all subdirectories) can now contain anexclude
property that specifies a list of files and/or directories to exclude from the compilation. Theexclude
property must be an array of strings that each specify a file or folder name relative to the location of the tsconfig.json file. For example:The
exclude
list does not support wilcards. It must simply be a list of files and/or directories.