mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 18:09:01 +01:00
Fixes #42751
This commit is contained in:
@@ -679,7 +679,7 @@ suite('Editor Diff - DiffComputer', () => {
|
||||
' * `yarn [install]` -- Install project NPM dependencies. This is automatically done when you first create the project. You should only need to run this if you add dependencies in `package.json`.',
|
||||
];
|
||||
let modified = [
|
||||
' * `yarn` -- Install project NPM dependencies. You should only need to run this if you add dependencies in `package.json`.',
|
||||
' * `yarn` -- Install project NPM dependencies. You should only need to run this if you add dependencies in `package.json`.',
|
||||
];
|
||||
let expected = [
|
||||
createLineChange(
|
||||
@@ -692,4 +692,24 @@ suite('Editor Diff - DiffComputer', () => {
|
||||
];
|
||||
assertDiff(original, modified, expected, true, false);
|
||||
});
|
||||
|
||||
test('issue #42751', () => {
|
||||
let original = [
|
||||
' 1',
|
||||
' 2',
|
||||
];
|
||||
let modified = [
|
||||
' 1',
|
||||
' 3',
|
||||
];
|
||||
let expected = [
|
||||
createLineChange(
|
||||
2, 2, 2, 2,
|
||||
[
|
||||
createCharChange(2, 3, 2, 4, 2, 3, 2, 5)
|
||||
]
|
||||
)
|
||||
];
|
||||
assertDiff(original, modified, expected, true, false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user