So I have the typescript extension installed and I can see the new project type ("HTML App with TypeScript" and the ".ts" file type). Everything seems to work (compilation, error highlighting etc.) but I am not able to get IntelliSense to work correctly.
Hovering over a parameter displays its type but code completion and "list members" do not work. Doesn't matter if I press Strg + Space
or select List Members
from the menu, nothing happens.
I tried to disable/enable "auto list members" in the options, I even reset all the options. IntelliSense works fine in C# projects and it even works fine in the .js file that is generated.
This is a wicked little Visual Studio issue. You need the leading "<" for this to work.
WRONG way to add a .ts reference:
/// reference path="myOtherFile.ts" />
RIGHT way:
/// <reference path="myOtherFile.ts" />
VS 2012 drops in the WRONG text when you drag a file from the solution explorer tree into a text file. Easily fixed but hard to notice the problem in the first place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With