MCPcopy Index your code
hub / github.com/marijnh/Eloquent-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 2

createStateFunction · 0.90
guessTypeFunction · 0.70

Tested by

no test coverage detected