Skip to content

Commit c0251f5

Browse files
authored
Sugar is bad for your teeth
1 parent f08e9e7 commit c0251f5

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/latest/scripts/language/sbcs/autocomplete.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,7 @@ import { vyxalLanguage } from "../../../../common/scripts/language/vyxal";
66
export function vyxalCompletion(elementData: ElementData) {
77
return vyxalLanguage.data.of({
88
autocomplete(context: CompletionContext): Promise<CompletionResult | null> {
9-
const sugar = context.matchBefore(/#[,.^](.)/);
10-
if (sugar != null) {
11-
const desugared = elementData.sugars.get(sugar.text);
12-
if (typeof desugared == "string") {
13-
return Promise.resolve({
14-
from: sugar.from,
15-
filter: false,
16-
options: [
17-
{ label: desugared, detail: "sugar trigraph", type: "constant" },
18-
],
19-
});
20-
}
21-
}
229
return elementAutocomplete(elementData, context, false);
2310
},
2411
});
25-
}
12+
}

0 commit comments

Comments
 (0)