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
allowNonTsExtensions should also honour files without extensions #1593
Set the allowNonTsExtensions to true and have a file without an extension. Pass it to the compiler and you will see a compiler error like cannot find file <name>.ts. This is a problem when an editor has an unsaved buffer which mime type is known to be TypeScript.
David Sherret (@dsherret) this is not a supported compiler flag. you can not pass this on the commandline. this flag is mainly for tooling purposes, e.g. Monaco web editor where file names do not have full extensions.
Activity
fix #1593 - also honour allowNonTsExtensions flag when there is no ex…
Merge pull request #1594 from Microsoft/allowNonTsExtensionsVsNoExten…
Manual port of fixe for #1593 from release-1.4
dsherret commentedon Nov 18, 2015
Was this meant to be included in 1.4?
http://stackoverflow.com/questions/33785337/tsc-unknown-compiler-option-allownontsextensions
mhegazy commentedon Nov 19, 2015
David Sherret (@dsherret) this is not a supported compiler flag. you can not pass this on the commandline. this flag is mainly for tooling purposes, e.g. Monaco web editor where file names do not have full extensions.
mhegazy commentedon Nov 19, 2015
for future searchs, if you are using this flag to allow consumption of .js files,
--allowJsis the right flag to use.