#VScode intellisense not showing all files errors.

1 messages · Page 1 of 1 (latest)

candid galleon
#

It's not a real typescript problem, but it affects me when using a ts project in my company.

When I brought TS to the webapp project it worked like a charm, it notified me errors from ts in all files at once (it took its time but at the end I remember it did show the errors). Now if I change a function name that is used across multiple files, it doesn't show me the errors produced in every file of the app (only in that file itself).

That makes ts not so usefull.

Any hint what can be happening? Thank you

kindred thicket
#

This sounds more like a tooling problem

#

I.e. a problem with the IDE you are using

#

Not with typescript

#

That or maybe you deleted your tsconfig.json?

candid galleon
#
{
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx",
    "baseUrl": "./src/",
    "paths": {
      "@/components/*": ["./app/core/components/*"],
      "@/constants/*": ["./app/core/constants/*"],
      "@/contexts/*": ["./app/core/contexts/*"],
      "@/hooks/*": ["./app/core/hooks/*"],
      "@/pages/*": ["./app/core/pages/*"],
      "@/img/*": ["./img/*"],
      "@/api/*": ["./app/core/api/*"],
    },
    "typeRoots": ["node_modules/@types", "src/types"]
  },
  "include": ["./src"],
}
#

is there something wrong here?

valid tapir
#

TIL about "typescript.tsserver.experimental.enableProjectDiagnostics": true (from comments near the end of that issue). that might be what you're looking for