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