@@ -34,17 +34,17 @@ import { CompletionItemData, ExtendedCompletionItem } from './CompletionFormatte
3434import { CompletionProvider } from './CompletionProvider' ;
3535import { createCompletionItem , createMarkupContent } from './CompletionUtils' ;
3636type PropertyCompletionsResult = {
37- completions : CompletionItem [ ] ;
38- skipFuzzySearch : boolean ;
39- } ;
37+ completions : CompletionItem [ ] ;
38+ skipFuzzySearch : boolean ;
39+ } ;
4040type GetBooleanTypeInfoResult = {
41- isBooleanType : boolean ;
42- resolvedSchemas : PropertyType [ ] ;
43- } ;
41+ isBooleanType : boolean ;
42+ resolvedSchemas : PropertyType [ ] ;
43+ } ;
4444
4545export class ResourcePropertyCompletionProvider implements CompletionProvider {
4646 private readonly fuzzySearch = getFuzzySearchFunction ( ) ;
47-
47+
4848 constructor ( private readonly schemaRetriever : SchemaRetriever ) { }
4949
5050 getCompletions ( context : Context , _params : CompletionParams ) : CompletionItem [ ] | undefined {
@@ -114,10 +114,7 @@ export class ResourcePropertyCompletionProvider implements CompletionProvider {
114114 } ;
115115 }
116116
117- private getBooleanTypeInfo (
118- context : Context ,
119- schema : ResourceSchema ,
120- ) : GetBooleanTypeInfoResult {
117+ private getBooleanTypeInfo ( context : Context , schema : ResourceSchema ) : GetBooleanTypeInfoResult {
121118 const propertySchemaPath = templatePathToJsonPointerPath ( context . propertyPath . slice ( 3 ) ) ;
122119 const resolvedSchemas = schema . resolveJsonPointerPath ( propertySchemaPath , {
123120 excludeReadOnly : true ,
0 commit comments