Quick Fix info inconsistent when offering to import a UMD declaration. #17860
Labels
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.20170816)
To Reproduce:
Open in Visual Studio Code, move cursor to

_
, click the 💡, and observe that the following quick fix info is displayedExpected behavior:
If
--allowSyntheticDefaultImports
istrue
the quick fix info remains the same and the result isIf

--allowSyntheticDefaultImports
isfalse
the quick fix info changes toand the result is
Actual behavior:
Regardless of the values specified for

--module
and--allowSyntheticDefaultImports
, the quick fix info is alwaysand the result is always
Ideal behavior: 😃
If
--allowSyntheticDefaultImports
istrue
the quick fix info remains the same and the result isIf

--allowSyntheticDefaultImports
isfalse
and--module
is eithercommonjs
,amd
, orumd
the quick fix info is changed toand the result is
The text was updated successfully, but these errors were encountered: