Skip to content

Commit 73b25d0

Browse files
author
Siddharth Saladi
committed
removed stray a
1 parent 1201415 commit 73b25d0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/MavenTestServerXmlLCLS.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ describe('Liberty Config Language Server Tests for Maven Project', function () {
6969
return text.includes('<server') ? true : undefined;
7070
}, 15);
7171

72-
// Restore original content so each test starts from a clean slate
72+
// Restore original content so each test starts from a clean slate.
73+
// setText() replaces all content internally via Ctrl+A, Ctrl+V — calling
74+
// clearText() first is redundant and causes a stray 'a' keystroke when
75+
// focus briefly shifts between the two operations.
7376
if (originalContent) {
74-
await editor.clearText();
7577
await editor.setText(originalContent);
7678
await editor.save();
7779
// Give LCLS time to reanalyse the restored file before the next test.

0 commit comments

Comments
 (0)