Skip to content

Commit ba844e6

Browse files
committed
temp
1 parent 622f2eb commit ba844e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/theme-language-server-common/src/completions/providers/RenderSnippetCompletionProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class RenderSnippetCompletionProvider implements Provider {
5454
function getInlineSnippetsNames(ast: LiquidHtmlNode): string[] {
5555
return visit<SourceCodeType.LiquidHtml, string>(ast, {
5656
LiquidTag(node: LiquidTag) {
57+
// We only want to return inline snippets that are defined in this file, and also we don't want to return the snippet name if the render tag is inside of that same snippet.
5758
if (node.name === 'snippet' && typeof node.markup !== 'string' && node.markup.name) {
5859
return node.markup.name;
5960
}

0 commit comments

Comments
 (0)