feat: only add suggester if dataview is enabled

This commit is contained in:
Daniel Bauer
2024-12-14 12:20:07 +01:00
parent a1245356ad
commit f60f5654c1
3 changed files with 29 additions and 19 deletions

View File

@@ -53,7 +53,6 @@ export function getTriggerText(line: string, cursorPos: number): [string, number
function getTriggerTextFromRegex(line: string, cursorPos: number, regex: RegExp): [string, number, number] | null {
let matches = Array.from(line.matchAll(regex));
for (const match of matches) {
console.warn(match);
if (match.index === undefined) {
continue;
}