MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / setEditorContent

Method setEditorContent

static/panes/tool.ts:548–556  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

546 }
547
548 setEditorContent(content: string) {
549 if (!this.editor.getModel()) return;
550 const editorModel = this.editor.getModel();
551 const visibleRanges = this.editor.getVisibleRanges();
552 const currentTopLine = visibleRanges.length > 0 ? visibleRanges[0].startLineNumber : 1;
553 unwrap(editorModel).setValue(content);
554 this.editor.revealLine(currentTopLine);
555 this.setNormalContent();
556 }
557
558 setNormalContent() {
559 this.editor.updateOptions({

Callers 1

onCompileResultMethod · 0.95

Calls 2

setNormalContentMethod · 0.95
unwrapFunction · 0.50

Tested by

no test coverage detected