close-all-context-menus-effect.ts 250 B

12345
  1. import { StateEffect } from '@codemirror/state'
  2. // Effect used to ask any loaded menu/tooltip extension to close itself.
  3. // Used to ensure only one context menu is open at a time.
  4. export const closeAllContextMenusEffect = StateEffect.define<null>()