@@ -157,28 +157,28 @@ export interface CustomFormatterOptions {
157157}
158158
159159export interface LanguageService {
160- configure ( settings : LanguageSettings ) : void ;
161- registerCustomSchemaProvider ( schemaProvider : CustomSchemaProvider ) : void ;
162- doComplete ( document : TextDocument , position : Position , isKubernetes : boolean ) : Promise < CompletionList > ;
163- doValidation ( document : TextDocument , isKubernetes : boolean ) : Promise < Diagnostic [ ] > ;
164- doHover ( document : TextDocument , position : Position ) : Promise < Hover | null > ;
165- findDocumentSymbols ( document : TextDocument , context : DocumentSymbolsContext ) : SymbolInformation [ ] ;
166- findDocumentSymbols2 ( document : TextDocument , context : DocumentSymbolsContext ) : DocumentSymbol [ ] ;
167- findLinks ( document : TextDocument ) : Promise < DocumentLink [ ] > ;
168- resetSchema ( uri : string ) : boolean ;
169- doFormat ( document : TextDocument , options : CustomFormatterOptions ) : TextEdit [ ] ;
170- doDefinition ( document : TextDocument , params : DefinitionParams ) : DefinitionLink [ ] | undefined ;
171- doDocumentOnTypeFormatting ( document : TextDocument , params : DocumentOnTypeFormattingParams ) : TextEdit [ ] | undefined ;
172- addSchema ( schemaID : string , schema : JSONSchema ) : void ;
173- deleteSchema ( schemaID : string ) : void ;
174- modifySchemaContent ( schemaAdditions : SchemaAdditions ) : void ;
175- deleteSchemaContent ( schemaDeletions : SchemaDeletions ) : void ;
176- deleteSchemasWhole ( schemaDeletions : SchemaDeletionsAll ) : void ;
177- getFoldingRanges ( document : TextDocument , context : FoldingRangesContext ) : FoldingRange [ ] | null ;
178- getSelectionRanges ( document : TextDocument , positions : Position [ ] ) : SelectionRange [ ] | undefined ;
179- getCodeAction ( document : TextDocument , params : CodeActionParams ) : CodeAction [ ] | undefined ;
180- getCodeLens ( document : TextDocument ) : Thenable < CodeLens [ ] | undefined > | CodeLens [ ] | undefined ;
181- resolveCodeLens ( param : CodeLens ) : Thenable < CodeLens > | CodeLens ;
160+ configure : ( settings : LanguageSettings ) => void ;
161+ registerCustomSchemaProvider : ( schemaProvider : CustomSchemaProvider ) => void ;
162+ doComplete : ( document : TextDocument , position : Position , isKubernetes : boolean ) => Promise < CompletionList > ;
163+ doValidation : ( document : TextDocument , isKubernetes : boolean ) => Promise < Diagnostic [ ] > ;
164+ doHover : ( document : TextDocument , position : Position ) => Promise < Hover | null > ;
165+ findDocumentSymbols : ( document : TextDocument , context ? : DocumentSymbolsContext ) => SymbolInformation [ ] ;
166+ findDocumentSymbols2 : ( document : TextDocument , context ? : DocumentSymbolsContext ) => DocumentSymbol [ ] ;
167+ findLinks : ( document : TextDocument ) => Promise < DocumentLink [ ] > ;
168+ resetSchema : ( uri : string ) => boolean ;
169+ doFormat : ( document : TextDocument , options ? : CustomFormatterOptions ) => TextEdit [ ] ;
170+ doDefinition : ( document : TextDocument , params : DefinitionParams ) => DefinitionLink [ ] | undefined ;
171+ doDocumentOnTypeFormatting : ( document : TextDocument , params : DocumentOnTypeFormattingParams ) => TextEdit [ ] | undefined ;
172+ addSchema : ( schemaID : string , schema : JSONSchema ) => void ;
173+ deleteSchema : ( schemaID : string ) => void ;
174+ modifySchemaContent : ( schemaAdditions : SchemaAdditions ) => void ;
175+ deleteSchemaContent : ( schemaDeletions : SchemaDeletions ) => void ;
176+ deleteSchemasWhole : ( schemaDeletions : SchemaDeletionsAll ) => void ;
177+ getFoldingRanges : ( document : TextDocument , context : FoldingRangesContext ) => FoldingRange [ ] | null ;
178+ getSelectionRanges : ( document : TextDocument , positions : Position [ ] ) => SelectionRange [ ] | undefined ;
179+ getCodeAction : ( document : TextDocument , params : CodeActionParams ) => CodeAction [ ] | undefined ;
180+ getCodeLens : ( document : TextDocument ) => PromiseLike < CodeLens [ ] | undefined > | CodeLens [ ] | undefined ;
181+ resolveCodeLens : ( param : CodeLens ) => PromiseLike < CodeLens > | CodeLens ;
182182}
183183
184184export function getLanguageService ( params : {
0 commit comments