UNPKG

yaml-language-server

Version:
16 lines (15 loc) 763 B
import type { Connection } from 'vscode-languageserver'; import type { TextDocument } from 'vscode-languageserver-textdocument'; import type { Diagnostic } from 'vscode-languageserver-types'; import type { LanguageService } from '../../languageservice/yamlLanguageService'; import type { SettingsState } from '../../yamlSettings'; export declare class ValidationHandler { private readonly connection; private languageService; private yamlSettings; constructor(connection: Connection, languageService: LanguageService, yamlSettings: SettingsState); validate(textDocument: TextDocument): void; private cleanPendingValidation; validateTextDocument(textDocument: TextDocument): Promise<Diagnostic[]>; private resolveValidationState; }