Fix
This commit is contained in:
parent
50c7f52986
commit
2205223ce3
|
@ -130,8 +130,7 @@ export const snippetAutoComplete = (snippets: Snippet[]) => {
|
|||
return null
|
||||
}
|
||||
|
||||
let jsBinding = context.matchBefore(/\$\("[\s\w]*/)
|
||||
if (jsBinding) {
|
||||
if (context.matchBefore(/\$\("[\s\w]*/)) {
|
||||
// We are handing a js field completion
|
||||
return null
|
||||
}
|
||||
|
@ -227,6 +226,11 @@ export const jsAutocomplete = (baseCompletions: BindingCompletion[]) => {
|
|||
|
||||
export const jsHelperAutocomplete = (baseCompletions: BindingCompletion[]) => {
|
||||
async function coreCompletion(context: CompletionContext) {
|
||||
if (context.matchBefore(/\$\("[\s\w]*/)) {
|
||||
// We are handing a js field completion
|
||||
return null
|
||||
}
|
||||
|
||||
let jsBinding = context.matchBefore(/\bhelpers\.\w*/)
|
||||
|
||||
if (jsBinding) {
|
||||
|
|
Loading…
Reference in New Issue