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>

9 lines (8 loc) 834 B
import { CompletionItem, CompletionList, CompletionParams, HoverParams } from 'vscode-languageserver-protocol'; import { DocumentManager } from '../../documents'; import { GetThemeBlockNames } from '../JSONContributions'; import { JSONLanguageService } from '../JSONLanguageService'; import { GetTranslationsForURI } from '../../translations'; export declare function getRequestParams(documentManager: DocumentManager, relativePath: string, source: string): HoverParams & CompletionParams; export declare function isCompletionList(completions: null | CompletionList | CompletionItem[]): completions is CompletionList; export declare function mockJSONLanguageService(rootUri: string, documentManager: DocumentManager, getDefaultSchemaTranslations?: GetTranslationsForURI, getThemeBlockNames?: GetThemeBlockNames): JSONLanguageService;