File tree Expand file tree Collapse file tree
packages/cursorless-vscode/src/ide/vscode Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments