fabiospampinato / vscode-diff

Diff 2 opened files with ease. Because running `code --diff path1 path2` is too slow.
MIT License
40 stars 9 forks source link

Improvement for the list of files (and bug?) #10

Closed ppo closed 7 months ago

ppo commented 4 years ago

Currently: The list of files to diff with contains all the files in the workspace!
(VS Code 1.45.1 and Diff 1.4.0)

Expected: List only opened files.

Cherry on the cake:

fabiospampinato commented 4 years ago

Somewhat surprisingly I don't think there's an API for retrieving a list of all opened files.

(Possible?) Allow to select the other file by clicking on the editor tab or in the file explorer.

Single click, no, right click menu item, yes.

ppo commented 4 years ago

For reference, VS Code issue: API Access to "Open Editors" #15178 (current status: open)

fabiospampinato commented 7 months ago

As of v2.1 open files are listed at the top, showing other kinds of files can be disabled, and you can also enable relative paths.

If only 2 files opened, immediately execute the diff with the other file.

This seems not worth the extra command or setting, it's just a keypress away if only a single other file is found now.

(Possible?) Allow to select the other file by clicking on the editor tab or in the file explorer.

Let's track this in #5