-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Disable validation of specific typescript files #66017
Comments
I think this is related to ts, not the watcher |
yes it does seem so, yet isnt it supposed at least via tsconfig>exclude to understand that this file is not to be validated? and actually linting errors disappeared after i excluded the files in tslint.config.json so there must be a charm somewhere. Otherwise, how could I solve this one problem? |
Yes, vscode's exclude settings are not related to typescript validation. And the A few options:
|
These 2 options work but are there any better option to exclude certain folder? I want to exclude code validation for all my @msqaddura have you found a better alternative? |
@mjbvz the 3 suggested solutions don't really help with generated files, which I can't edit |
I'm having the same issue with generated files |
Issue Type: Bug
Tested on this repo:
https://github.com/itslenny/scaffs
These files:
https://github.com/itslenny/scaffs/tree/master/test/data/scaffolds/Example
Knowing that:
Expected Result:
after putting in settings.json "files.watcherExclude" to exclude this folder and also in tsconfig.json "exclude" the folder, VSCode's Problem Viewer should not show [ts] errors.
Real Result:
VSCode shows that these files are erronous
settings.json (please note, i tried so many variances until landed ignore whole folder)
tsconfig.json (as well added the whole folder)
errors (though VSCode should not look into them)
VS Code version: Code 1.30.0 (c6e592b, 2018-12-11T22:21:33.585Z)
OS version: Linux x64 4.18.0-13-generic
System Info
checker_imaging: disabled_off
flash_3d: unavailable_software
flash_stage3d: unavailable_software
flash_stage3d_baseline: unavailable_software
gpu_compositing: unavailable_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled_readback
webgl2: unavailable_off
The text was updated successfully, but these errors were encountered: