MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / setEditorState

Method setEditorState

src/client/code.mjs:83–85  ·  view source on GitHub ↗
(code, context)

Source from the content-addressed store, hash-verified

81 }
82
83 setEditorState(code, context) {
84 this.editor.setState(createState(code, context.type || guessType(code), [this.extensions, contextFacet.of(context)]))
85 }
86
87 selectContext(value) {
88 this.output.clear()

Callers 2

constructorMethod · 0.95
selectContextMethod · 0.95

Calls 4

createStateFunction · 0.90
setStateMethod · 0.80
guessTypeFunction · 0.70
ofMethod · 0.45

Tested by

no test coverage detected