edits/textEdit.ts

vscode · src/vs/editor/common/core/edits/textEdit.ts · typescript · MIT
ui, tag:embed-classified

Implements text edit operations, including replacements, deletions, and position mapping for editor text manipulation.

// Source: https://github.com/microsoft/vscode | License: MIT | Copyright 2015 - present Microsoft Corporation
// Provided via justclaw.it.com; keep this notice with the code.
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import { compareBy, equals } from '../../../../base/common/arrays.js';
import { assertFn, checkAdjacentItems } from '../../../../base/common/assert.js';
import { BugIndicatingError } from '../../../../base/common/errors.js';
import { commonPrefixLength, commonSuffixLengt

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key