Skip to content

Commit 681ba72

Browse files
committed
Rename liquidDoc to getLiquidDoc
1 parent 3df5df9 commit 681ba72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/theme-language-server-common/src/documents/DocumentManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class DocumentManager {
174174
return toSchema(mode, uri, sourceCode, this.isValidSchema);
175175
}),
176176
/** Lazy and only computed once per file version */
177-
liquidDoc: memo(async (snippetName: string) => {
177+
getLiquidDoc: memo(async (snippetName: string) => {
178178
if (isError(sourceCode.ast)) return { name: snippetName };
179179

180180
return getSnippetDefinition(sourceCode.ast, snippetName);

packages/theme-language-server-common/src/documents/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type AugmentedJsonSourceCode = _AugmentedSourceCode<SourceCodeType.JSON>;
2424
*/
2525
export type AugmentedLiquidSourceCode = _AugmentedSourceCode<SourceCodeType.LiquidHtml> & {
2626
getSchema: () => Promise<SectionSchema | ThemeBlockSchema | AppBlockSchema | undefined>;
27-
liquidDoc: (snippetName: string) => Promise<SnippetDefinition>;
27+
getLiquidDoc: (snippetName: string) => Promise<SnippetDefinition>;
2828
};
2929

3030
/**

packages/theme-language-server-common/src/server/startServer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function startServer(
185185
return { name: snippetName };
186186
}
187187

188-
return snippet.liquidDoc(snippetName);
188+
return snippet.getLiquidDoc(snippetName);
189189
};
190190

191191
const snippetFilter = ([uri]: FileTuple) => /\.liquid$/.test(uri) && /snippets/.test(uri);

0 commit comments

Comments
 (0)