8000 test(editor): fix test for auto `fixAll` on save (#11448) · oxc-project/oxc@2ba2893 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ba2893

Browse files
committed
test(editor): fix test for auto fixAll on save (#11448)
This got fixed with #11405. Now the fix will not delete comments
1 parent ec4fc83 commit 2ba2893

File tree

1 file changed

+7
-2
lines changed
  • editors/vscode/fixtures/fixall_with_code_actions_on_save

1 file changed

+7
-2
lines changed

editors/vscode/fixtures/fixall_with_code_actions_on_save/expected.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
// Handle different operation types
2626
9D21 switch (op) {
27-
case 'add': {if (path.match(/^\/references\/\d+$/)) {
27+
case 'add': {
28+
// Special handling for references
29+
if (path.match(/^\/references\/\d+$/)) {
2830
if (value && typeof value === 'object' && 'key' in value) {
2931
summaryItems.push({
3032
label: 'References.' + value.key,
@@ -48,7 +50,10 @@
4850
break;
4951
}
5052

51-
case 'replace': {if (path === '/version') return;
53+
case 'replace': {
54+
// Skip version changes as we display them separately
55+
if (path === '/version') return;
56+
5257
summaryItems.push({
5358
label: displayPath,
5459
displayValue: <span className='text-blue-600 font-medium'>Updated</span>

0 commit comments

Comments
 (0)
0