This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports =
11
11
completions : COMPLETIONS
12
12
13
13
getSuggestions : (request ) ->
14
- if @ isJavaScript (request) and @ isIgnoreInJavaScript (request)
14
+ if @ isJavaScript (request) and not @ isIgnoreInJavaScript (request)
15
15
@ getJavascriptCompletions (request)
16
16
else if @ isHtml (request)
17
17
if @ isAttributeStart (request)
@@ -26,16 +26,17 @@ module.exports =
26
26
return true if scope .startsWith (' source' ) and scope .endsWith (' .js' )
27
27
return false
28
28
29
- isIgnoreInJavaScript : ({ scopeDescriptor }) ->
29
+ isIgnoreInJavaScript : ({ scopeDescriptor, prefix }) ->
30
30
scopes = scopeDescriptor .getScopesArray ()
31
- return false if scopes .indexOf (' punctuation.terminator.statement.js' ) isnt - 1 or
31
+ return true if scopes .indexOf (' punctuation.terminator.statement.js' ) isnt - 1 or
32
32
scopes .indexOf (' keyword.operator.assignment.js' ) isnt - 1 or
33
33
scopes .indexOf (' meta.delimiter.object.comma.js' ) isnt - 1 or
34
34
scopes .indexOf (' keyword.operator.comparison.js' ) isnt - 1 or
35
35
scopes .indexOf (' keyword.operator.ternary.js' ) isnt - 1 or
36
36
scopes .indexOf (' keyword.operator.js' ) isnt - 1 or
37
- scopes .indexOf (' string.quoted.template.js' ) isnt - 1
38
- return true
37
+ scopes .indexOf (' string.quoted.template.js' ) isnt - 1 or
38
+ prefix .trim () is ' '
39
+ return false
39
40
40
41
isHtml : ({ scopeDescriptor }) ->
41
42
for scope in scopeDescriptor .getScopesArray ()
You can’t perform that action at this time.
0 commit comments