MCPcopy
hub / github.com/VSCodeVim/Vim / replace

Method replace

src/textEditor.ts:46–54  ·  view source on GitHub ↗

* @deprecated. Use ReplaceTextTransformation instead.

(
    editor: vscode.TextEditor,
    range: vscode.Range,
    text: string,
  )

Source from the content-addressed store, hash-verified

44 * @deprecated. Use ReplaceTextTransformation instead.
45 */
46 static async replace(
47 editor: vscode.TextEditor,
48 range: vscode.Range,
49 text: string,
50 ): Promise<boolean> {
51 return editor.edit((editBuilder) => {
52 editBuilder.replace(range, text);
53 });
54 }
55
56 /** @deprecated Use vimState.document.lineCount */
57 static getLineCount(textEditor?: vscode.TextEditor): number {

Callers 14

updatePathFunction · 0.45
newJumpTestFunction · 0.45
newJumpTestSkipOnWindowsFunction · 0.45
parseMethod · 0.45
applyDocStateFunction · 0.45
testItFunction · 0.45
stripBarFunction · 0.45
rndNameFunction · 0.45
setupWorkspaceFunction · 0.45
replaceContentFunction · 0.45
insertLine.test.tsFile · 0.45
setIndentationLevelMethod · 0.45

Calls 1

editMethod · 0.80

Tested by 2

newJumpTestFunction · 0.36
newJumpTestSkipOnWindowsFunction · 0.36