-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Please, separate Typescript from Javascript, so I can disable TS and keep JS! #239670
Comments
Why? What problems are you having? |
I’d like to be able to have all the features of JS but not the “features” (warnings, errors, options to convert my js to ts etc.) of TS.Simply, just leave anything TS out without disabling anything JS.Or put another way: stop Microsoft from forcing TS onto us.Sent from my iPhoneOn 5 Feb 2025, at 10.56, John Murray ***@***.***> wrote:
Why? What problems are you having?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Use jsconfig and not tsconfig. |
Yeah, that’s what I thought. Now, I have to go through hoops and loops to control the default behaviour of VSC … and I even have to MANUALLY exclude node_modules as VSC cannot figure that out be default.The editor is getting worse as times goes by.Sent from my iPhoneOn 5 Feb 2025, at 13.51, Alberto Santini ***@***.***> wrote:
Use jsconfig and not tsconfig.
https://code.visualstudio.com/docs/languages/jsconfig
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
About hiding Generally speaking, in javascript (or typescript) project I add the following settings in
Sometimes, when I work on a sort of low-level debugging in the deps, I remove those settings, because it is useful to have Your mileage may vary. Hope that helps. |
I just came here to post the same thing. I've been putting it off for a while because I was hoping that VSC would fix it. With each update I hope for improvement on this topic, but no. We shouldn't need to create a separate file to exclude unrelated errors and warnings. TS is nowhere in any of my projects, but I still have to use I also want to be able to disable these warnings without removing other useful features. |
I cannot reproduce it. My setup is using a jsconfig file (doc link above for details) in the root of the project like
I have not relevant settings enabled. If you use ts features in a js file, I think that kind of error is expected. |
Well, that's my point: I DON'T use ANY TS features in my project – I have NO files with the suffix of .ts. But STILL TypeScript is messing with me. Simply: SPLIT the settings for TS and JS in the settings, so we can relate to them as two SEPARATE things. They are NOT the same. If VSC finds NO files with the suffix of .ts anywhere in my project (ignoring node_modules, as I have no control of what's in there .ts wise), it should leave me and my project alone and not annoy me with "trying to help (convert my JS code to TS)". |
If I am not wrong, when the file is a js or, generally speaking, it is a javascript project, you don'want any lint line in |
If the answer is yes to my previous question, this is the setting you need to disable ts validation for js files:
|
It seems absolutely counter intuitive to specifically DISABLE javascript validation ("javascript.validate.enable": false), when you want to disable TS validation!? I WANT JS validation The crazy thing is that VSC 'think' I want TS validation even though NONE of my files have .ts file suffix. What am I NOT getting about this? |
That setting will disable only the validation with typescript compiler. If you set, for instance, Recap. Just to see if I answered to your question. :)
Hope that helps. |
I need a setting where I can disable TS ONLY and not only TS AND Javascript at the same time.
Separate them!
The text was updated successfully, but these errors were encountered: