language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Warning: Enable project-wide JavaScript/Typescript language features - large codebase

Open matyasmihalka opened this issue 1 year ago • 5 comments

After upgrade to v2 I am not able to get rid of this error saying To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on.

Note: it's on a large codebase with Vue 2.7.

I noticed one interesting behaviour:

  • If I restart VS Code and open a .vue file, the language feature works fine for .vue files but not for .ts.
  • If I restart VS Code and open a .ts file, the language feature works fine for .ts files but not for .vue

I tried to add some more exclude patterns like the message suggests, but that didn't help. Also I would not like to go down this road as until now it worked fine.

image

matyasmihalka avatar Mar 04 '24 13:03 matyasmihalka

Is this one still an issue?

davidmatter avatar Aug 05 '24 21:08 davidmatter

@davidmatter Yes, it's still an issue. I just tried the v2 and I still receive the same warning as before and the above described behaviour is still the same.

Otherwise I am using v1.8.27, that works as expected.

matyasmihalka avatar Aug 09 '24 12:08 matyasmihalka

Thank you for reporting. Please provide a minimal reproduction.

kermanx avatar Aug 13 '24 14:08 kermanx

I am not sore how to do that in this case. This is happening on project where there are 100 000+ lines of code in Vue and seemingly it's connected with the size of the project. My experience is that on v2, if I open a Vue file the language feature works fine for that file even if I there is a warning, but if I switch to a .ts file, then it stops working. The behaviour is the same if I do the workflow in the opposite way.

matyasmihalka avatar Aug 14 '24 15:08 matyasmihalka

I am also experiencing this on a big Nuxt project.

Something I found is when I change "allowJs": true to "allowJs": false the tsconfig in the .nuxt generated build/dev folder it seems to fix itself.

yllaw avatar Sep 25 '24 04:09 yllaw