mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
fix: Fix issue of filtering incorrect content types
This commit is contained in:
@@ -36,7 +36,8 @@ export class FieldsListener extends BaseListener {
|
||||
|
||||
PagesListener.getPagesData(false, async (pages) => {
|
||||
const fuseOptions: Fuse.IFuseOptions<Page> = {
|
||||
keys: [{ name: 'fmContentType', weight: 1 }]
|
||||
keys: [{ name: 'fmContentType', weight: 1 }],
|
||||
threshold: 0,
|
||||
};
|
||||
|
||||
const pagesIndex = await Extension.getInstance().getState<Fuse.FuseIndex<Page>>(
|
||||
|
||||
Reference in New Issue
Block a user