From 2093d85a5fd593f5a89b15634e0a768933a8643f Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 3 May 2023 09:27:54 +0100 Subject: [PATCH] Exclude CtrlSym commands from completion (#12905) GitOrigin-RevId: f6d1813eba6c17444d2371b024f538137c244963 --- .../features/source-editor/utils/tree-operations/commands.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts b/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts index 1709fe53b0..80c5e71a06 100644 --- a/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts +++ b/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts @@ -102,6 +102,10 @@ export const enterNode = ( return } + if (ctrlSeq.type.is('$CtrlSym')) { + return + } + const optionalArguments = commandNode.getChildren('OptionalArgument') const commandArguments = commandNode.getChildren('$Argument') const text = state.doc.sliceString(ctrlSeq.from, ctrlSeq.to)