This repository was archived by the owner on Oct 9, 2024. It is now read-only.
File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ import { createConnection, TextDocuments } from "vscode-languageserver/node";
6
6
import { ValidationManager } from "../src/services/validationManager" ;
7
7
import { ExtensionSettings } from "../src/interfaces/extensionSettings" ;
8
8
9
- // eslint-disable-next-line @typescript-eslint/no-var-requires
10
- const Fuse = require ( "fuse.js" ) ;
9
+ import Fuse from "fuse.js" ;
11
10
12
11
export const FIXTURES_BASE_PATH = path . join ( "test" , "fixtures" ) ;
13
12
export const ANSIBLE_COLLECTIONS_FIXTURES_BASE_PATH = path . resolve (
@@ -106,7 +105,6 @@ export function smartFilter(completionList, triggerCharacter) {
106
105
const searcher = new Fuse ( completionList , {
107
106
keys : [ "filterText" ] ,
108
107
threshold : 0.4 ,
109
- refIndex : false ,
110
108
} ) ;
111
109
112
110
let filteredCompletionList = triggerCharacter
@@ -119,7 +117,6 @@ export function smartFilter(completionList, triggerCharacter) {
119
117
const newSearcher = new Fuse ( completionList , {
120
118
keys : [ "label" ] ,
121
119
threshold : 0.2 ,
122
- refIndex : false ,
123
120
} ) ;
124
121
125
122
filteredCompletionList = triggerCharacter
You can’t perform that action at this time.
0 commit comments