mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 52dcb723a39ae75bee1bd56b3312d7fcdc87aeed (#6719)
This commit is contained in:
@@ -608,6 +608,46 @@ suite('Editor Model - TextModel', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test('issue #62143: Broken indentation detection', () => {
|
||||
// works before the fix
|
||||
assertGuess(true, 2, [
|
||||
'x',
|
||||
'x',
|
||||
' x',
|
||||
' x'
|
||||
]);
|
||||
|
||||
// works before the fix
|
||||
assertGuess(true, 2, [
|
||||
'x',
|
||||
' - item2',
|
||||
' - item3'
|
||||
]);
|
||||
|
||||
// works before the fix
|
||||
testGuessIndentation(true, 2, true, 2, [
|
||||
'x x',
|
||||
' x',
|
||||
' x',
|
||||
]);
|
||||
|
||||
// fails before the fix
|
||||
// empty space inline breaks the indentation guess
|
||||
testGuessIndentation(true, 2, true, 2, [
|
||||
'x x',
|
||||
' x',
|
||||
' x',
|
||||
' x'
|
||||
]);
|
||||
|
||||
testGuessIndentation(true, 2, true, 2, [
|
||||
'<!--test1.md -->',
|
||||
'- item1',
|
||||
' - item2',
|
||||
' - item3'
|
||||
]);
|
||||
});
|
||||
|
||||
test('validatePosition', () => {
|
||||
|
||||
let m = TextModel.createFromString('line one\nline two');
|
||||
|
||||
Reference in New Issue
Block a user