microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.31k stars 12.53k forks source link

Docs: Incorrect option in wiki doc JavaScript Language Service in Visual Studio #45009

Open thernstig opened 3 years ago

thernstig commented 3 years ago

Looking at https://github.com/microsoft/TypeScript/wiki/JavaScript-Language-Service-in-Visual-Studio#-support-for-es6-and-beyond it states enableAutoDiscovery as an option in a tsconfig.json file.

But looking at https://www.typescriptlang.org/tsconfig it does not seem to be an option available at all. Not on https://www.typescriptlang.org/docs/handbook/compiler-options.html either.

I thus wonder if this is incorrect in that wiki, and if in general the docs in the wiki article are quite outdated and could use an overhaul? They do not seem to be exactly described the same as in https://code.visualstudio.com/docs/nodejs/working-with-javascript#_global-variables-and-type-checking and https://code.visualstudio.com/docs/languages/jsconfig#_jsconfig-options

MartinJohns commented 3 years ago

Looking at the source code it's marked as deprecated and points to typeAcquisition instead, which is mentioned on the tsconfig page.