eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.06k stars 2.5k forks source link

[BUG] Stage/Unstage/Revert selected changes does nothing in commit diff view. #14144

Open Guusggg opened 2 months ago

Guusggg commented 2 months ago

Bug Description:

While trying to stage only some lines of a file that has multiple changes throughout, I'm unable to stage only the lines that I've selected. I use this a lot to split out my commits.

Steps to Reproduce:

  1. Make a couple changes in a file.
  2. Select (for example) only one line you would like to stage for commit.
  3. Right-click and select "Stage selected changes".
  4. Nothing happens.

Additional Information

I'm sorry if this is not the right place, I just really love this project and would like to be able to use it as my main editor.

Thank you to all the contributors for an amazing product!

tsmaeder commented 2 months ago

Browser log says

plugin-contribution-handler.ts:491 Uncaught (in promise) Error: command 'git.stageSelectedRanges' not found
    at Object.execute (plugin-contribution-handler.ts:491:27)
    at u.executeCommand (command.ts:341:42)
execute @   plugin-contribution-handler.ts:491
executeCommand  @   command.ts:341
Guusggg commented 1 month ago

Thank you @tsmaeder, I hadn't thought to put a log in there.

Would this be an issue that could be picked up by someone who would be new to contributing to this project? I wouldn't mind taking a stab to see if I can make a fix for this.

Cheers,