@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>
14 lines (13 loc) • 562 B
TypeScript
import { Connection } from 'vscode-languageserver';
import { Dependencies } from '../types';
/**
* This code runs in node and the browser, it can't talk to the file system
* or make requests. Stuff like that should be injected.
*
* In browser, theme-check-js wants these things:
* - fileExists(path)
* - defaultTranslations
*
* Which means we gotta provide 'em from here too!
*/
export declare function startServer(connection: Connection, { fs: injectedFs, loadConfig, log, jsonValidationSet, themeDocset: remoteThemeDocset, }: Dependencies): void;