Răsfoiți Sursa

Exclude CtrlSym commands from completion (#12905)

GitOrigin-RevId: f6d1813eba6c17444d2371b024f538137c244963
Alf Eaton 3 ani în urmă
părinte
comite
2093d85a5f

+ 4 - 0
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)