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>

17 lines (16 loc) 1.12 kB
import { GetDocDefinitionForURI, MetafieldDefinitionMap, ThemeDocset } from '@shopify/theme-check-common'; import { Hover, HoverParams } from 'vscode-languageserver'; import { DocumentManager } from '../documents'; import { GetTranslationsForURI } from '../translations'; import { GetThemeSettingsSchemaForURI } from '../settings'; export declare class HoverProvider { readonly documentManager: DocumentManager; readonly themeDocset: ThemeDocset; readonly getMetafieldDefinitions: (rootUri: string) => Promise<MetafieldDefinitionMap>; readonly getTranslationsForURI: GetTranslationsForURI; readonly getSettingsSchemaForURI: GetThemeSettingsSchemaForURI; readonly getDocDefinitionForURI: GetDocDefinitionForURI; private providers; constructor(documentManager: DocumentManager, themeDocset: ThemeDocset, getMetafieldDefinitions: (rootUri: string) => Promise<MetafieldDefinitionMap>, getTranslationsForURI?: GetTranslationsForURI, getSettingsSchemaForURI?: GetThemeSettingsSchemaForURI, getDocDefinitionForURI?: GetDocDefinitionForURI); hover(params: HoverParams): Promise<Hover | null>; }