@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>
23 lines (22 loc) • 1.14 kB
TypeScript
import { ThemeDocset } from '@shopify/theme-check-common';
import { CompletionItem, CompletionParams } from 'vscode-languageserver';
import { DocumentManager } from '../documents';
import { GetThemeSettingsSchemaForURI } from '../settings';
import { GetTranslationsForURI } from '../translations';
import { GetSnippetNamesForURI } from './providers/RenderSnippetCompletionProvider';
export interface CompletionProviderDependencies {
documentManager: DocumentManager;
themeDocset: ThemeDocset;
getTranslationsForURI?: GetTranslationsForURI;
getSnippetNamesForURI?: GetSnippetNamesForURI;
getThemeSettingsSchemaForURI?: GetThemeSettingsSchemaForURI;
log?: (message: string) => void;
}
export declare class CompletionsProvider {
private providers;
readonly documentManager: DocumentManager;
readonly themeDocset: ThemeDocset;
readonly log: (message: string) => void;
constructor({ documentManager, themeDocset, getTranslationsForURI, getSnippetNamesForURI, getThemeSettingsSchemaForURI, log, }: CompletionProviderDependencies);
completions(params: CompletionParams): Promise<CompletionItem[]>;
}