Description
TypeScript Version: 3.0.1-insiders.20180726
Search Terms: IE11, language service, monaco editor
Code
Open the TypeScript Playground (Monaco Editor using the language service of current TypeScript version 3.0.1-insiders.20180726
) in IE 11 (on Windows 10, 8.1 or 7) and enter the following code:
// In IE 11, this doesn't show an error:
let f = function () {
let g = function() {
Math.xxxxxxxyyyyzzzz(aaaaaa, bbbbbb, ccccc);
};
};
// This correctly shows an error:
Math.xxxxxxxyyyyzzzz(aaaaaa, bbbbbb, ccccc);
Expected behavior:
The unknown properties and variables should be shown as error (which works in other browsers like Edge, Firefox, Chrome):
Actual behavior:
For the inner function, unknown properties/variables are not shown as error in IE 11:
With the previous playground version (I think 2.9.x), this worked correctly. I don't know what could cause this behavior in IE 11, since the console also doesn't show any errors.
Additionally, if you enable noUnusedLocals
in the Monaco Editor, the editor will sometimes show variables as unused even though they are used (I currently don't have a screenshot of that).
Unfortunately, for a software product at work we still need to use IE 11 (as WebBrowser control in a .NET app), so it would be nice if TypeScript with Monaco Editor would still work properly on IE 11.
Thank you!