From 5278ce453e53c10ef31fd5f4201a38ad458b6766 Mon Sep 17 00:00:00 2001 From: Yannick Daveluy Date: Fri, 20 Sep 2024 08:28:56 +0200 Subject: [PATCH] fix missing keyword in completion --- .../langium/src/lsp/completion/follow-element-computation.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/langium/src/lsp/completion/follow-element-computation.ts b/packages/langium/src/lsp/completion/follow-element-computation.ts index f34bbc1ea..f595977df 100644 --- a/packages/langium/src/lsp/completion/follow-element-computation.ts +++ b/packages/langium/src/lsp/completion/follow-element-computation.ts @@ -52,8 +52,6 @@ function findNextFeaturesInternal(options: { next: NextFeature, cardinalities: M const feature = next.feature; if (visited.has(feature)) { return []; - } else { - visited.add(feature); } let parent: ast.Group | undefined; let item = feature;