Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 38caf01

Browse files
committed
minor tweak to html completions while dog food testing
1 parent 35687ee commit 38caf01

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎AngularJS-sublime-package.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,13 @@ def on_query_completions(self, view, prefix, locations):
395395
component_scopes = list(ng.settings.get('component_scopes'))
396396
component_scopes = ', '.join(component_scopes)
397397
is_component = view.match_selector(locations[0], component_scopes)
398-
399-
if is_component or (is_attribute and html_lt):
398+
#another workaround due to how ST2 and 3 differ when default triggers are triggered
399+
is_html_scope = ng.isSource('text.html')
400+
if(
401+
((is_component and not is_html_scope) or (ng.isST2 and is_component))
402+
or
403+
(is_attribute and html_lt and is_html_scope)
404+
):
400405
return ng.completions(view, prefix, locations, False)
401406

402407
def on_post_save(self, view):

0 commit comments

Comments
 (0)