UNPKG

@shopify/theme-language-server-common

Version:

<h1 align="center" style="position: relative;" > <br> <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160"> <br> Theme Language Server </h1>

24 lines (23 loc) 1.06 kB
import { LiquidVariableLookup } from '@shopify/liquid-html-parser'; import { CompletionItem, InsertTextFormat, TextEdit } from 'vscode-languageserver'; import { LiquidCompletionParams } from '../params'; import { Provider } from './common'; import { AugmentedLiquidSourceCode } from '../../documents'; import { GetDocDefinitionForURI } from '@shopify/theme-check-common'; /** * Offers completions for parameters for the `content_for` tag after a user has * specificied the type. * * @example {% content_for "block", █ %} */ export declare class ContentForParameterCompletionProvider implements Provider { private readonly getDocDefinitionForURI; constructor(getDocDefinitionForURI: GetDocDefinitionForURI); completions(params: LiquidCompletionParams): Promise<CompletionItem[]>; textEdit(node: LiquidVariableLookup, document: AugmentedLiquidSourceCode, name: string, textTemplate?: string): { textEdit: TextEdit; format: InsertTextFormat; }; private staticCompletions; private liquidDocParameterCompletions; }