Skip to content

Commit 44df877

Browse files
Update function name
1 parent 2f75a99 commit 44df877

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cursorless-vscode/src/ide/vscode/VscodeTextEditorImpl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,22 @@ export class VscodeTextEditorImpl implements EditableTextEditor {
252252
}
253253

254254
public async gitStage(_range?: Range): Promise<void> {
255-
if (this.selectionIsEntireFile()) {
255+
if (this.selectionIsEntireDocument()) {
256256
await vscode.commands.executeCommand("git.stage");
257257
} else {
258258
await vscode.commands.executeCommand("git.stageSelectedRanges");
259259
}
260260
}
261261

262262
public async gitUnstage(_range?: Range): Promise<void> {
263-
if (this.selectionIsEntireFile()) {
263+
if (this.selectionIsEntireDocument()) {
264264
await vscode.commands.executeCommand("git.unstage");
265265
} else {
266266
await vscode.commands.executeCommand("git.unstageSelectedRanges");
267267
}
268268
}
269269

270-
private selectionIsEntireFile(): boolean {
270+
private selectionIsEntireDocument(): boolean {
271271
return (
272272
this.selections.length === 1 &&
273273
this.selections[0].isRangeEqual(this.document.range)

0 commit comments

Comments
 (0)