vscode-diff icon indicating copy to clipboard operation
vscode-diff copied to clipboard

Session-based independent filtering configuration

Open Flithor opened this issue 3 years ago • 3 comments

feature request as title

Flithor avatar Jan 17 '22 09:01 Flithor

Hi, can you show me an example/workflow please.

L13 avatar Jan 17 '22 14:01 L13

image I would like these settings can be set independently in each compare sission and saved in the history. Which is now global settings. Global settings can be used as defaults, but are not suitable for all compare. Especially "Exclude", currently it can only exclude files or directories that I don't want to compare, but it will be very troublesome if I only want to compare some certain type of files. (because in some comparisons, there may be some file named in UUID without extension name under the directory)

Flithor avatar Jan 18 '22 00:01 Flithor

It is possible to set the configuration per workspace. You can use .vscode/settings.json or the settings config in a *.code-workspace file. The extension looks up for those files and uses the l13Diff.exclude config even if the folder is not part of the current workspace. So you can exclude files per workspace. The other settings are only active if the folder is the current workspace.

see also

https://code.visualstudio.com/docs/getstarted/settings

and

https://code.visualstudio.com/docs/editor/multi-root-workspaces

L13 avatar Jan 18 '22 11:01 L13