mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
289 lines
No EOL
159 KiB
HTML
289 lines
No EOL
159 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ITextModel | 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.ITextModel.html">ITextModel</a></li></ul><h1>Interface ITextModel</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 model.</p>
|
|
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">ITextModel</span></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.ITextModel.html#onDidChangeAttached" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Attached</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeContent" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Content</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeDecorations" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Decorations</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeLanguage" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Language</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeLanguageConfiguration" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Language<wbr/>Configuration</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeOptions" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Options</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onWillDispose" class="tsd-kind-icon">on<wbr/>Will<wbr/>Dispose</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#id" class="tsd-kind-icon">id</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#uri" class="tsd-kind-icon">uri</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"><a href="monaco.editor.ITextModel.html#applyEdits" class="tsd-kind-icon">apply<wbr/>Edits</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#createSnapshot" class="tsd-kind-icon">create<wbr/>Snapshot</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#deltaDecorations" class="tsd-kind-icon">delta<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#detectIndentation" class="tsd-kind-icon">detect<wbr/>Indentation</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#findMatches" class="tsd-kind-icon">find<wbr/>Matches</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#findNextMatch" class="tsd-kind-icon">find<wbr/>Next<wbr/>Match</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#findPreviousMatch" class="tsd-kind-icon">find<wbr/>Previous<wbr/>Match</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getAllDecorations" class="tsd-kind-icon">get<wbr/>All<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getAlternativeVersionId" class="tsd-kind-icon">get<wbr/>Alternative<wbr/>Version<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getCharacterCountInRange" class="tsd-kind-icon">get<wbr/>Character<wbr/>Count<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getDecorationOptions" class="tsd-kind-icon">get<wbr/>Decoration<wbr/>Options</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getDecorationRange" class="tsd-kind-icon">get<wbr/>Decoration<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getDecorationsInRange" class="tsd-kind-icon">get<wbr/>Decorations<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getEOL" class="tsd-kind-icon">getEOL</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getEndOfLineSequence" class="tsd-kind-icon">get<wbr/>End<wbr/>Of<wbr/>Line<wbr/>Sequence</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getFullModelRange" class="tsd-kind-icon">get<wbr/>Full<wbr/>Model<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getInjectedTextDecorations" class="tsd-kind-icon">get<wbr/>Injected<wbr/>Text<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLanguageId" class="tsd-kind-icon">get<wbr/>Language<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineContent" class="tsd-kind-icon">get<wbr/>Line<wbr/>Content</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineCount" class="tsd-kind-icon">get<wbr/>Line<wbr/>Count</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineDecorations" class="tsd-kind-icon">get<wbr/>Line<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineFirstNonWhitespaceColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>First<wbr/>Non<wbr/>Whitespace<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineLastNonWhitespaceColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>Last<wbr/>Non<wbr/>Whitespace<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineLength" class="tsd-kind-icon">get<wbr/>Line<wbr/>Length</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineMaxColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>Max<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineMinColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>Min<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLinesContent" class="tsd-kind-icon">get<wbr/>Lines<wbr/>Content</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLinesDecorations" class="tsd-kind-icon">get<wbr/>Lines<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getOffsetAt" class="tsd-kind-icon">get<wbr/>Offset<wbr/>At</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getOptions" class="tsd-kind-icon">get<wbr/>Options</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getOverviewRulerDecorations" class="tsd-kind-icon">get<wbr/>Overview<wbr/>Ruler<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getPositionAt" class="tsd-kind-icon">get<wbr/>Position<wbr/>At</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValue" class="tsd-kind-icon">get<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValueInRange" class="tsd-kind-icon">get<wbr/>Value<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValueLength" class="tsd-kind-icon">get<wbr/>Value<wbr/>Length</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValueLengthInRange" class="tsd-kind-icon">get<wbr/>Value<wbr/>Length<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getVersionId" class="tsd-kind-icon">get<wbr/>Version<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getWordAtPosition" class="tsd-kind-icon">get<wbr/>Word<wbr/>At<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getWordUntilPosition" class="tsd-kind-icon">get<wbr/>Word<wbr/>Until<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#isAttachedToEditor" class="tsd-kind-icon">is<wbr/>Attached<wbr/>To<wbr/>Editor</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#isDisposed" class="tsd-kind-icon">is<wbr/>Disposed</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#modifyPosition" class="tsd-kind-icon">modify<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#normalizeIndentation" class="tsd-kind-icon">normalize<wbr/>Indentation</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#popStackElement" class="tsd-kind-icon">pop<wbr/>Stack<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#pushEOL" class="tsd-kind-icon">pushEOL</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#pushEditOperations" class="tsd-kind-icon">push<wbr/>Edit<wbr/>Operations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#pushStackElement" class="tsd-kind-icon">push<wbr/>Stack<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#setEOL" class="tsd-kind-icon">setEOL</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#setValue" class="tsd-kind-icon">set<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#updateOptions" class="tsd-kind-icon">update<wbr/>Options</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#validatePosition" class="tsd-kind-icon">validate<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#validateRange" class="tsd-kind-icon">validate<wbr/>Range</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="onDidChangeAttached" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Change<wbr/>Attached<a href="#onDidChangeAttached" 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/>Attached<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#L2188">website/typedoc/monaco.d.ts:2188</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the model has been attached to the first editor or detached from the last editor.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onDidChangeContent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">on<wbr/>Did<wbr/>Change<wbr/>Content<a href="#onDidChangeContent" 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"><li class="tsd-signature tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Content<span class="tsd-signature-symbol">(</span>listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>e<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelContentChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelContentChangedEvent</a><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2163">website/typedoc/monaco.d.ts:2163</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the contents of the model have changed.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>listener: <span class="tsd-signature-symbol">(</span>e<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelContentChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelContentChangedEvent</a><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>e<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelContentChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelContentChangedEvent</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"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>e: <a href="monaco.editor.IModelContentChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelContentChangedEvent</a></h5></li></ul><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="onDidChangeDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Change<wbr/>Decorations<a href="#onDidChangeDecorations" 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/>Decorations<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><a href="monaco.editor.IModelDecorationsChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecorationsChangedEvent</a><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#L2168">website/typedoc/monaco.d.ts:2168</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when decorations of the model have changed.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onDidChangeLanguage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Change<wbr/>Language<a href="#onDidChangeLanguage" 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/>Language<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><a href="monaco.editor.IModelLanguageChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelLanguageChangedEvent</a><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#L2178">website/typedoc/monaco.d.ts:2178</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the language associated with the model has changed.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onDidChangeLanguageConfiguration" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Change<wbr/>Language<wbr/>Configuration<a href="#onDidChangeLanguageConfiguration" 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/>Language<wbr/>Configuration<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><a href="monaco.editor.IModelLanguageConfigurationChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelLanguageConfigurationChangedEvent</a><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#L2183">website/typedoc/monaco.d.ts:2183</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the language configuration associated with the model has changed.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onDidChangeOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Did<wbr/>Change<wbr/>Options<a href="#onDidChangeOptions" 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/>Options<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><a href="monaco.editor.IModelOptionsChangedEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelOptionsChangedEvent</a><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#L2173">website/typedoc/monaco.d.ts:2173</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted when the model options have changed.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-interface"><a id="onWillDispose" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> on<wbr/>Will<wbr/>Dispose<a href="#onWillDispose" 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/>Will<wbr/>Dispose<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#L2193">website/typedoc/monaco.d.ts:2193</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An event emitted right before disposing the model.</p>
|
|
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="id" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> id<a href="#id" 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">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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#L1839">website/typedoc/monaco.d.ts:1839</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A unique identifier associated with this model.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="uri" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> uri<a href="#uri" 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">uri<span class="tsd-signature-symbol">:</span> <a href="../classes/monaco.Uri.html" class="tsd-signature-type" data-tsd-kind="Class">Uri</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1835">website/typedoc/monaco.d.ts:1835</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets the resource associated with this editor model.</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"><a id="applyEdits" class="tsd-anchor"></a><h3 class="tsd-anchor-link">apply<wbr/>Edits<a href="#applyEdits" 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">apply<wbr/>Edits<span class="tsd-signature-symbol">(</span>operations<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><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><li class="tsd-signature tsd-kind-icon">apply<wbr/>Edits<span class="tsd-signature-symbol">(</span>operations<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span>, computeUndoEdits<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</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">apply<wbr/>Edits<span class="tsd-signature-symbol">(</span>operations<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span>, computeUndoEdits<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IValidEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IValidEditOperation</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#L2151">website/typedoc/monaco.d.ts:2151</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Edit the model without adding the edits to the undo stack.
|
|
This can have dire consequences on the undo stack! See @pushEditOperations for the preferred way.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>operations: <a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The edit operations.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div><p>If desired, the inverse edit operations, that, when applied, will bring the model back to the previous state.</p>
|
|
</div></li><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#L2152">website/typedoc/monaco.d.ts:2152</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>operations: <a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>computeUndoEdits: <span class="tsd-signature-type">false</span></h5></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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2153">website/typedoc/monaco.d.ts:2153</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>operations: <a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>computeUndoEdits: <span class="tsd-signature-type">true</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IValidEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IValidEditOperation</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="createSnapshot" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Snapshot<a href="#createSnapshot" 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">create<wbr/>Snapshot<span class="tsd-signature-symbol">(</span>preserveBOM<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.ITextSnapshot.html" class="tsd-signature-type" data-tsd-kind="Interface">ITextSnapshot</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#L1872">website/typedoc/monaco.d.ts:1872</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the text stored in this model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> preserveBOM: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.ITextSnapshot.html" class="tsd-signature-type" data-tsd-kind="Interface">ITextSnapshot</a></h4><div><p>The text snapshot (it is safe to consume it asynchronously).</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="deltaDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delta<wbr/>Decorations<a href="#deltaDecorations" 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">delta<wbr/>Decorations<span class="tsd-signature-symbol">(</span>oldDecorations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span>, newDecorations<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>, ownerId<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><span class="tsd-signature-type">string</span><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#L2053">website/typedoc/monaco.d.ts:2053</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Perform a minimum amount of operations, in order to transform the decorations
|
|
identified by <code>oldDecorations</code> to the decorations described by <code>newDecorations</code>
|
|
and returns the new identifiers associated with the resulting decorations.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>oldDecorations: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array containing previous decorations identifiers.</p>
|
|
</div></div></li><li><h5>newDecorations: <a href="monaco.editor.IModelDeltaDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDeltaDecoration</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array describing what decorations should result after the call.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Identifies the editor id in which these decorations should appear. If no <code>ownerId</code> is provided, the decorations will appear in all editors that attach this model.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><div><p>An array containing the new decorations identifiers.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="detectIndentation" class="tsd-anchor"></a><h3 class="tsd-anchor-link">detect<wbr/>Indentation<a href="#detectIndentation" 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">detect<wbr/>Indentation<span class="tsd-signature-symbol">(</span>defaultInsertSpaces<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, defaultTabSize<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><span class="tsd-signature-type">void</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#L2120">website/typedoc/monaco.d.ts:2120</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Detect the indentation options for this model from its content.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>defaultInsertSpaces: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>defaultTabSize: <span class="tsd-signature-type">number</span></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"><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"><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2197">website/typedoc/monaco.d.ts:2197</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Destroy this model.</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="findMatches" class="tsd-anchor"></a><h3 class="tsd-anchor-link">find<wbr/>Matches<a href="#findMatches" 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">find<wbr/>Matches<span class="tsd-signature-symbol">(</span>searchString<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, searchOnlyEditableRange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, isRegex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, matchCase<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, wordSeparators<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, captureMatches<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, limitResultCount<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="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</a><span class="tsd-signature-symbol">[]</span></li><li class="tsd-signature tsd-kind-icon">find<wbr/>Matches<span class="tsd-signature-symbol">(</span>searchString<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, searchScope<span class="tsd-signature-symbol">: </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol"> | </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">[]</span>, isRegex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, matchCase<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, wordSeparators<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, captureMatches<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, limitResultCount<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="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</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#L1992">website/typedoc/monaco.d.ts:1992</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Search the model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>searchString: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The string used to search. If it is a regular expression, set <code>isRegex</code> to true.</p>
|
|
</div></div></li><li><h5>searchOnlyEditableRange: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Limit the searching to only search inside the editable range of the model.</p>
|
|
</div></div></li><li><h5>isRegex: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Used to indicate that <code>searchString</code> is a regular expression.</p>
|
|
</div></div></li><li><h5>matchCase: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match lower/upper case exactly.</p>
|
|
</div></div></li><li><h5>wordSeparators: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match entire words only. Pass null otherwise.</p>
|
|
</div></div></li><li><h5>captureMatches: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The result will contain the captured groups.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> limitResultCount: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Limit the number of results</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</a><span class="tsd-signature-symbol">[]</span></h4><div><p>The ranges where the matches are. It is empty if not matches have been found.</p>
|
|
</div></li><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#L2004">website/typedoc/monaco.d.ts:2004</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Search the model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>searchString: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The string used to search. If it is a regular expression, set <code>isRegex</code> to true.</p>
|
|
</div></div></li><li><h5>searchScope: <a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol"> | </span><a href="monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Limit the searching to only search inside these ranges.</p>
|
|
</div></div></li><li><h5>isRegex: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Used to indicate that <code>searchString</code> is a regular expression.</p>
|
|
</div></div></li><li><h5>matchCase: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match lower/upper case exactly.</p>
|
|
</div></div></li><li><h5>wordSeparators: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match entire words only. Pass null otherwise.</p>
|
|
</div></div></li><li><h5>captureMatches: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The result will contain the captured groups.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> limitResultCount: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Limit the number of results</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</a><span class="tsd-signature-symbol">[]</span></h4><div><p>The ranges where the matches are. It is empty if no matches have been found.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="findNextMatch" class="tsd-anchor"></a><h3 class="tsd-anchor-link">find<wbr/>Next<wbr/>Match<a href="#findNextMatch" 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">find<wbr/>Next<wbr/>Match<span class="tsd-signature-symbol">(</span>searchString<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, searchStart<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, isRegex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, matchCase<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, wordSeparators<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, captureMatches<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</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#L2015">website/typedoc/monaco.d.ts:2015</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Search the model for the next match. Loops to the beginning of the model if needed.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>searchString: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The string used to search. If it is a regular expression, set <code>isRegex</code> to true.</p>
|
|
</div></div></li><li><h5>searchStart: <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>Start the searching at the specified position.</p>
|
|
</div></div></li><li><h5>isRegex: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Used to indicate that <code>searchString</code> is a regular expression.</p>
|
|
</div></div></li><li><h5>matchCase: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match lower/upper case exactly.</p>
|
|
</div></div></li><li><h5>wordSeparators: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match entire words only. Pass null otherwise.</p>
|
|
</div></div></li><li><h5>captureMatches: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The result will contain the captured groups.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</a></h4><div><p>The range where the next match is. It is null if no next match has been found.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="findPreviousMatch" class="tsd-anchor"></a><h3 class="tsd-anchor-link">find<wbr/>Previous<wbr/>Match<a href="#findPreviousMatch" 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">find<wbr/>Previous<wbr/>Match<span class="tsd-signature-symbol">(</span>searchString<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, searchStart<span class="tsd-signature-symbol">: </span><a href="monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, isRegex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, matchCase<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, wordSeparators<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, captureMatches<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</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#L2026">website/typedoc/monaco.d.ts:2026</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Search the model for the previous match. Loops to the end of the model if needed.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>searchString: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The string used to search. If it is a regular expression, set <code>isRegex</code> to true.</p>
|
|
</div></div></li><li><h5>searchStart: <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>Start the searching at the specified position.</p>
|
|
</div></div></li><li><h5>isRegex: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Used to indicate that <code>searchString</code> is a regular expression.</p>
|
|
</div></div></li><li><h5>matchCase: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match lower/upper case exactly.</p>
|
|
</div></div></li><li><h5>wordSeparators: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Force the matching to match entire words only. Pass null otherwise.</p>
|
|
</div></div></li><li><h5>captureMatches: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The result will contain the captured groups.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.editor.FindMatch.html" class="tsd-signature-type" data-tsd-kind="Class">FindMatch</a></h4><div><p>The range where the previous match is. It is null if no previous match has been found.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getAllDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>All<wbr/>Decorations<a href="#getAllDecorations" 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/>All<wbr/>Decorations<span class="tsd-signature-symbol">(</span>ownerId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, filterOutValidation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</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#L2097">website/typedoc/monaco.d.ts:2097</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets all the decorations as an array.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations belonging to other owners.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> filterOutValidation: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations specific to validation (i.e. warnings, errors).</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getAlternativeVersionId" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Alternative<wbr/>Version<wbr/>Id<a href="#getAlternativeVersionId" 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/>Alternative<wbr/>Version<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">number</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#L1855">website/typedoc/monaco.d.ts:1855</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the alternative version id of the model.
|
|
This alternative version id is not always incremented,
|
|
it will return the same values in the case of undo-redo.</p>
|
|
</div></div><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"><a id="getCharacterCountInRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Character<wbr/>Count<wbr/>In<wbr/>Range<a href="#getCharacterCountInRange" 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/>Character<wbr/>Count<wbr/>In<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>, eol<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1894">website/typedoc/monaco.d.ts:1894</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the character count of text in a certain 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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The range describing what text length to get.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> eol: <a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</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"><a id="getDecorationOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Decoration<wbr/>Options<a href="#getDecorationOptions" 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/>Decoration<wbr/>Options<span class="tsd-signature-symbol">(</span>id<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><a href="monaco.editor.IModelDecorationOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecorationOptions</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#L2059">website/typedoc/monaco.d.ts:2059</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the options associated with a decoration.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The decoration id.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecorationOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecorationOptions</a></h4><div><p>The decoration options or null if the decoration was not found.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getDecorationRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Decoration<wbr/>Range<a href="#getDecorationRange" 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/>Decoration<wbr/>Range<span class="tsd-signature-symbol">(</span>id<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><a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</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#L2065">website/typedoc/monaco.d.ts:2065</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the range associated with a decoration.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The decoration id.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4><div><p>The decoration range or null if the decoration was not found.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getDecorationsInRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Decorations<wbr/>In<wbr/>Range<a href="#getDecorationsInRange" 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/>Decorations<wbr/>In<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>, ownerId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, filterOutValidation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, onlyMinimapDecorations<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</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#L2091">website/typedoc/monaco.d.ts:2091</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets all the decorations in a range as an array. Only <code>startLineNumber</code> and <code>endLineNumber</code> from <code>range</code> are used for filtering.
|
|
So for now it returns all the decorations on the same line as <code>range</code>.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The range to search in</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations belonging to other owners.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> filterOutValidation: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations specific to validation (i.e. warnings, errors).</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> onlyMinimapDecorations: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</a><span class="tsd-signature-symbol">[]</span></h4><div><p>An array with the decorations</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getEOL" class="tsd-anchor"></a><h3 class="tsd-anchor-link">getEOL<a href="#getEOL" 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">getEOL<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1915">website/typedoc/monaco.d.ts:1915</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the end of line sequence predominantly used in the text buffer.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><div><p>EOL char sequence (e.g.: '\n' or '\r\n').</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getEndOfLineSequence" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>End<wbr/>Of<wbr/>Line<wbr/>Sequence<a href="#getEndOfLineSequence" 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/>End<wbr/>Of<wbr/>Line<wbr/>Sequence<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../enums/monaco.editor.EndOfLineSequence.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLineSequence</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#L1919">website/typedoc/monaco.d.ts:1919</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the end of line sequence predominantly used in the text buffer.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="../enums/monaco.editor.EndOfLineSequence.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLineSequence</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getFullModelRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Full<wbr/>Model<wbr/>Range<a href="#getFullModelRange" 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/>Full<wbr/>Model<wbr/>Range<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</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#L1976">website/typedoc/monaco.d.ts:1976</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get a range covering the entire model.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getInjectedTextDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Injected<wbr/>Text<wbr/>Decorations<a href="#getInjectedTextDecorations" 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/>Injected<wbr/>Text<wbr/>Decorations<span class="tsd-signature-symbol">(</span>ownerId<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.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</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#L2108">website/typedoc/monaco.d.ts:2108</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets all the decorations that contain injected text.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations belonging to other owners.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLanguageId" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Language<wbr/>Id<a href="#getLanguageId" 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/>Language<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2030">website/typedoc/monaco.d.ts:2030</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the language associated with this model.</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="getLineContent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Content<a href="#getLineContent" 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/>Content<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><span class="tsd-signature-type">string</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#L1902">website/typedoc/monaco.d.ts:1902</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the text for a certain 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></ul><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="getLineCount" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Count<a href="#getLineCount" 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/>Count<span class="tsd-signature-symbol">(</span><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1898">website/typedoc/monaco.d.ts:1898</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the number of lines in the model.</p>
|
|
</div></div><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"><a id="getLineDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Decorations<a href="#getLineDecorations" 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/>Decorations<span class="tsd-signature-symbol">(</span>lineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, ownerId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, filterOutValidation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</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#L2073">website/typedoc/monaco.d.ts:2073</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets all the decorations for the line <code>lineNumber</code> as an array.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The line number</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations belonging to other owners.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> filterOutValidation: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations specific to validation (i.e. warnings, errors).</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</a><span class="tsd-signature-symbol">[]</span></h4><div><p>An array with the decorations</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLineFirstNonWhitespaceColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>First<wbr/>Non<wbr/>Whitespace<wbr/>Column<a href="#getLineFirstNonWhitespaceColumn" 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/>First<wbr/>Non<wbr/>Whitespace<wbr/>Column<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><span class="tsd-signature-type">number</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#L1932">website/typedoc/monaco.d.ts:1932</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the column before the first non whitespace character for line at <code>lineNumber</code>.
|
|
Returns 0 if line is empty or contains only whitespace.</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 <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLineLastNonWhitespaceColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Last<wbr/>Non<wbr/>Whitespace<wbr/>Column<a href="#getLineLastNonWhitespaceColumn" 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/>Last<wbr/>Non<wbr/>Whitespace<wbr/>Column<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><span class="tsd-signature-type">number</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#L1937">website/typedoc/monaco.d.ts:1937</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the column after the last non whitespace character for line at <code>lineNumber</code>.
|
|
Returns 0 if line is empty or contains only whitespace.</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 <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLineLength" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Length<a href="#getLineLength" 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/>Length<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><span class="tsd-signature-type">number</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#L1906">website/typedoc/monaco.d.ts:1906</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the text length for a certain 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></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"><a id="getLineMaxColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Max<wbr/>Column<a href="#getLineMaxColumn" 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/>Max<wbr/>Column<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><span class="tsd-signature-type">number</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#L1927">website/typedoc/monaco.d.ts:1927</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the maximum legal column for line at <code>lineNumber</code></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 <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLineMinColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Line<wbr/>Min<wbr/>Column<a href="#getLineMinColumn" 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/>Min<wbr/>Column<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><span class="tsd-signature-type">number</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#L1923">website/typedoc/monaco.d.ts:1923</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the minimum legal column for line at <code>lineNumber</code></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 <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLinesContent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Lines<wbr/>Content<a href="#getLinesContent" 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/>Lines<wbr/>Content<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><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#L1910">website/typedoc/monaco.d.ts:1910</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the text for all lines.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getLinesDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Lines<wbr/>Decorations<a href="#getLinesDecorations" 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/>Lines<wbr/>Decorations<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>, ownerId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, filterOutValidation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</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#L2082">website/typedoc/monaco.d.ts:2082</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets all the decorations for the lines between <code>startLineNumber</code> and <code>endLineNumber</code> as an array.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The start line number</p>
|
|
</div></div></li><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The end line number</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations belonging to other owners.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> filterOutValidation: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations specific to validation (i.e. warnings, errors).</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</a><span class="tsd-signature-symbol">[]</span></h4><div><p>An array with the decorations</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getOffsetAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Offset<wbr/>At<a href="#getOffsetAt" 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/>Offset<wbr/>At<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1965">website/typedoc/monaco.d.ts:1965</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Converts the position to a zero-based offset.</p>
|
|
</div><div><p>The position will be <a href="#TextDocument.validatePosition">adjusted</a>.</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>A position.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>A valid zero-based offset.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Options<a href="#getOptions" 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/>Options<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.editor.TextModelResolvedOptions.html" class="tsd-signature-type" data-tsd-kind="Class">TextModelResolvedOptions</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#L1843">website/typedoc/monaco.d.ts:1843</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the resolved options for this model.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.editor.TextModelResolvedOptions.html" class="tsd-signature-type" data-tsd-kind="Class">TextModelResolvedOptions</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getOverviewRulerDecorations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Overview<wbr/>Ruler<wbr/>Decorations<a href="#getOverviewRulerDecorations" 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/>Overview<wbr/>Ruler<wbr/>Decorations<span class="tsd-signature-symbol">(</span>ownerId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, filterOutValidation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</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#L2103">website/typedoc/monaco.d.ts:2103</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets all the decorations that should be rendered in the overview ruler as an array.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> ownerId: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations belonging to other owners.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> filterOutValidation: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If set, it will ignore decorations specific to validation (i.e. warnings, errors).</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IModelDecoration.html" class="tsd-signature-type" data-tsd-kind="Interface">IModelDecoration</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getPositionAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Position<wbr/>At<a href="#getPositionAt" 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/>Position<wbr/>At<span class="tsd-signature-symbol">(</span>offset<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="../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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1972">website/typedoc/monaco.d.ts:1972</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Converts a zero-based offset to a position.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>offset: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A zero-based offset.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></h4><div><p>A valid <a href="#Position">position</a>.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getValue" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Value<a href="#getValue" 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/>Value<span class="tsd-signature-symbol">(</span>eol<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a>, preserveBOM<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1866">website/typedoc/monaco.d.ts:1866</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the text stored in this model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> eol: <a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The end of line character preference. Defaults to <code>EndOfLinePreference.TextDefined</code>.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> preserveBOM: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><div><p>The text.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getValueInRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Value<wbr/>In<wbr/>Range<a href="#getValueInRange" 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/>Value<wbr/>In<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>, eol<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1883">website/typedoc/monaco.d.ts:1883</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the text in a certain 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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The range describing what text to get.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> eol: <a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The end of line character preference. This will only be used for multiline ranges. Defaults to <code>EndOfLinePreference.TextDefined</code>.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><div><p>The text.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getValueLength" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Value<wbr/>Length<a href="#getValueLength" 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/>Value<wbr/>Length<span class="tsd-signature-symbol">(</span>eol<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a>, preserveBOM<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1876">website/typedoc/monaco.d.ts:1876</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the length of the text stored in this model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> eol: <a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> preserveBOM: <span class="tsd-signature-type">boolean</span></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"><a id="getValueLengthInRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Value<wbr/>Length<wbr/>In<wbr/>Range<a href="#getValueLengthInRange" 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/>Value<wbr/>Length<wbr/>In<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>, eol<span class="tsd-signature-symbol">?: </span><a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1889">website/typedoc/monaco.d.ts:1889</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the length of text in a certain 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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The range describing what text length to get.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> eol: <a href="../enums/monaco.editor.EndOfLinePreference.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLinePreference</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>The text length.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getVersionId" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Version<wbr/>Id<a href="#getVersionId" 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/>Version<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">number</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#L1849">website/typedoc/monaco.d.ts:1849</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the current version id of the model.
|
|
Anytime a change happens to the model (even undo/redo),
|
|
the version id is incremented.</p>
|
|
</div></div><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"><a id="getWordAtPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Word<wbr/>At<wbr/>Position<a href="#getWordAtPosition" 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/>Word<wbr/>At<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><a href="monaco.editor.IWordAtPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IWordAtPosition</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#L2036">website/typedoc/monaco.d.ts:2036</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the word under or besides <code>position</code>.</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>The position to look for a word.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IWordAtPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IWordAtPosition</a></h4><div><p>The word under or besides <code>position</code>. Might be null.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="getWordUntilPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Word<wbr/>Until<wbr/>Position<a href="#getWordUntilPosition" 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/>Word<wbr/>Until<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><a href="monaco.editor.IWordAtPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IWordAtPosition</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#L2042">website/typedoc/monaco.d.ts:2042</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Get the word under or besides <code>position</code> trimmed to <code>position</code>.column</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>The position to look for a word.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.editor.IWordAtPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IWordAtPosition</a></h4><div><p>The word under or besides <code>position</code>. Will never be null.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="isAttachedToEditor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Attached<wbr/>To<wbr/>Editor<a href="#isAttachedToEditor" 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">is<wbr/>Attached<wbr/>To<wbr/>Editor<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2201">website/typedoc/monaco.d.ts:2201</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns if this model is attached to an editor or not.</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"><a id="isDisposed" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Disposed<a href="#isDisposed" 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">is<wbr/>Disposed<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1980">website/typedoc/monaco.d.ts:1980</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns if the model was disposed or not.</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"><a id="modifyPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">modify<wbr/>Position<a href="#modifyPosition" 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">modify<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>, offset<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="../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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1952">website/typedoc/monaco.d.ts:1952</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Advances the given position by the given offset (negative offsets are also accepted)
|
|
and returns it as a new valid position.</p>
|
|
</div><div><p>If the offset and position are such that their combination goes beyond the beginning or
|
|
end of the model, throws an exception.</p>
|
|
<p>If the offset is such that the new position would be in the middle of a multi-byte
|
|
line terminator, throws an exception.</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>offset: <span class="tsd-signature-type">number</span></h5></li></ul><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"><a id="normalizeIndentation" class="tsd-anchor"></a><h3 class="tsd-anchor-link">normalize<wbr/>Indentation<a href="#normalizeIndentation" 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">normalize<wbr/>Indentation<span class="tsd-signature-symbol">(</span>str<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">string</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#L2112">website/typedoc/monaco.d.ts:2112</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Normalize a string containing whitespace according to indentation rules (converts to spaces or to tabs).</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>str: <span class="tsd-signature-type">string</span></h5></li></ul><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="popStackElement" class="tsd-anchor"></a><h3 class="tsd-anchor-link">pop<wbr/>Stack<wbr/>Element<a href="#popStackElement" 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">pop<wbr/>Stack<wbr/>Element<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2130">website/typedoc/monaco.d.ts:2130</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Open the current undo-redo element.
|
|
This offers a way to remove the current undo/redo stop point.</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="pushEOL" class="tsd-anchor"></a><h3 class="tsd-anchor-link">pushEOL<a href="#pushEOL" 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">pushEOL<span class="tsd-signature-symbol">(</span>eol<span class="tsd-signature-symbol">: </span><a href="../enums/monaco.editor.EndOfLineSequence.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLineSequence</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2144">website/typedoc/monaco.d.ts:2144</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Change the end of line sequence. This is the preferred way of
|
|
changing the eol sequence. This will land on the undo stack.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>eol: <a href="../enums/monaco.editor.EndOfLineSequence.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLineSequence</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"><a id="pushEditOperations" class="tsd-anchor"></a><h3 class="tsd-anchor-link">push<wbr/>Edit<wbr/>Operations<a href="#pushEditOperations" 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">push<wbr/>Edit<wbr/>Operations<span class="tsd-signature-symbol">(</span>beforeCursorState<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>, editOperations<span class="tsd-signature-symbol">: </span><a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span>, cursorStateComputer<span class="tsd-signature-symbol">: </span><a href="monaco.editor.ICursorStateComputer.html" class="tsd-signature-type" data-tsd-kind="Interface">ICursorStateComputer</a><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2139">website/typedoc/monaco.d.ts:2139</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Push edit operations, basically editing the model. This is the preferred way
|
|
of editing the model. The edit operations will land on the undo stack.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>beforeCursorState: <a href="../classes/monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The cursor state before the edit operations. This cursor state will be returned when <code>undo</code> or <code>redo</code> are invoked.</p>
|
|
</div></div></li><li><h5>editOperations: <a href="monaco.editor.IIdentifiedSingleEditOperation.html" class="tsd-signature-type" data-tsd-kind="Interface">IIdentifiedSingleEditOperation</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The edit operations.</p>
|
|
</div></div></li><li><h5>cursorStateComputer: <a href="monaco.editor.ICursorStateComputer.html" class="tsd-signature-type" data-tsd-kind="Interface">ICursorStateComputer</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A callback that can compute the resulting cursors state after the edit operations have been executed.</p>
|
|
</div></div></li></ul><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><div><p>The cursor state returned by the <code>cursorStateComputer</code>.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="pushStackElement" class="tsd-anchor"></a><h3 class="tsd-anchor-link">push<wbr/>Stack<wbr/>Element<a href="#pushStackElement" 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">push<wbr/>Stack<wbr/>Element<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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2125">website/typedoc/monaco.d.ts:2125</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Close the current undo-redo element.
|
|
This offers a way to create an undo/redo stop point.</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="setEOL" class="tsd-anchor"></a><h3 class="tsd-anchor-link">setEOL<a href="#setEOL" 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">setEOL<span class="tsd-signature-symbol">(</span>eol<span class="tsd-signature-symbol">: </span><a href="../enums/monaco.editor.EndOfLineSequence.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLineSequence</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2158">website/typedoc/monaco.d.ts:2158</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Change the end of line sequence without recording in the undo stack.
|
|
This can have dire consequences on the undo stack! See @pushEOL for the preferred way.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>eol: <a href="../enums/monaco.editor.EndOfLineSequence.html" class="tsd-signature-type" data-tsd-kind="Enumeration">EndOfLineSequence</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"><a id="setValue" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Value<a href="#setValue" 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">set<wbr/>Value<span class="tsd-signature-symbol">(</span>newValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="monaco.editor.ITextSnapshot.html" class="tsd-signature-type" data-tsd-kind="Interface">ITextSnapshot</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1859">website/typedoc/monaco.d.ts:1859</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Replace the entire text buffer value contained in this model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>newValue: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="monaco.editor.ITextSnapshot.html" class="tsd-signature-type" data-tsd-kind="Interface">ITextSnapshot</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"><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"><li class="tsd-signature tsd-kind-icon">update<wbr/>Options<span class="tsd-signature-symbol">(</span>newOpts<span class="tsd-signature-symbol">: </span><a href="monaco.editor.ITextModelUpdateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ITextModelUpdateOptions</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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L2116">website/typedoc/monaco.d.ts:2116</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Change the options of this model.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>newOpts: <a href="monaco.editor.ITextModelUpdateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ITextModelUpdateOptions</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"><a id="validatePosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">validate<wbr/>Position<a href="#validatePosition" 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">validate<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><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"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1941">website/typedoc/monaco.d.ts:1941</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a valid 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></ul><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"><a id="validateRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">validate<wbr/>Range<a href="#validateRange" 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">validate<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><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</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#L1956">website/typedoc/monaco.d.ts:1956</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a valid 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></ul><h4 class="tsd-returns-title">Returns <a href="../classes/monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></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.ITextModel.html" class="tsd-kind-icon">IText<wbr/>Model</a><ul><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeAttached" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Attached</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeContent" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Content</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeDecorations" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Decorations</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeLanguage" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Language</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeLanguageConfiguration" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Language<wbr/>Configuration</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onDidChangeOptions" class="tsd-kind-icon">on<wbr/>Did<wbr/>Change<wbr/>Options</a></li><li class="tsd-kind-event tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#onWillDispose" class="tsd-kind-icon">on<wbr/>Will<wbr/>Dispose</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#id" class="tsd-kind-icon">id</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#uri" class="tsd-kind-icon">uri</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#applyEdits" class="tsd-kind-icon">apply<wbr/>Edits</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#createSnapshot" class="tsd-kind-icon">create<wbr/>Snapshot</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#deltaDecorations" class="tsd-kind-icon">delta<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#detectIndentation" class="tsd-kind-icon">detect<wbr/>Indentation</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#findMatches" class="tsd-kind-icon">find<wbr/>Matches</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#findNextMatch" class="tsd-kind-icon">find<wbr/>Next<wbr/>Match</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#findPreviousMatch" class="tsd-kind-icon">find<wbr/>Previous<wbr/>Match</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getAllDecorations" class="tsd-kind-icon">get<wbr/>All<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getAlternativeVersionId" class="tsd-kind-icon">get<wbr/>Alternative<wbr/>Version<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getCharacterCountInRange" class="tsd-kind-icon">get<wbr/>Character<wbr/>Count<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getDecorationOptions" class="tsd-kind-icon">get<wbr/>Decoration<wbr/>Options</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getDecorationRange" class="tsd-kind-icon">get<wbr/>Decoration<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getDecorationsInRange" class="tsd-kind-icon">get<wbr/>Decorations<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getEOL" class="tsd-kind-icon">getEOL</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getEndOfLineSequence" class="tsd-kind-icon">get<wbr/>End<wbr/>Of<wbr/>Line<wbr/>Sequence</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getFullModelRange" class="tsd-kind-icon">get<wbr/>Full<wbr/>Model<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getInjectedTextDecorations" class="tsd-kind-icon">get<wbr/>Injected<wbr/>Text<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLanguageId" class="tsd-kind-icon">get<wbr/>Language<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineContent" class="tsd-kind-icon">get<wbr/>Line<wbr/>Content</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineCount" class="tsd-kind-icon">get<wbr/>Line<wbr/>Count</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineDecorations" class="tsd-kind-icon">get<wbr/>Line<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineFirstNonWhitespaceColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>First<wbr/>Non<wbr/>Whitespace<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineLastNonWhitespaceColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>Last<wbr/>Non<wbr/>Whitespace<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineLength" class="tsd-kind-icon">get<wbr/>Line<wbr/>Length</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineMaxColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>Max<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLineMinColumn" class="tsd-kind-icon">get<wbr/>Line<wbr/>Min<wbr/>Column</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLinesContent" class="tsd-kind-icon">get<wbr/>Lines<wbr/>Content</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getLinesDecorations" class="tsd-kind-icon">get<wbr/>Lines<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getOffsetAt" class="tsd-kind-icon">get<wbr/>Offset<wbr/>At</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getOptions" class="tsd-kind-icon">get<wbr/>Options</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getOverviewRulerDecorations" class="tsd-kind-icon">get<wbr/>Overview<wbr/>Ruler<wbr/>Decorations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getPositionAt" class="tsd-kind-icon">get<wbr/>Position<wbr/>At</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValue" class="tsd-kind-icon">get<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValueInRange" class="tsd-kind-icon">get<wbr/>Value<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValueLength" class="tsd-kind-icon">get<wbr/>Value<wbr/>Length</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getValueLengthInRange" class="tsd-kind-icon">get<wbr/>Value<wbr/>Length<wbr/>In<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getVersionId" class="tsd-kind-icon">get<wbr/>Version<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getWordAtPosition" class="tsd-kind-icon">get<wbr/>Word<wbr/>At<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#getWordUntilPosition" class="tsd-kind-icon">get<wbr/>Word<wbr/>Until<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#isAttachedToEditor" class="tsd-kind-icon">is<wbr/>Attached<wbr/>To<wbr/>Editor</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#isDisposed" class="tsd-kind-icon">is<wbr/>Disposed</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#modifyPosition" class="tsd-kind-icon">modify<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#normalizeIndentation" class="tsd-kind-icon">normalize<wbr/>Indentation</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#popStackElement" class="tsd-kind-icon">pop<wbr/>Stack<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#pushEOL" class="tsd-kind-icon">pushEOL</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#pushEditOperations" class="tsd-kind-icon">push<wbr/>Edit<wbr/>Operations</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#pushStackElement" class="tsd-kind-icon">push<wbr/>Stack<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#setEOL" class="tsd-kind-icon">setEOL</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#setValue" class="tsd-kind-icon">set<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#updateOptions" class="tsd-kind-icon">update<wbr/>Options</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#validatePosition" class="tsd-kind-icon">validate<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="monaco.editor.ITextModel.html#validateRange" class="tsd-kind-icon">validate<wbr/>Range</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-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><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> |