Open macintacos opened 8 years ago
Could you provide some more details, please? It's working fine for me (which I know doesn't exactly help!)
What versions of Visual Studio, ReSharper and the plugin are you using? And do you have a copy of angular.js
added into the project? It can't be the minimised version - there's an outstanding issue where it can't parse that file.
Sure.
I'm running the plugin (latest version) on ReSharper 2016.2 on Visual Studio Enterprise 2015 Update 3. And yeah I have it installed through bower, although in the .cshtml file itself it is referencing the minified version. Changing it in the .cshtml file to the regular angular.js file didn't help though.
In the .cshtml file: typing 'ng' seems to start autocompleting:
But once I type the '-', no suggestions show up:
This is what it looks like in a normal .html file:
And here is my /lib folder, with all the proper angular files (installed through Bower):
I've been unable to recreate this. Could you try starting Visual Studio with the command line devenv.exe /ReSharper.Internal
, then trying to get it to work, please? This enables ReSharper's exception reporting dialog, and if there are any exceptions, you'll see a little flashing exclamation mark in the bottom right of the status bar. Double clicking this will show exceptions.
If there are any, you can either paste them here, or submit them and let me know the issue numbers.
I have exactly the same issue. If I type: "<div ng-" no suggestions show up. But if I type "<ng-" all suggestions show up.
I have no ReShaprer's exceptions (devenv.exe /ReSharper.Internal) Tried with "Support Angular markup in HTML pages" None and Angular 2.x PS VS2017 15.6.1 ReSharper 2017.3.3 Angular 1.6.9 (from npm) resharper-angularjs - 1.11.0
It works well in .html and does not depend on whether there is a link to angular.js or not. But in .cshtml it does not work.
It seems like the code completion from this plugin doesn't work particularly well within .cshtml files. Works fine in other normal HTML files.