You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript 3.7 — LanguageService.getEmitOutput returns an empty result #33936
WIth TS 3.6, getEmitOutputends up returning a result. However with TS 3.7, it returns an empty array starting on one file: vs/editor/common/standalone/standaloneBase
Your tsconfig doesn't have "declaration" enabled and hence its not generating it. 11fd654 changed the way emitOnlyDts works because I had mixed forcing d.ts emit to be always generated with API emitOnlyDts and that could be why you see it. Currently forceDts is internal but do you mind making that method as any and passing that as true to see if that resolves the issue?
Activity
mjbvz commentedon Oct 10, 2019
A few other observations:
getEmitOutputdoes work correctly for a few files before failing onstandaloneBaseemitOnlyDtsFilestofalse, I do see the js file being output forstandaloneBasebut not ad.tsfilesheetalkamat commentedon Oct 10, 2019
Your tsconfig doesn't have "declaration" enabled and hence its not generating it. 11fd654 changed the way emitOnlyDts works because I had mixed forcing d.ts emit to be always generated with API
emitOnlyDtsand that could be why you see it. CurrentlyforceDtsis internal but do you mind making that method as any and passing that as true to see if that resolves the issue?mjbvz commentedon Oct 10, 2019
Thanks. If I monkey patch the TS source to set
forceDtsto true, It does seem to work. I can't figure out how to enableforceDtsfrom our code howeverAdd forceDtsEmit flag to getEmitOutput