Skip to content

Commit

Permalink
fix: mark both variable and function contexts in interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Jul 29, 2024
1 parent 1108577 commit 1333e13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/language-services/src/features/do-complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ export class DoComplete extends LanguageFeature {
currentWord,
};

if (isInterpolation) {
context.isFunctionContext = true;
context.isVariableContext = true;
}

// Is namespace, e.g. `namespace.$var` or `@include namespace.mixin` or `namespace.func()`
context.namespace =
currentWord.length === 0 || !currentWord.includes(".")
Expand Down

0 comments on commit 1333e13

Please sign in to comment.