Skip to content

Consider indentation level when shifting changes down and up #164574

@alexdima

Description

@alexdima

Diffing the files:

  • original:
[
	{
		"identifier": {
			"id": "pflannery.vscode-versionlens",
			"uuid": "07fc4a0a-11fc-4121-ba9a-f0d534c729d8"
		},
		"preRelease": false,
		"version": "1.0.9",
		"installed": true
	},
	{
		"identifier": {
			"id": "sumneko.lua",
			"uuid": "3a15b5a7-be12-47e3-8445-88ee3eabc8b2"
		},
		"preRelease": false,
		"version": "3.5.6",
		"installed": true
	},
	{
		"identifier": {
			"id": "vscode.bat",
			"uuid": "5ef96c58-076f-4167-8e40-62c9deb00496"
		},
		"preRelease": false,
		"version": "1.0.0"
	}
]
  • modified:
[
	{
		"identifier": {
			"id": "pflannery.vscode-versionlens",
			"uuid": "07fc4a0a-11fc-4121-ba9a-f0d534c729d8"
		},
		"preRelease": false,
		"version": "1.0.9",
		"installed": true
	},
	{
		"identifier": {
			"id": "vscode.bat",
			"uuid": "5ef96c58-076f-4167-8e40-62c9deb00496"
		},
		"preRelease": false,
		"version": "1.0.0"
	}
]

image

It would be better to line up things differently and give preference to having lines with smaller indent be boundary lines.

fyi @hediet

Metadata

Metadata

Assignees

Labels

diff-editorDiff editor issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions