mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
152 lines
No EOL
129 KiB
HTML
152 lines
No EOL
129 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDiffEditor | Monaco Editor API</title><meta name="description" content="Documentation for Monaco Editor API"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Monaco Editor API</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">Monaco Editor API</a></li><li><a href="../modules/monaco.html">monaco</a></li><li><a href="../modules/monaco.editor.html">editor</a></li><li><a href="monaco.editor.IDiffEditor.html">IDiffEditor</a></li></ul><h1>Interface IDiffEditor</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A rich diff editor.</p>
|
|
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="monaco.editor.IEditor.html" class="tsd-signature-type" data-tsd-kind="Interface">IEditor</a><ul class="tsd-hierarchy"><li><span class="target">IDiffEditor</span><ul class="tsd-hierarchy"><li><a href="monaco.editor.IStandaloneDiffEditor.html" class="tsd-signature-type" data-tsd-kind="Interface">IStandaloneDiffEditor</a></li></ul></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Events</h3><ul class="tsd-index-list"><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#onDidChangeModel" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Model</a></li><li class="tsd-kind-event tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#onDidDispose" class="tsd-kind-icon">on<wbr/>Did<wbr/>Dispose</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#onDidUpdateDiff" class="tsd-kind-icon">on<wbr/>Did<wbr/>Update<wbr/>Diff</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#createDecorationsCollection" class="tsd-kind-icon">create<wbr/>Decorations<wbr/>Collection</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#focus" class="tsd-kind-icon">focus</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getContainerDomNode" class="tsd-kind-icon">get<wbr/>Container<wbr/>Dom<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getDiffLineInformationForModified" class="tsd-kind-icon">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Modified</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getDiffLineInformationForOriginal" class="tsd-kind-icon">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Original</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getEditorType" class="tsd-kind-icon">get<wbr/>Editor<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getLineChanges" class="tsd-kind-icon">get<wbr/>Line<wbr/>Changes</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#getModel" class="tsd-kind-icon">get<wbr/>Model</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getModifiedEditor" class="tsd-kind-icon">get<wbr/>Modified<wbr/>Editor</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getOriginalEditor" class="tsd-kind-icon">get<wbr/>Original<wbr/>Editor</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getPosition" class="tsd-kind-icon">get<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getSelection" class="tsd-kind-icon">get<wbr/>Selection</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getSelections" class="tsd-kind-icon">get<wbr/>Selections</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getSupportedActions" class="tsd-kind-icon">get<wbr/>Supported<wbr/>Actions</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getVisibleColumnFromPosition" class="tsd-kind-icon">get<wbr/>Visible<wbr/>Column<wbr/>From<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#hasTextFocus" class="tsd-kind-icon">has<wbr/>Text<wbr/>Focus</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#layout" class="tsd-kind-icon">layout</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#restoreViewState" class="tsd-kind-icon">restore<wbr/>View<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLine" class="tsd-kind-icon">reveal<wbr/>Line</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLineInCenter" class="tsd-kind-icon">reveal<wbr/>Line<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLineInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Line<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLineNearTop" class="tsd-kind-icon">reveal<wbr/>Line<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLines" class="tsd-kind-icon">reveal<wbr/>Lines</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLinesInCenter" class="tsd-kind-icon">reveal<wbr/>Lines<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLinesInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Lines<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLinesNearTop" class="tsd-kind-icon">reveal<wbr/>Lines<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPosition" class="tsd-kind-icon">reveal<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPositionInCenter" class="tsd-kind-icon">reveal<wbr/>Position<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPositionInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Position<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPositionNearTop" class="tsd-kind-icon">reveal<wbr/>Position<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRange" class="tsd-kind-icon">reveal<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeAtTop" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>At<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeInCenter" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeNearTop" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeNearTopIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>Near<wbr/>Top<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#saveViewState" class="tsd-kind-icon">save<wbr/>View<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#setModel" class="tsd-kind-icon">set<wbr/>Model</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#setPosition" class="tsd-kind-icon">set<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#setSelection" class="tsd-kind-icon">set<wbr/>Selection</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#setSelections" class="tsd-kind-icon">set<wbr/>Selections</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#trigger" class="tsd-kind-icon">trigger</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#updateOptions" class="tsd-kind-icon">update<wbr/>Options</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Events</h2><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onDidChangeModel" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Change<wbr/>Model<a href="#onDidChangeModel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Model<span class="tsd-signature-symbol">:</span> <a href="monaco.IEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IEvent</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5742">website/typedoc/monaco.d.ts:5742</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the diff model is changed (i.e. the diff editor shows new content).</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface tsd-is-inherited"><a id="onDidDispose" class="tsd-anchor"></a><h3 class="tsd-anchor-link">on<wbr/>Did<wbr/>Dispose<a href="#onDidDispose" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-event tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">on<wbr/>Did<wbr/>Dispose<span class="tsd-signature-symbol">(</span>listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.IDisposable.html" class="tsd-signature-type" data-tsd-kind="Interface">IDisposable</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#onDidDispose">onDidDispose</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2549">website/typedoc/monaco.d.ts:2549</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the editor has been disposed.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.IDisposable.html" class="tsd-signature-type" data-tsd-kind="Interface">IDisposable</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onDidUpdateDiff" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Update<wbr/>Diff<a href="#onDidUpdateDiff" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">on<wbr/>Did<wbr/>Update<wbr/>Diff<span class="tsd-signature-symbol">:</span> <a href="monaco.IEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IEvent</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5737">website/typedoc/monaco.d.ts:5737</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the diff information computed by this diff editor has been updated.</p>
|
|
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="createDecorationsCollection" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Decorations<wbr/>Collection<a href="#createDecorationsCollection" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Decorations<wbr/>Collection<span class="tsd-signature-symbol">(</span>decorations<span class="tsd-signature-symbol">?: </span><a href="monaco.editor.IModelDeltaDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDeltaDecoration</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IEditorDecorationsCollection.html" class="tsd-signature-type" data-tsd-kind="Interface">IEditorDecorationsCollection</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#createDecorationsCollection">createDecorationsCollection</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2749">website/typedoc/monaco.d.ts:2749</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a collection of decorations. All decorations added through this collection
|
|
will get the ownerId of the editor (meaning they will not show up in other editors).
|
|
These decorations will be automatically cleared when the editor's model changes.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> decorations: <a href="monaco.editor.IModelDeltaDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDeltaDecoration</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IEditorDecorationsCollection.html" class="tsd-signature-type" data-tsd-kind="Interface">IEditorDecorationsCollection</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="dispose" class="tsd-anchor"></a><h3 class="tsd-anchor-link">dispose<a href="#dispose" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#dispose">dispose</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2553">website/typedoc/monaco.d.ts:2553</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Dispose the editor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="focus" class="tsd-anchor"></a><h3 class="tsd-anchor-link">focus<a href="#focus" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">focus<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#focus">focus</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2577">website/typedoc/monaco.d.ts:2577</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Brings browser focus to the editor text</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getContainerDomNode" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Container<wbr/>Dom<wbr/>Node<a href="#getContainerDomNode" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">get<wbr/>Container<wbr/>Dom<wbr/>Node<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5732">website/typedoc/monaco.d.ts:5732</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>see</dt><dd><p><a href="monaco.editor.ICodeEditor.html#getContainerDomNode">ICodeEditor.getContainerDomNode</a></p>
|
|
</dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">HTMLElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getDiffLineInformationForModified" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Modified<a href="#getDiffLineInformationForModified" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Modified<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffLineInformation.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffLineInformation</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5785">website/typedoc/monaco.d.ts:5785</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get information based on computed diff about a line number from the modified model.
|
|
If the diff computation is not finished or the model is missing, will return null.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IDiffLineInformation.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffLineInformation</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getDiffLineInformationForOriginal" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Original<a href="#getDiffLineInformationForOriginal" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Original<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffLineInformation.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffLineInformation</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5780">website/typedoc/monaco.d.ts:5780</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get information based on computed diff about a line number from the original model.
|
|
If the diff computation is not finished or the model is missing, will return null.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IDiffLineInformation.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffLineInformation</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getEditorType" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Editor<wbr/>Type<a href="#getEditorType" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Editor<wbr/>Type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getEditorType">getEditorType</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2562">website/typedoc/monaco.d.ts:2562</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the editor type. Please see <code>EditorType</code>.
|
|
This is to avoid an instanceof check</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getId" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Id<a href="#getId" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getId">getId</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2557">website/typedoc/monaco.d.ts:2557</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get a unique id for this editor instance.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLineChanges" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Changes<a href="#getLineChanges" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">get<wbr/>Line<wbr/>Changes<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.ILineChange.html" class="tsd-signature-type" data-tsd-kind="Interface">ILineChange</a><span class="tsd-signature-symbol">[]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5775">website/typedoc/monaco.d.ts:5775</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the computed diff information.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.editor.ILineChange.html" class="tsd-signature-type" data-tsd-kind="Interface">ILineChange</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a id="getModel" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Model<a href="#getModel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">get<wbr/>Model<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffEditorModel.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorModel</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getModel">getModel</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5754">website/typedoc/monaco.d.ts:5754</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Type the getModel() of IEditor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IDiffEditorModel.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorModel</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getModifiedEditor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Modified<wbr/>Editor<a href="#getModifiedEditor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">get<wbr/>Modified<wbr/>Editor<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.ICodeEditor.html" class="tsd-signature-type" data-tsd-kind="Interface">ICodeEditor</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5771">website/typedoc/monaco.d.ts:5771</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the <code>modified</code> editor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.editor.ICodeEditor.html" class="tsd-signature-type" data-tsd-kind="Interface">ICodeEditor</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getOriginalEditor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Original<wbr/>Editor<a href="#getOriginalEditor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">get<wbr/>Original<wbr/>Editor<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.ICodeEditor.html" class="tsd-signature-type" data-tsd-kind="Interface">ICodeEditor</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5767">website/typedoc/monaco.d.ts:5767</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the <code>original</code> editor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.editor.ICodeEditor.html" class="tsd-signature-type" data-tsd-kind="Interface">ICodeEditor</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Position<a href="#getPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Position<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getPosition">getPosition</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2601">website/typedoc/monaco.d.ts:2601</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the primary position of the cursor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getSelection" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Selection<a href="#getSelection" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Selection<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getSelection">getSelection</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2645">website/typedoc/monaco.d.ts:2645</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the primary selection of the editor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getSelections" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Selections<a href="#getSelections" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Selections<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a><span class="tsd-signature-symbol">[]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getSelections">getSelections</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2649">website/typedoc/monaco.d.ts:2649</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns all the selections of the editor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getSupportedActions" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Supported<wbr/>Actions<a href="#getSupportedActions" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Supported<wbr/>Actions<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IEditorAction.html" class="tsd-signature-type" data-tsd-kind="Interface">IEditorAction</a><span class="tsd-signature-symbol">[]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getSupportedActions">getSupportedActions</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2585">website/typedoc/monaco.d.ts:2585</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns all actions associated with this editor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IEditorAction.html" class="tsd-signature-type" data-tsd-kind="Interface">IEditorAction</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="getVisibleColumnFromPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Visible<wbr/>Column<wbr/>From<wbr/>Position<a href="#getVisibleColumnFromPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Visible<wbr/>Column<wbr/>From<wbr/>Position<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#getVisibleColumnFromPosition">getVisibleColumnFromPosition</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2597">website/typedoc/monaco.d.ts:2597</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Given a position, returns a column number that takes tab-widths into account.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="hasTextFocus" class="tsd-anchor"></a><h3 class="tsd-anchor-link">has<wbr/>Text<wbr/>Focus<a href="#hasTextFocus" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">has<wbr/>Text<wbr/>Focus<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#hasTextFocus">hasTextFocus</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2581">website/typedoc/monaco.d.ts:2581</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the text inside this editor is focused (i.e. cursor is blinking).</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="layout" class="tsd-anchor"></a><h3 class="tsd-anchor-link">layout<a href="#layout" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">layout<span class="tsd-signature-symbol">(</span>dimension<span class="tsd-signature-symbol">?: </span><a href="monaco.editor.IDimension.html" class="tsd-signature-type" data-tsd-kind="Interface">IDimension</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#layout">layout</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2573">website/typedoc/monaco.d.ts:2573</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Instructs the editor to remeasure its container. This method should
|
|
be called when the container of the editor gets resized.</p>
|
|
</div><div><p>If a dimension is passed in, the passed in value will be used.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> dimension: <a href="monaco.editor.IDimension.html" class="tsd-signature-type" data-tsd-kind="Interface">IDimension</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a id="restoreViewState" class="tsd-anchor"></a><h3 class="tsd-anchor-link">restore<wbr/>View<wbr/>State<a href="#restoreViewState" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">restore<wbr/>View<wbr/>State<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffEditorViewState.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorViewState</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#restoreViewState">restoreViewState</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5750">website/typedoc/monaco.d.ts:5750</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Restores the view state of the editor from a serializable object generated by <code>saveViewState</code>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>state: <a href="monaco.editor.IDiffEditorViewState.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorViewState</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLine" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Line<a href="#revealLine" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Line<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLine">revealLine</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2611">website/typedoc/monaco.d.ts:2611</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal a line.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLineInCenter" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Line<wbr/>In<wbr/>Center<a href="#revealLineInCenter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Line<wbr/>In<wbr/>Center<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLineInCenter">revealLineInCenter</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2615">website/typedoc/monaco.d.ts:2615</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal a line centered vertically.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLineInCenterIfOutsideViewport" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Line<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<a href="#revealLineInCenterIfOutsideViewport" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Line<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLineInCenterIfOutsideViewport">revealLineInCenterIfOutsideViewport</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2619">website/typedoc/monaco.d.ts:2619</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLineNearTop" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Line<wbr/>Near<wbr/>Top<a href="#revealLineNearTop" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Line<wbr/>Near<wbr/>Top<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLineNearTop">revealLineNearTop</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2624">website/typedoc/monaco.d.ts:2624</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal a line close to the top of the viewport,
|
|
optimized for viewing a code definition.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLines" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Lines<a href="#revealLines" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Lines<span class="tsd-signature-symbol">(</span>startLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLines">revealLines</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2684">website/typedoc/monaco.d.ts:2684</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal lines.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>startLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLinesInCenter" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Lines<wbr/>In<wbr/>Center<a href="#revealLinesInCenter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Lines<wbr/>In<wbr/>Center<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLinesInCenter">revealLinesInCenter</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2688">website/typedoc/monaco.d.ts:2688</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal lines centered vertically.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLinesInCenterIfOutsideViewport" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Lines<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<a href="#revealLinesInCenterIfOutsideViewport" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Lines<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLinesInCenterIfOutsideViewport">revealLinesInCenterIfOutsideViewport</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2692">website/typedoc/monaco.d.ts:2692</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealLinesNearTop" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Lines<wbr/>Near<wbr/>Top<a href="#revealLinesNearTop" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Lines<wbr/>Near<wbr/>Top<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealLinesNearTop">revealLinesNearTop</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2697">website/typedoc/monaco.d.ts:2697</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically as necessary and reveal lines close to the top of the viewport,
|
|
optimized for viewing a code definition.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Position<a href="#revealPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Position<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealPosition">revealPosition</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2628">website/typedoc/monaco.d.ts:2628</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a position.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealPositionInCenter" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Position<wbr/>In<wbr/>Center<a href="#revealPositionInCenter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Position<wbr/>In<wbr/>Center<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealPositionInCenter">revealPositionInCenter</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2632">website/typedoc/monaco.d.ts:2632</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a position centered vertically.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealPositionInCenterIfOutsideViewport" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Position<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<a href="#revealPositionInCenterIfOutsideViewport" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Position<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealPositionInCenterIfOutsideViewport">revealPositionInCenterIfOutsideViewport</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2636">website/typedoc/monaco.d.ts:2636</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealPositionNearTop" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Position<wbr/>Near<wbr/>Top<a href="#revealPositionNearTop" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Position<wbr/>Near<wbr/>Top<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealPositionNearTop">revealPositionNearTop</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2641">website/typedoc/monaco.d.ts:2641</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport,
|
|
optimized for viewing a code definition.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Range<a href="#revealRange" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Range<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealRange">revealRange</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2701">website/typedoc/monaco.d.ts:2701</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a range.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealRangeAtTop" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Range<wbr/>At<wbr/>Top<a href="#revealRangeAtTop" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Range<wbr/>At<wbr/>Top<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealRangeAtTop">revealRangeAtTop</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2709">website/typedoc/monaco.d.ts:2709</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a range at the top of the viewport.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealRangeInCenter" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Range<wbr/>In<wbr/>Center<a href="#revealRangeInCenter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Range<wbr/>In<wbr/>Center<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealRangeInCenter">revealRangeInCenter</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2705">website/typedoc/monaco.d.ts:2705</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a range centered vertically.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealRangeInCenterIfOutsideViewport" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Range<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<a href="#revealRangeInCenterIfOutsideViewport" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Range<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealRangeInCenterIfOutsideViewport">revealRangeInCenterIfOutsideViewport</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2713">website/typedoc/monaco.d.ts:2713</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealRangeNearTop" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Range<wbr/>Near<wbr/>Top<a href="#revealRangeNearTop" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Range<wbr/>Near<wbr/>Top<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealRangeNearTop">revealRangeNearTop</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2718">website/typedoc/monaco.d.ts:2718</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
|
|
optimized for viewing a code definition.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="revealRangeNearTopIfOutsideViewport" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reveal<wbr/>Range<wbr/>Near<wbr/>Top<wbr/>If<wbr/>Outside<wbr/>Viewport<a href="#revealRangeNearTopIfOutsideViewport" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reveal<wbr/>Range<wbr/>Near<wbr/>Top<wbr/>If<wbr/>Outside<wbr/>Viewport<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, scrollType<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#revealRangeNearTopIfOutsideViewport">revealRangeNearTopIfOutsideViewport</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2723">website/typedoc/monaco.d.ts:2723</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
|
|
optimized for viewing a code definition. Only if it lies outside the viewport.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> scrollType: <a href="../enums/monaco.editor.ScrollType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ScrollType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a id="saveViewState" class="tsd-anchor"></a><h3 class="tsd-anchor-link">save<wbr/>View<wbr/>State<a href="#saveViewState" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">save<wbr/>View<wbr/>State<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffEditorViewState.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorViewState</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#saveViewState">saveViewState</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5746">website/typedoc/monaco.d.ts:5746</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Saves current view state of the editor in a serializable object.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IDiffEditorViewState.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorViewState</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a id="setModel" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Model<a href="#setModel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">set<wbr/>Model<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffEditorModel.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorModel</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setModel">setModel</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5763">website/typedoc/monaco.d.ts:5763</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current model attached to this editor.
|
|
If the previous model was created by the editor via the value key in the options
|
|
literal object, it will be destroyed. Otherwise, if the previous model was set
|
|
via setModel, or the model key in the options literal object, the previous model
|
|
will not be destroyed.
|
|
It is safe to call setModel(null) to simply detach the current model from the editor.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>model: <a href="monaco.editor.IDiffEditorModel.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorModel</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="setPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Position<a href="#setPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Position<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setPosition">setPosition</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2607">website/typedoc/monaco.d.ts:2607</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the primary position of the cursor. This will remove any secondary cursors.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>New primary cursor's position</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Source of the call that caused the position</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="setSelection" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Selection<a href="#setSelection" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Selection<span class="tsd-signature-symbol">(</span>selection<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-signature tsd-kind-icon">set<wbr/>Selection<span class="tsd-signature-symbol">(</span>selection<span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-signature tsd-kind-icon">set<wbr/>Selection<span class="tsd-signature-symbol">(</span>selection<span class="tsd-signature-symbol">: </span><a href="monaco.ISelection.html" class="tsd-signature-type" data-tsd-kind="Interface">ISelection</a>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-signature tsd-kind-icon">set<wbr/>Selection<span class="tsd-signature-symbol">(</span>selection<span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setSelection">setSelection</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2655">website/typedoc/monaco.d.ts:2655</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the primary selection of the editor. This will remove any secondary cursors.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selection: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The new selection</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Source of the call that caused the selection</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setSelection">setSelection</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2661">website/typedoc/monaco.d.ts:2661</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the primary selection of the editor. This will remove any secondary cursors.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selection: <a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The new selection</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Source of the call that caused the selection</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setSelection">setSelection</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2667">website/typedoc/monaco.d.ts:2667</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the primary selection of the editor. This will remove any secondary cursors.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selection: <a href="monaco.ISelection.html" class="tsd-signature-type" data-tsd-kind="Interface">ISelection</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The new selection</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Source of the call that caused the selection</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setSelection">setSelection</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2673">website/typedoc/monaco.d.ts:2673</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the primary selection of the editor. This will remove any secondary cursors.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selection: <a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The new selection</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Source of the call that caused the selection</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="setSelections" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Selections<a href="#setSelections" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Selections<span class="tsd-signature-symbol">(</span>selections<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">readonly </span><a href="monaco.ISelection.html" class="tsd-signature-type" data-tsd-kind="Interface">ISelection</a><span class="tsd-signature-symbol">[]</span>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#setSelections">setSelections</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2680">website/typedoc/monaco.d.ts:2680</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the selections for all the cursors of the editor.
|
|
Cursors will be removed or added, as necessary.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selections: <span class="tsd-signature-symbol">readonly </span><a href="monaco.ISelection.html" class="tsd-signature-type" data-tsd-kind="Interface">ISelection</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The new selection</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Source of the call that caused the selection</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="trigger" class="tsd-anchor"></a><h3 class="tsd-anchor-link">trigger<a href="#trigger" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">trigger<span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, handlerId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, payload<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#trigger">trigger</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2730">website/typedoc/monaco.d.ts:2730</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Directly trigger a handler or an editor action.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>source: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The source of the call.</p>
|
|
</div></div></li><li><h5>handlerId: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The id of the handler or the id of a contribution.</p>
|
|
</div></div></li><li><h5>payload: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Extra data to be sent to the handler.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a id="updateOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link">update<wbr/>Options<a href="#updateOptions" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">update<wbr/>Options<span class="tsd-signature-symbol">(</span>newOptions<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IDiffEditorOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="monaco.editor.IEditor.html">IEditor</a>.<a href="monaco.editor.IEditor.html#updateOptions">updateOptions</a></p><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L5789">website/typedoc/monaco.d.ts:5789</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Update the editor's options after the editor has been created.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>newOptions: <a href="monaco.editor.IDiffEditorOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">IDiffEditorOptions</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class="current tsd-kind-namespace"><a href="../modules/monaco.html">monaco</a><ul><li class="current tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.editor.html">editor</a></li><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.languages.html">languages</a></li><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.worker.html">worker</a></li></ul></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-namespace"><a href="monaco.editor.IDiffEditor.html" class="tsd-kind-icon">IDiff<wbr/>Editor</a><ul><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#onDidChangeModel" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Model</a></li><li class="tsd-kind-event tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#onDidDispose" class="tsd-kind-icon">on<wbr/>Did<wbr/>Dispose</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#onDidUpdateDiff" class="tsd-kind-icon">on<wbr/>Did<wbr/>Update<wbr/>Diff</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#createDecorationsCollection" class="tsd-kind-icon">create<wbr/>Decorations<wbr/>Collection</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#focus" class="tsd-kind-icon">focus</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getContainerDomNode" class="tsd-kind-icon">get<wbr/>Container<wbr/>Dom<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getDiffLineInformationForModified" class="tsd-kind-icon">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Modified</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getDiffLineInformationForOriginal" class="tsd-kind-icon">get<wbr/>Diff<wbr/>Line<wbr/>Information<wbr/>For<wbr/>Original</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getEditorType" class="tsd-kind-icon">get<wbr/>Editor<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getLineChanges" class="tsd-kind-icon">get<wbr/>Line<wbr/>Changes</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#getModel" class="tsd-kind-icon">get<wbr/>Model</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getModifiedEditor" class="tsd-kind-icon">get<wbr/>Modified<wbr/>Editor</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.IDiffEditor.html#getOriginalEditor" class="tsd-kind-icon">get<wbr/>Original<wbr/>Editor</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getPosition" class="tsd-kind-icon">get<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getSelection" class="tsd-kind-icon">get<wbr/>Selection</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getSelections" class="tsd-kind-icon">get<wbr/>Selections</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getSupportedActions" class="tsd-kind-icon">get<wbr/>Supported<wbr/>Actions</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#getVisibleColumnFromPosition" class="tsd-kind-icon">get<wbr/>Visible<wbr/>Column<wbr/>From<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#hasTextFocus" class="tsd-kind-icon">has<wbr/>Text<wbr/>Focus</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#layout" class="tsd-kind-icon">layout</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#restoreViewState" class="tsd-kind-icon">restore<wbr/>View<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLine" class="tsd-kind-icon">reveal<wbr/>Line</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLineInCenter" class="tsd-kind-icon">reveal<wbr/>Line<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLineInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Line<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLineNearTop" class="tsd-kind-icon">reveal<wbr/>Line<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLines" class="tsd-kind-icon">reveal<wbr/>Lines</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLinesInCenter" class="tsd-kind-icon">reveal<wbr/>Lines<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLinesInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Lines<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealLinesNearTop" class="tsd-kind-icon">reveal<wbr/>Lines<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPosition" class="tsd-kind-icon">reveal<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPositionInCenter" class="tsd-kind-icon">reveal<wbr/>Position<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPositionInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Position<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealPositionNearTop" class="tsd-kind-icon">reveal<wbr/>Position<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRange" class="tsd-kind-icon">reveal<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeAtTop" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>At<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeInCenter" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>In<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeInCenterIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>In<wbr/>Center<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeNearTop" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>Near<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#revealRangeNearTopIfOutsideViewport" class="tsd-kind-icon">reveal<wbr/>Range<wbr/>Near<wbr/>Top<wbr/>If<wbr/>Outside<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#saveViewState" class="tsd-kind-icon">save<wbr/>View<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#setModel" class="tsd-kind-icon">set<wbr/>Model</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#setPosition" class="tsd-kind-icon">set<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#setSelection" class="tsd-kind-icon">set<wbr/>Selection</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#setSelections" class="tsd-kind-icon">set<wbr/>Selections</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="monaco.editor.IDiffEditor.html#trigger" class="tsd-kind-icon">trigger</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite"><a href="monaco.editor.IDiffEditor.html#updateOptions" class="tsd-kind-icon">update<wbr/>Options</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html> |