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>

27 lines (26 loc) 1.29 kB
import { Connection } from 'vscode-languageserver'; import { ClientCapabilities } from '../../ClientCapabilities'; import { DiagnosticsManager, makeRunChecks } from '../../diagnostics'; import { DocumentManager } from '../../documents'; import { DebouncedFunction } from '../../utils'; import { BaseExecuteCommandProvider } from '../BaseExecuteCommandProvider'; /** * The RunChecksProvider runs theme check on all open files. * * It is triggered by the cmd+p command in the VS Code extension and is * otherwise not used internally, which is why there is no * `runChecksCommand` method. * * This will be useful in a world where `checkOnSave`, `checkOnChange`, * `checkOnOpen` are all false. */ export declare class RunChecksProvider extends BaseExecuteCommandProvider { protected documentManager: DocumentManager; protected diagnosticsManager: DiagnosticsManager; protected clientCapabilities: ClientCapabilities; protected connection: Connection; private runChecks; static command: "themeCheck/runChecks"; constructor(documentManager: DocumentManager, diagnosticsManager: DiagnosticsManager, clientCapabilities: ClientCapabilities, connection: Connection, runChecks: DebouncedFunction<ReturnType<typeof makeRunChecks>>); execute(): Promise<void>; }