(content: string)
| 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({ |
no test coverage detected