Skip to content

Commit f54d5d5

Browse files
committed
fix lint error
1 parent 31f8d9b commit f54d5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/autocomplete/CompletionFormatter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { SchemaRetriever } from '../schema/SchemaRetriever';
1717
import { EditorSettings } from '../settings/Settings';
1818
import { LoggerFactory } from '../telemetry/LoggerFactory';
1919
import { getIndentationString } from '../utils/IndentationUtils';
20-
import { RESOURCE_ATTRIBUTE_TYPES} from './CompletionUtils';
20+
import { RESOURCE_ATTRIBUTE_TYPES } from './CompletionUtils';
2121

2222
export type CompletionItemData = {
2323
type?: 'object' | 'array' | 'simple';
@@ -211,7 +211,7 @@ export class CompletionFormatter {
211211
}
212212

213213
const entity = context.entity;
214-
if (!entity || entity.entityType !== EntityType.Resource) {
214+
if (!entity || context.getEntityType() !== EntityType.Resource) {
215215
return undefined;
216216
}
217217

0 commit comments

Comments
 (0)