Skip to content

Implements first iteration of multi diff editors. - #197652

Merged
Henning Dieterichs (hediet) merged 4 commits into
mainfrom
hediet/b/pregnant-mink
Nov 9, 2023
Merged

Henning Dieterichs (hediet) merged 4 commits into
mainfrom
hediet/b/pregnant-mink

Conversation

@hediet

@hediet Henning Dieterichs (hediet) commented Nov 7, 2023 •

Copy link
Copy Markdown
Member

Code_-_OSS_sWZYa7jmeT

Tasks left:

  • More performant scrolling
  • Collapsing files
  • adding/removing files

Fixes #179000

@bpasero Benjamin Pasero (bpasero) left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was only looking at a few files, not the larger pieces and left some feedback. I am adding Logan Ramos (@lramos15) for reviewing the editor resolver changes.

Comment thread src/vs/workbench/common/editor.ts Resolved
@lramos15

Copy link
Copy Markdown
Member

I'm guessing there is, but just for my understanding is there a reasoning for not making this a one off editor type like Chat, Search, the Perf graph, etc instead of adding an entire new editor type that my guess is won't be implemented elsehwere

@hediet

Copy link
Copy Markdown
Member Author

I'm guessing there is, but just for my understanding is there a reasoning for not making this a one off editor type like Chat, Search, the Perf graph, etc instead of adding an entire new editor type that my guess is won't be implemented elsehwere

I was wondering the same. Let's start with this and refactor later.
Because the widget lives separately, it should be easy to address this later.

@hediet
Henning Dieterichs (hediet) deleted the hediet/b/pregnant-mink branch November 9, 2023 18:15
@IllusionMH

Andrii Dieiev (IllusionMH) commented Nov 10, 2023 •

Copy link
Copy Markdown
Contributor

Is it only for Git (VCS) view for now (at least this is my impression after glancing over this PR code)?
I can't find command that would allow me to use it to diff 2 folders. Are there plans to support folders diff?
Similar to how keybinding below allows to quickly diff files(or open editors)

    {
        "key": "ctrl+d",
        "command": "compareSelected",
        "when": "listDoubleSelection && activeViewlet == 'workbench.view.explorer'"
    },

@hediet

Copy link
Copy Markdown
Member Author

Is it only for Git (VCS) view for now (at least this is my impression after glancing over this PR code)?

We will slowly integrate it into other features as well.

I can't find command that would allow me to use it to diff 2 folders. Are there plans to support folders diff?

This is out of scope for this feature, but maybe this can be implemented by an extension.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi File Diff Editor

5 participants