Skip to content

Commit 644251d

Browse files
Update docs/editor-components/editor-file.md
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 82797b0 commit 644251d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/editor-components/editor-file.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,11 @@ Removes and closes the file.
119119
await file.remove(true); // Force close without save prompt
120120

121121
// Attempt to close a pinned tab, bypassing the pinned check
122-
editorFile.remove(false, { ignorePinned: true });
122+
// Attempt to close a pinned tab, bypassing the pinned check
123+
await file.remove(false, { ignorePinned: true });
123124

124125
// Attempt to close a pinned tab silently (toast suppressed)
125-
editorFile.remove(false, { silentPinned: true });
126+
await file.remove(false, { silentPinned: true });
126127
```
127128

128129
#### [makeActive()](#makeactive)

0 commit comments

Comments
 (0)