import { LanguageSettings , SchemasSettings } from '../../src/languageservice/yamlLanguageService' ; export class ServiceSetup { languageSettings : LanguageSettings = { validate : false , hover : false , completion : false , format : false , isKubernetes : false , schemas : [ ] , customTags : [ ] , indentation : undefined , yamlVersion : '1.2' , } ; withValidate ( ) { this . languageSettings . validate = true ; return this ; } withHover ( ) { this . languageSettings . hover = true ; return this ; } withCompletion ( ) { this . languageSettings . completion = true ; return this ; } withFormat ( ) { this . languageSettings . format = true ; return this ; } withKubernetes ( allow = true ) { this . languageSettings . isKubernetes = allow ; return this ; } withSchemaFileMatch ( schemaFileMatch ) { this . languageSettings . schemas . push ( schemaFileMatch ) ; return this ; } withCustomTags ( customTags ) { this . languageSettings . customTags = customTags ; return this ; } withIndentation ( indentation ) { this . languageSettings . indentation = indentation ; return this ; } }