Skip to content

Commit 15d866e

Browse files
committed
Fix #223: Wrong InsertText call in extension docs
1 parent 5abe544 commit 15d866e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $psEditor.Workspace.OpenFile($profile)
3737
```powershell
3838
# Insert new text replacing the user's current selection
3939
$context = $psEditor.GetEditorContext()
40-
$context.InsertText("# All your script are belong to us", $context.SelectedRange)
40+
$context.CurrentFile.InsertText("# All your script are belong to us", $context.SelectedRange)
4141
```
4242

4343
#### Setting the selection based on the cursor position

0 commit comments

Comments
 (0)