adding one more test for the incorrect indentation within comments

This commit is contained in:
Aiday Marlen Kyzy 2024-03-20 18:57:31 +01:00
parent 2ffe804c46
commit 5e14e2e569
No known key found for this signature in database
GPG key ID: 24A8B53DBD26FF4E

View file

@ -666,6 +666,31 @@ suite('`Full` Auto Indent On Type - TypeScript/JavaScript', () => {
});
});
test.skip('issue #208232: incorrect indentation inside of comments', () => {
// https://github.com/microsoft/vscode/issues/208232
const model = createTextModel([
'/**',
'indentation done for {',
'*/'
].join('\n'), languageId, {});
disposables.add(model);
withTestCodeEditor(model, { autoIndent: "full" }, (editor, viewModel, instantiationService) => {
registerLanguage(instantiationService, languageId, Language.TypeScript, disposables);
editor.setSelection(new Selection(2, 23, 2, 23));
viewModel.type("\n", 'keyboard');
assert.strictEqual(model.getValue(), [
'/**',
'indentation done for {',
'',
'*/'
].join('\n'));
});
});
// Add tests for:
// https://github.com/microsoft/vscode/issues/88638
// https://github.com/microsoft/vscode/issues/63388