File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/resharper-angularjs/Hacks/CodeCompletion Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2222using JetBrains . ReSharper . Plugins . AngularJS . Psi . Html ;
2323using JetBrains . ReSharper . Psi ;
2424using JetBrains . ReSharper . Psi . Html ;
25+ using JetBrains . ReSharper . Psi . Html . Tree ;
26+ using JetBrains . ReSharper . Psi . Resolve ;
2527using JetBrains . Text ;
2628
2729namespace JetBrains . ReSharper . Plugins . AngularJS . Hacks . CodeCompletion
@@ -37,7 +39,13 @@ public class AutomaticTagItemsProvider : ItemsProviderOfSpecificContext<HtmlCode
3739 {
3840 protected override bool IsAvailable ( HtmlCodeCompletionContext context )
3941 {
40- return context . BasicContext . Parameters . IsAutomaticCompletion ;
42+ if ( context . BasicContext . Parameters . IsAutomaticCompletion )
43+ {
44+ if ( context . TreeNode != null && context . TreeNode . GetContainingNode < IHtmlTagFooter > ( ) != null )
45+ return false ;
46+ return context . Reference is ICompleteableReference ;
47+ }
48+ return false ;
4149 }
4250
4351 protected override bool AddLookupItems ( HtmlCodeCompletionContext context , GroupedItemsCollector collector )
You can’t perform that action at this time.
0 commit comments