MCPcopy Index your code
hub / github.com/editablejs/editable / getOptions

Function getOptions

packages/plugins/codeblock/src/options.ts:22–24  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

20const CODEBLOCK_OPTIONS = new WeakMap<Editor, CodeBlockOptions>()
21
22export const getOptions = (editor: Editor): CodeBlockOptions => {
23 return CODEBLOCK_OPTIONS.get(editor) ?? {}
24}
25
26export const setOptions = (editor: Editor, options: CodeBlockOptions) => {
27 CODEBLOCK_OPTIONS.set(editor, options)

Callers 4

CodeBlockComponentFunction · 0.90
CodeBlockPopoverFunction · 0.90
useLanguageFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…