jhechtf / jj-vscode

fuck yeah
MIT License
3 stars 0 forks source link

Initial Release Expectations #3

Open jhechtf opened 4 months ago

jhechtf commented 4 months ago

Trying to determine some common things that are done in the jj terminal that might come up in the extension, here is the dumping ground for that

jennings commented 4 months ago

Since I colocate all my Jujutsu repositories, the features I'd want would be ones that Git integrations can't do. I'm pretty sure two SCM integrations can show up simultaneously.

The Git integration features that I miss if I'm in a non-colocated repo are:

Beyond those, I'm happy using the terminal (and Beyond Compare) for most operations. I'm indifferent about fetching, pushing, branches, squashing, or rebasing from VSCode.

jennings commented 3 months ago

While reflecting on why I don't use the squash workflow, I realized it's because I want to see the "complete diff" when I'm modifying a change, not just the interdiff. For example, suppose I've run jj new rtzyl with the eventual plan of squashing into rtzyl:

@  zuxzrspw b981fdab
│  (empty) (no description set)
◌  rtzylmoz 4add14cb
│  revset date filters
◆  vsvxszmo f3519e4c
│  github: bump the github-dependencies group with 3 updates
~

In this case, I want the IDE to show me what rtzyl will look like after I squash. So, approximately jj diff --from @-- --to @.

I'm not quite sure how this feature would work, because if I instead did jj edit rtzyl, I would want to see --from @-. I think it would probably need to be a toggle in the UI to switch between seeing --from @- and --from @--.

jhechtf commented 3 months ago

That is a good one; not 100% on how I would get that to work in VSCode -- a lot of this is new APIs for me so I'm doing a lot of FAFO to get some answers.