Whenever a tsconfig.json works with tsc, it works with langserver as well. E.g. it doesn't show errors on files which build with tsc just fine.
Actual behavior:
If I have a modern target in tsconfig.json, tsc includes the relevant libs automatically while langserver doesn't and shows an error because it doesn't recognize Map and Promise.
Expected behavior:
Whenever a
tsconfig.json
works withtsc
, it works withlangserver
as well. E.g. it doesn't show errors on files which build withtsc
just fine.Actual behavior:
If I have a modern
target
intsconfig.json
,tsc
includes the relevantlibs
automatically whilelangserver
doesn't and shows an error because it doesn't recognizeMap
andPromise
.Detailed description:
I have the following
tsconfig.json
:Which works both with
tsc -p .
andlangserver
.However, when I delete the
lib
line, the langserver stops recognizing the library features such asPromise
andMap
.