/// <summary> /// Inserts a text string to replace the specified range. Can be /// used to insert, replace, or delete text depending on the specified /// range and text to insert. /// </summary> /// <param name="textToInsert">The text string to insert.</param> /// <param name="insertRange">The buffer range which will be replaced by the string.</param> public void InsertText(string textToInsert, IFileRange insertRange) { this.editorOperations .InsertTextAsync(this.scriptFile.DocumentUri.ToString(), textToInsert, insertRange.ToBufferRange()) .Wait(); }
/// <summary> /// Inserts a text string to replace the specified range. Can be /// used to insert, replace, or delete text depending on the specified /// range and text to insert. /// </summary> /// <param name="textToInsert">The text string to insert.</param> /// <param name="insertRange">The buffer range which will be replaced by the string.</param> public void InsertText(string textToInsert, IFileRange insertRange) { this.editorOperations .InsertTextAsync(this.scriptFile.ClientFilePath, textToInsert, insertRange.ToBufferRange()) .Wait(); }